From: Felix Fietkau Date: Fri, 20 Jul 2018 08:40:43 +0000 (+0200) Subject: build: fix compile error when a package includes itself in PROVIDES X-Git-Tag: v18.06.0~31 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5b12057d7cfe5fc1a7b1d9716dd5f26edc5df596;p=oweals%2Fopenwrt.git build: fix compile error when a package includes itself in PROVIDES Signed-off-by: Felix Fietkau (cherry picked from commit 7c306ae640feb4d42b352175de27b034bd917938) --- diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index 9e2717e788..c374faa647 100644 --- a/include/package-ipkg.mk +++ b/include/package-ipkg.mk @@ -190,7 +190,7 @@ $(_endef) fi; \ done; $(Package/$(1)/extra_provides) \ ) | sort -u > $(PKG_INFO_DIR)/$(1).provides - $(if $(PROVIDES),@for pkg in $(PROVIDES); do cp $(PKG_INFO_DIR)/$(1).provides $(PKG_INFO_DIR)/$$$$pkg.provides; done) + $(if $(PROVIDES),@for pkg in $(filter-out $(1),$(PROVIDES)); do cp $(PKG_INFO_DIR)/$(1).provides $(PKG_INFO_DIR)/$$$$pkg.provides; done) $(CheckDependencies) $(RSTRIP) $$(IDIR_$(1))