Source: altermime Version: 0.3.10-7 Tags: patch User: helm...@debian.org Usertags: rebootstrap
Hi, altermime fails to cross build from source, because it uses the build architecture compiler. This is noticed at the end of the build when dh_strip fails to strip build architecture object files. Please find a patch that passes the cross compiler to the Makefile attached. Helmut
diff --minimal -Nru altermime-0.3.10/debian/changelog altermime-0.3.10/debian/changelog --- altermime-0.3.10/debian/changelog 2011-05-03 20:20:19.000000000 +0200 +++ altermime-0.3.10/debian/changelog 2016-01-21 19:42:12.000000000 +0100 @@ -1,3 +1,10 @@ +altermime (0.3.10-7.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Pass cross compiler to the Makefile. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Thu, 21 Jan 2016 19:41:51 +0100 + altermime (0.3.10-7) unstable; urgency=low * Update VCS fields diff --minimal -Nru altermime-0.3.10/debian/rules altermime-0.3.10/debian/rules --- altermime-0.3.10/debian/rules 2011-05-03 20:20:19.000000000 +0200 +++ altermime-0.3.10/debian/rules 2016-01-21 19:41:48.000000000 +0100 @@ -1,4 +1,10 @@ #!/usr/bin/make -f + +include /usr/share/dpkg/architecture.mk +ifeq ($(origin CC),default) +CC := $(DEB_HOST_GNU_TYPE)-gcc +endif + %: dh $@ @@ -8,6 +14,9 @@ mv -f postfix-altermime-howto*.html debian/docs/html dh_auto_configure +override_dh_auto_build: + dh_auto_build -- CC=$(CC) + override_dh_auto_install: dh_auto_install --destdir=debian/altermime/usr/bin