0030-build-define-STAMP_CONFIGURED-recursively.patch 1.3 KB

1234567891011121314151617181920212223242526
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Wed, 18 Mar 2015 20:07:22 +0100
  3. Subject: build: define STAMP_CONFIGURED recursively
  4. Defining STAMP_CONFIGURED statically caused it not to reflect changes to
  5. PKG_CONFIG_DEPENDS made after including package.mk, like the additional options
  6. added by feeds.mk for all packages.
  7. Furthermore, as STAMP_CONFIGURED_WILDCARD was already defined recursively, the
  8. patsubst in its definition would never match, and in consequence, the stamps
  9. were never removed. This caused packages not to be rebuilt when they should have
  10. been.
  11. diff --git a/include/package.mk b/include/package.mk
  12. index 53ca6de..402fb1a 100644
  13. --- a/include/package.mk
  14. +++ b/include/package.mk
  15. @@ -60,7 +60,7 @@ ifneq ($(PREV_STAMP_PREPARED),)
  16. else
  17. STAMP_PREPARED=$(PKG_BUILD_DIR)/.prepared$(if $(QUILT)$(DUMP),,_$(shell $(call find_md5,${CURDIR} $(PKG_FILE_DEPENDS),))$(call confvar,$(PKG_PREPARED_DEPENDS)))
  18. endif
  19. -STAMP_CONFIGURED:=$(PKG_BUILD_DIR)/.configured$(if $(DUMP),,_$(call confvar,$(PKG_CONFIG_DEPENDS)))
  20. +STAMP_CONFIGURED=$(PKG_BUILD_DIR)/.configured$(if $(DUMP),,_$(call confvar,$(PKG_CONFIG_DEPENDS)))
  21. STAMP_CONFIGURED_WILDCARD=$(patsubst %_$(call confvar,$(PKG_CONFIG_DEPENDS)),%_*,$(STAMP_CONFIGURED))
  22. STAMP_BUILT:=$(PKG_BUILD_DIR)/.built
  23. STAMP_INSTALLED:=$(STAGING_DIR)/stamp/.$(PKG_NAME)_installed