From 9a86aaa20a0df75cda4302a35eb5fefb1fdb5c4c Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Sat, 19 Jul 2014 13:09:55 +0200 Subject: ptxd_lib_dgen: be more clever about tarball dependencies New package versions have always been problematic. If the old version is built and the tarball for the new version is older than the get stage then ptxdist didn't build the new version. To improve the situation we now do the following: - create a dummy state file with the tarball name as part of the filename. - let the get stage depend on this. For a new version the file does not exist and the package is rebuilt. Signed-off-by: Michael Olbrich --- scripts/lib/ptxd_lib_dgen.awk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk index 41b3ded63..807da68a3 100644 --- a/scripts/lib/ptxd_lib_dgen.awk +++ b/scripts/lib/ptxd_lib_dgen.awk @@ -240,7 +240,7 @@ function write_deps_pkg_all(this_PKG, this_pkg) { # # .get rule # - print "$(STATEDIR)/" this_pkg ".get: $(" this_PKG "_SOURCES)" > DGEN_DEPS_POST; + print "$(STATEDIR)/" this_pkg ".get: | $(" this_PKG "_SOURCES)" > DGEN_DEPS_POST; print "ifneq ($(call remove_quotes, $(PTXCONF_PROJECT_DEVMIRROR)),)" > DGEN_DEPS_POST; print "ifneq ($(strip $(" this_PKG "_DEVPKG)),NO)" > DGEN_DEPS_POST; print "ifneq ($(" this_PKG "_CFGHASH),)" > DGEN_DEPS_POST; @@ -254,6 +254,8 @@ function write_deps_pkg_active(this_PKG, this_pkg, prefix) { # # default deps # + print "$(foreach src,$(" this_PKG "_SOURCES)," \ + "$(eval $(STATEDIR)/" this_pkg ".get:" "$(STATEDIR)/" this_pkg ".$(notdir $(src)).stamp))" > DGEN_DEPS_POST; print "$(STATEDIR)/" this_pkg ".extract: " "$(STATEDIR)/" this_pkg ".get" > DGEN_DEPS_POST; print "$(STATEDIR)/" this_pkg ".extract.post: " "$(STATEDIR)/" this_pkg ".extract" > DGEN_DEPS_POST; print "$(STATEDIR)/" this_pkg ".prepare: " "$(STATEDIR)/" this_pkg ".extract.post" > DGEN_DEPS_POST; -- cgit v1.2.3