diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-07-20 10:40:43 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-07-20 15:37:17 +0200 |
commit | 5b12057d7cfe5fc1a7b1d9716dd5f26edc5df596 (patch) | |
tree | 8cc8fd8df1e003789a925475354588cb6ea3626c /include | |
parent | 8a0ad2660a027e88550a08268093b7e0c993b556 (diff) | |
download | mtk-20170518-5b12057d7cfe5fc1a7b1d9716dd5f26edc5df596.zip mtk-20170518-5b12057d7cfe5fc1a7b1d9716dd5f26edc5df596.tar.gz mtk-20170518-5b12057d7cfe5fc1a7b1d9716dd5f26edc5df596.tar.bz2 |
build: fix compile error when a package includes itself in PROVIDES
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit 7c306ae640feb4d42b352175de27b034bd917938)
Diffstat (limited to 'include')
-rw-r--r-- | include/package-ipkg.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index 9e2717e..c374faa 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)) |