From 21c317a892071e8cc8fc268df18130540d3db358 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 20 Jul 2018 10:40:43 +0200 Subject: build: fix compile error when a package includes itself in PROVIDES Signed-off-by: Felix Fietkau (cherry picked from commit 7c306ae640feb4d42b352175de27b034bd917938) --- include/package-ipkg.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/package-ipkg.mk') diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index d9b6f77..a9cd51e 100644 --- a/include/package-ipkg.mk +++ b/include/package-ipkg.mk @@ -196,7 +196,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)) -- cgit v1.1