Source: jackeq Version: 0.5.9-2.1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
jackeq fails to cross build from source, because dh_auto_clean runs make distclean, which runs ./config.status --recheck, which fails finding jack for the build architecture as it is only requested for the host architecture by Build-Depends. Reconfiguring the package during dh_auto_clean seems like a very bad idea to me and I'm not even sure why it does that. The builds on the buildds didn't do it. Still I'm offering the attached patch that makes dh_auto_clean reliably skip the configuration step. After doing so, jackeq cross builds successfully. Please consider applying it. Alternatively, consider shipping a source tree without generated files. Helmut
diff --minimal -Nru jackeq-0.5.9/debian/changelog jackeq-0.5.9/debian/changelog --- jackeq-0.5.9/debian/changelog 2017-05-27 10:41:06.000000000 +0200 +++ jackeq-0.5.9/debian/changelog 2018-06-20 21:02:12.000000000 +0200 @@ -1,3 +1,10 @@ +jackeq (0.5.9-2.2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Don't configure during dh_auto_clean. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Wed, 20 Jun 2018 21:02:12 +0200 + jackeq (0.5.9-2.1) unstable; urgency=medium * Non-maintainer upload. diff --minimal -Nru jackeq-0.5.9/debian/rules jackeq-0.5.9/debian/rules --- jackeq-0.5.9/debian/rules 2010-11-25 20:55:19.000000000 +0100 +++ jackeq-0.5.9/debian/rules 2018-06-20 21:02:12.000000000 +0200 @@ -7,3 +7,16 @@ override_dh_clean: dh_clean -Xautom4te.cache -X*.deps -X*~ -X*.bak + +override_dh_auto_clean: + # prevent make distclean from rerunning configure + set -e; if test -f Makefile; then \ + if test -f config.status; then \ + touch config.status; \ + sleep 1; \ + fi; \ + for d in . pixmaps po pixmaps; do \ + test -f $$d/Makefile && touch $$d/Makefile; \ + done; \ + fi + dh_auto_clean