Source: insserv Version: 1.18.0-2 Tags: patch upstream User: helm...@debian.org Usertags: rebootstrap
insserv fails to cross build from source. It actually cross builds correctly (during dh_auto_build). Then it builds all the files again during dh_auto_test (unless passing DEB_BUILD_OPTIONS=nocheck). And then it builds all the files again during dh_auto_install. For dh_auto_install, debhelper does not pass cross tools and that becomes fatal. Buildding insserv three times does not seem useful to me. The attached patch fixes the rebuild logic. Please consider applying it. Helmut
--- insserv-1.18.0.orig/Makefile +++ insserv-1.18.0/Makefile @@ -113,9 +113,11 @@ sed -r '\!@@BEGIN_SUSE@@!,\!@@(ELSE|END)_SUSE@@!d;\!@@(NOT|END)_SUSE@@!d' < $< > $@ endif -.system: SYSTEM=$(shell cat .system 2> /dev/null) -.system: .force - @test "$(SYSTEM)" = "$(ISSUSE)$(DEBUG)" || echo "$(ISSUSE)$(DEBUG)" > .system +ifneq ($(shell cat .system 2>/dev/null),$(ISSUSE)$(DEBUG)) +.system-changed = yes +endif +.system: $(if $(.system-changed),.force) + @echo "$(ISSUSE)$(DEBUG)" > .system .force: