Source: sn Version: 0.3.8-12 Tags: patch User: helm...@debian.org Usertags: rebootstrap
sn fails to cross build from source, because it does not pass cross tools to make. The easiest way of fixing that - using dh_auto_build - has two caveats. It also needs LD to be set to the C compiler. Parallel building must be explicitly disabled, because the Makefile does not properly order its targets. The attached patch makes sn cross buildable. Please consider applying it. Helmut
diff --minimal -Nru sn-0.3.8/debian/changelog sn-0.3.8/debian/changelog --- sn-0.3.8/debian/changelog 2018-10-29 06:00:06.000000000 +0100 +++ sn-0.3.8/debian/changelog 2019-05-15 22:07:56.000000000 +0200 @@ -1,3 +1,10 @@ +sn (0.3.8-12.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dh_auto_build pass cross tools to make. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Wed, 15 May 2019 22:07:56 +0200 + sn (0.3.8-12) unstable; urgency=medium * Add snnewsq.8 man page file to debian/ directory. diff --minimal -Nru sn-0.3.8/debian/rules sn-0.3.8/debian/rules --- sn-0.3.8/debian/rules 2018-10-27 17:55:51.000000000 +0200 +++ sn-0.3.8/debian/rules 2019-05-15 22:07:56.000000000 +0200 @@ -12,7 +12,7 @@ dh_testdir # Add here commands to compile the package. - $(MAKE) + dh_auto_build --no-parallel -- LD='$$(CC)' touch build-stamp