Source: dovecot-antispam
Version: 2.0+20170109-1
Tags: patch
User: [email protected]
Usertags: rebootstrap

dovecot-antispam fails to cross build from source, because it uses the
build architecture comiler (as a GNU make default). After wrapping the
$(MAKE) invocation in dh_auto_build, dovecot-antispam cross builds
successfully, because dh_auto_build passes cross compilers to make.
Please consider applying the attached patch.

Helmut
diff -u dovecot-antispam-2.0+20170109/debian/changelog 
dovecot-antispam-2.0+20170109/debian/changelog
--- dovecot-antispam-2.0+20170109/debian/changelog
+++ dovecot-antispam-2.0+20170109/debian/changelog
@@ -1,3 +1,10 @@
+dovecot-antispam (2.0+20170109-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross compilers to make.  Closes: #-1
+
+ -- Helmut Grohne <[email protected]>  Thu, 17 Aug 2017 12:54:02 +0200
+
 dovecot-antispam (2.0+20170109-1) unstable; urgency=medium
 
   * Make the debug prefix configurable.  The default remains "antispam: ", but
diff -u dovecot-antispam-2.0+20170109/debian/control 
dovecot-antispam-2.0+20170109/debian/control
--- dovecot-antispam-2.0+20170109/debian/control
+++ dovecot-antispam-2.0+20170109/debian/control
@@ -2,7 +2,7 @@
 Section: mail
 Priority: optional
 Maintainer: Ron Lee <[email protected]>
-Build-Depends: debhelper (>= 5), dovecot-dev (>= 1:2.2.13-4)
+Build-Depends: debhelper (>= 7), dovecot-dev (>= 1:2.2.13-4)
 Standards-Version: 3.9.8.0
 Homepage: http://johannes.sipsolutions.net/Projects/dovecot-antispam
 Vcs-Git: git://git.debian.org/users/ron/dovecot-antispam.git
diff -u dovecot-antispam-2.0+20170109/debian/rules 
dovecot-antispam-2.0+20170109/debian/rules
--- dovecot-antispam-2.0+20170109/debian/rules
+++ dovecot-antispam-2.0+20170109/debian/rules
@@ -19,7 +19,7 @@
 lib90_antispam_plugin.so:
        dh_testdir
        cp -f defconfig .config
-       $(MAKE)
+       dh_auto_build
 
 
 install: install-arch

Reply via email to