Source: 3dchess Version: 0.8.1-19 Tags: patch User: helm...@debian.org Usertags: rebootstrap
3dchess fails to cross build from source, because it uses the build architecture compiler. Indirecting the $(MAKE) invocation through dh_auto_build fixes that, because dh_auto_build knows how to pass cross compilers. The simplest way of doing so is passing --sourcedirectory to the general dh invocation thus making override_dh_auto_build (and others) completely redundant. Please consider applying the attached patch after stretch is released. Helmut
diff --minimal -Nru 3dchess-0.8.1/debian/changelog 3dchess-0.8.1/debian/changelog --- 3dchess-0.8.1/debian/changelog 2015-11-01 01:09:14.000000000 +0100 +++ 3dchess-0.8.1/debian/changelog 2017-06-11 21:21:39.000000000 +0200 @@ -1,3 +1,13 @@ +3dchess (0.8.1-19.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Pass --sourcedirectory to dh. + + Remove redundant overrides such as override_dh_auto_build thus letting + dh_auto_build pass cross compilers. + + -- Helmut Grohne <hel...@subdivi.de> Sun, 11 Jun 2017 21:21:39 +0200 + 3dchess (0.8.1-19) unstable; urgency=medium * Team upload. diff --minimal -Nru 3dchess-0.8.1/debian/rules 3dchess-0.8.1/debian/rules --- 3dchess-0.8.1/debian/rules 2015-11-01 01:09:14.000000000 +0100 +++ 3dchess-0.8.1/debian/rules 2017-06-11 21:21:36.000000000 +0200 @@ -3,16 +3,10 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=-stackprotectorstrong %: - dh $@ --parallel - -override_dh_auto_build: - $(MAKE) -C `pwd`/src - -override_dh_auto_clean: - [ ! -f "`pwd`/src/Makefile" ] || $(MAKE) -C `pwd`/src clean + dh $@ --parallel --sourcedirectory=src override_dh_auto_install: - $(MAKE) -C `pwd`/src install BINDIR=`pwd`/debian/3dchess/usr/games + dh_auto_install -- BINDIR=`pwd`/debian/3dchess/usr/games override_dh_installchangelogs: dh_installchangelogs CHANGES