[source] build: fix package build after deleting staging dir

LEDE Commits lede-commits at lists.infradead.org
Thu Feb 9 04:51:52 PST 2017


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/3cd7f43017b1daf39793b3f97bc1c8c7e7f67ef2

commit 3cd7f43017b1daf39793b3f97bc1c8c7e7f67ef2
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Thu Feb 9 13:48:49 2017 +0100

    build: fix package build after deleting staging dir
    
    Ensure that the <package>.provides files are always created
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 include/package-ipkg.mk | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk
index b9d67f5..2b3ff14 100644
--- a/include/package-ipkg.mk
+++ b/include/package-ipkg.mk
@@ -175,11 +175,10 @@ $$(call addfield,Depends,$$(Package/$(1)/DEPENDS)
 Installed-Size: 0
 $(_endef)
 
-    $(PKG_INFO_DIR)/$(1).provides: $$(IPKG_$(1))
     $$(IPKG_$(1)) : export CONTROL=$$(Package/$(1)/CONTROL)
     $$(IPKG_$(1)) : export DESCRIPTION=$$(Package/$(1)/description)
     $$(IPKG_$(1)) : export PATH=$$(TARGET_PATH_PKG)
-    $$(IPKG_$(1)): $(STAMP_BUILT) $(INCLUDE_DIR)/package-ipkg.mk
+    $(PKG_INFO_DIR)/$(1).provides $$(IPKG_$(1)): $(STAMP_BUILT) $(INCLUDE_DIR)/package-ipkg.mk
 	@rm -rf $$(IDIR_$(1)) $$(call opkg_package_files,$(1))
 	mkdir -p $(PACKAGE_DIR) $$(IDIR_$(1))/CONTROL $(PKG_INFO_DIR)
 	$(call Package/$(1)/install,$$(IDIR_$(1)))



More information about the lede-commits mailing list