Source: wireless-tools Version: 30~pre9-11 Tags: patch User: helm...@debian.org Usertags: rebootstrap
wireless-tools fails to cross build from source, because it uses the build architecture compiler which leads to a dh_strip failure. Since debhelper 10.2.1, dh_auto_build passes a suitable cross compiler via CC, so the main pass now succeeds. The direct make invocation for the udeb pass still uses the build architecture compiler though. After changing that to dh_auto_build as well (see attached patch), wireless-tools cross builds just fine. Please consider applying it. Helmut
diff --minimal -Nru wireless-tools-30~pre9/debian/changelog wireless-tools-30~pre9/debian/changelog --- wireless-tools-30~pre9/debian/changelog 2016-04-30 20:28:49.000000000 +0200 +++ wireless-tools-30~pre9/debian/changelog 2016-10-05 05:25:10.000000000 +0200 @@ -1,3 +1,10 @@ +wireless-tools (30~pre9-11.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Also use dh_auto_build for the udeb pass. Closes: #-1 + + -- Helmut Grohne <hel...@subdivi.de> Wed, 05 Oct 2016 05:24:34 +0200 + wireless-tools (30~pre9-11) unstable; urgency=medium * Add ConditionPathExists=/etc/iftab to ifrename.service. Closes: #823028 diff --minimal -Nru wireless-tools-30~pre9/debian/rules wireless-tools-30~pre9/debian/rules --- wireless-tools-30~pre9/debian/rules 2016-03-24 22:30:00.000000000 +0100 +++ wireless-tools-30~pre9/debian/rules 2016-10-05 05:24:32.000000000 +0200 @@ -10,7 +10,7 @@ dh_auto_install -- install install-static PREFIX=debian/tmp # Hack to make udeb friendly binaries $(MAKE) clean - $(MAKE) BUILD_NOLIBM=y CFLAGS="-Os -I." + dh_auto_build -- BUILD_NOLIBM=y CFLAGS="-Os -I." dh_install -pwireless-tools-udeb iwconfig iwgetid sbin/ dh_install -plibiw30-udeb libiw.so.30 lib/