From: Jo-Philipp Wich Date: Thu, 24 Jan 2019 11:48:27 +0000 (+0100) Subject: build: formatting fixes for per-provide ABI_VERSION suffixes X-Git-Tag: v19.07.0-rc1~1538 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=790bce92adce6fc52a5fe68ac05b1018e171af28;p=oweals%2Fopenwrt.git build: formatting fixes for per-provide ABI_VERSION suffixes - Filter out potential duplicates with the package name (e.g. when renaming libfoo1 w/ ABI_VERSION:=1 to libfoo) - Use the GetABISuffix macro to properly separate the suffix with a dash in case the basename ends with a number Signed-off-by: Jo-Philipp Wich --- diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index 1cb4da8e30..9ca4879bfa 100644 --- a/include/package-ipkg.mk +++ b/include/package-ipkg.mk @@ -162,7 +162,7 @@ Package: $(1)$$(ABIV_$(1)) Version: $(VERSION) $$(call addfield,Depends,$$(Package/$(1)/DEPENDS) )$$(call addfield,Conflicts,$$(call mergelist,$(CONFLICTS)) -)$$(call addfield,Provides,$$(call mergelist,$(PROVIDES)$$(if $$(ABIV_$(1)), $(1) $(foreach provide,$(PROVIDES),$(provide)$$(ABIV_$(1))))) +)$$(call addfield,Provides,$$(call mergelist,$$(filter-out $(1)$$(ABIV_$(1)),$(PROVIDES)$$(if $$(ABIV_$(1)), $(1) $(foreach provide,$(PROVIDES),$(provide)$$(call GetABISuffix,$(provide)))))) )$$(call addfield,Alternatives,$$(call mergelist,$(ALTERNATIVES)) )$$(call addfield,Source,$(SOURCE) )$$(call addfield,SourceName,$(1)