Package: dosfstools Version: 3.0.13-1 Severity: normal Tags: patch User: crossbu...@debian.org Usertags: cross
dosfstools fails to cross-build because it uses the native compiler rather than the appropriate cross-compiler. The fix is trivial, and follows. * Use correct compiler when cross-building. diff -Nru dosfstools-3.0.13/debian/rules dosfstools-3.0.13/debian/rules --- dosfstools-3.0.13/debian/rules 2012-06-30 18:13:01.000000000 +0100 +++ dosfstools-3.0.13/debian/rules 2012-12-04 14:26:13.000000000 +0000 @@ -1,8 +1,16 @@ #!/usr/bin/make -f +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) + %: dh ${@} +ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) +override_dh_auto_build: + dh_auto_build -- CC=$(DEB_HOST_GNU_TYPE)-gcc +endif + override_dh_auto_install: dh_auto_install -- DESTDIR=$(CURDIR)/debian/dosfstools PREFIX=/usr SBINDIR=/sbin Thanks, -- Colin Watson [cjwat...@ubuntu.com] -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org