From 55faac370ced74fa182efbbf1574d1f059ef953c Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Sun, 8 Sep 2019 18:34:33 +0200 Subject: ptxd_lib_dgen: handle removed patches better If all patches for a package are removed then the package is currently not reextracted because the .srchash dependency is just dropped and not changed. Fix this by defining a fake hash. This way the dependency changes and the package is extracted again. Signed-off-by: Michael Olbrich --- scripts/lib/ptxd_lib_dgen.awk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk index 45ae43b73..8908d77bd 100644 --- a/scripts/lib/ptxd_lib_dgen.awk +++ b/scripts/lib/ptxd_lib_dgen.awk @@ -398,10 +398,11 @@ function write_deps_pkg_active(this_PKG, this_pkg, prefix) { print "$(foreach src,$(" this_PKG "_SOURCES)," \ "$(eval $(STATEDIR)/" this_pkg ".get:" "$(STATEDIR)/" this_pkg ".$(notdir $(src)).stamp))" > DGEN_DEPS_POST; if (DIRTY != "true") { - print "ifneq ($(" this_PKG "_EXTRACT_CFGHASH),)" > DGEN_DEPS_POST; + print "ifeq ($(" this_PKG "_EXTRACT_CFGHASH),)" > DGEN_DEPS_POST; + print this_PKG "_EXTRACT_CFGHASH := 00000000000000000000000000000000" > DGEN_DEPS_POST; + print "endif" > DGEN_DEPS_POST; print "$(STATEDIR)/" this_pkg ".extract: " \ "$(STATEDIR)/" this_pkg ".$(" this_PKG "_EXTRACT_CFGHASH).srchash" > DGEN_DEPS_POST; - print "endif" > 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; -- cgit v1.2.3