diff options
author | Jo-Philipp Wich <jo@mein.io> | 2021-06-14 14:58:37 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2021-06-14 15:14:19 +0200 |
commit | f6a03bff5bccdbf9165087bccbb35095903d05c6 (patch) | |
tree | 923de69a32d1a284829dfa721b851a186902e278 /include/feeds.mk | |
parent | 677813c77678b80e99c4f97b433f428de26ca10f (diff) | |
download | upstream-f6a03bff5bccdbf9165087bccbb35095903d05c6.tar.gz upstream-f6a03bff5bccdbf9165087bccbb35095903d05c6.tar.bz2 upstream-f6a03bff5bccdbf9165087bccbb35095903d05c6.zip |
build: prepend ABI suffixes with a dash if package name ends with digit
Ensure that ABI suffixes are separated with a dash from the package name if
the name happens to end with a digit. This implementation detail got lost
during the recent refactoring of the ABI_VERSION handling in buildroot.
Ref: https://github.com/openwrt/packages/pull/14237#issuecomment-860473585
Fixes: c921650382 ("build: drop ABI version from metadata")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'include/feeds.mk')
-rw-r--r-- | include/feeds.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/feeds.mk b/include/feeds.mk index 98e315bceb..e499ac2684 100644 --- a/include/feeds.mk +++ b/include/feeds.mk @@ -43,5 +43,11 @@ endef # 1: package name define GetABISuffix -$(if $(filter-out kmod-%,$(1)),$(if $(ABIV_$(1)),$(ABIV_$(1)),$(foreach v,$(wildcard $(STAGING_DIR)/pkginfo/$(1).version),$(shell cat $(v))))) +$(call FormatABISuffix,$(1),$(if $(ABIV_$(1)),$(ABIV_$(1)),$(foreach v,$(wildcard $(STAGING_DIR)/pkginfo/$(1).version),$(shell cat $(v))))) +endef + +# 1: package name +# 2: abi version +define FormatABISuffix +$(if $(filter-out kmod-%,$(1)),$(if $(2),$(if $(filter %0 %1 %2 %3 %4 %5 %6 %7 %8 %9,$(1)),-)$(2))) endef |