Source: sa-exim
Version: 4.2.1-16
Tags: patch
User: [email protected]
Usertags: rebootstrap

sa-exim fails to cross build from source because it uses the build
architecture compiler (as a make default). After running make through
dh_auto_build, it cross builds successfully, because debhelper knows
how to pass cross compilers to make. Please consider applying the
attached patch.

Helmut
diff --minimal -Nru sa-exim-4.2.1/debian/changelog 
sa-exim-4.2.1/debian/changelog
--- sa-exim-4.2.1/debian/changelog      2016-08-02 23:08:31.000000000 +0200
+++ sa-exim-4.2.1/debian/changelog      2017-09-25 16:32:45.000000000 +0200
@@ -1,3 +1,10 @@
+sa-exim (4.2.1-16.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross compilers to make (Closes: #-1).
+
+ -- Helmut Grohne <[email protected]>  Mon, 25 Sep 2017 16:32:45 +0200
+
 sa-exim (4.2.1-16) unstable; urgency=low
 
   * reproducible-build.patch: Make ACKNOWLEDGEMENTS always UTF-8 encoded
diff --minimal -Nru sa-exim-4.2.1/debian/rules sa-exim-4.2.1/debian/rules
--- sa-exim-4.2.1/debian/rules  2016-07-22 11:13:10.000000000 +0200
+++ sa-exim-4.2.1/debian/rules  2017-09-25 16:32:43.000000000 +0200
@@ -16,7 +16,7 @@
 build-arch: build-stamp
 build-stamp:
        dh_testdir
-       $(MAKE) BUILDCFLAGS='-I/usr/include/exim4 -fPIC $$(CPPFLAGS) 
$$(CFLAGS)' \
+       dh_auto_build -- BUILDCFLAGS='-I/usr/include/exim4 -fPIC $$(CPPFLAGS) 
$$(CFLAGS)' \
          CPPFLAGS='$(CPPFLAGS)' CFLAGS='$(CFLAGS)' LDFLAGS='-shared 
$(LDFLAGS)' SUFF=''
        touch build-stamp
 

Reply via email to