Source: dos2unix Version: 7.3.4-2 Tags: patch User: helm...@debian.org Usertags: rebootstrap
dos2unix fails to cross build from source, because it uses the build architecture compiler. By indirecting the make invocation through dh_auto_build, the cross build can be made work, because dh_auto_build knows how to pass cross compilers. Please consider applying the attached patch. Helmut
diff --minimal -Nru dos2unix-7.3.4/debian/changelog dos2unix-7.3.4/debian/changelog --- dos2unix-7.3.4/debian/changelog 2016-10-26 06:36:02.000000000 +0200 +++ dos2unix-7.3.4/debian/changelog 2016-11-10 19:38:20.000000000 +0100 @@ -1,3 +1,10 @@ +dos2unix (7.3.4-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dh_auto_build pass cross compilers. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Thu, 10 Nov 2016 19:38:20 +0100 + dos2unix (7.3.4-2) unstable; urgency=medium * debian/control diff --minimal -Nru dos2unix-7.3.4/debian/rules dos2unix-7.3.4/debian/rules --- dos2unix-7.3.4/debian/rules 2016-10-26 06:36:02.000000000 +0200 +++ dos2unix-7.3.4/debian/rules 2016-11-10 19:38:18.000000000 +0100 @@ -21,7 +21,7 @@ echo "rule: override_dh_auto_build" env env LANG=en_US.utf8 \ - $(MAKE) LDFLAGS_USER="$(LDFLAGS)" CFLAGS_USER="$(CPPFLAGS) $(CFLAGS)" + dh_auto_build -- LDFLAGS_USER="$(LDFLAGS)" CFLAGS_USER="$(CPPFLAGS) $(CFLAGS)" override_dh_clean: dh_clean