Source: vsftpd
Version: 3.0.3-8
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

vsftpd fails to cross build from source, because it uses the build
architecture compiler. Recent debhelper have learned how to pass cross
compilers for the makefile build system, so indirecting the explicit
make invocation through dh_auto_build fixes the cross build. It also
makes parallel builds work. Please consider applying the attached patch.

Helmut
diff --minimal -Nru vsftpd-3.0.3/debian/changelog vsftpd-3.0.3/debian/changelog
--- vsftpd-3.0.3/debian/changelog       2016-09-21 10:38:42.000000000 +0200
+++ vsftpd-3.0.3/debian/changelog       2017-01-06 20:34:18.000000000 +0100
@@ -1,3 +1,10 @@
+vsftpd (3.0.3-8.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross compilers (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 06 Jan 2017 20:34:18 +0100
+
 vsftpd (3.0.3-8) unstable; urgency=low
 
   * Remove libeatmydata1 from Depends (Closes: #836904)
diff --minimal -Nru vsftpd-3.0.3/debian/rules vsftpd-3.0.3/debian/rules
--- vsftpd-3.0.3/debian/rules   2015-04-21 21:29:21.000000000 +0200
+++ vsftpd-3.0.3/debian/rules   2017-01-06 20:34:10.000000000 +0100
@@ -13,7 +13,7 @@
        dh ${@} --parallel --with=systemd
 
 override_dh_auto_build:
-       $(MAKE) CFLAGS="$(CFLAGS) $(CPPFLAGS)" LIBS="$(LIBS)" LINK=""
+       dh_auto_build -- CFLAGS="$(CFLAGS) $(CPPFLAGS)" LIBS="$(LIBS)" LINK=""
 
 override_dh_auto_install:
        install -D -m 644 debian/vsftpd.apport 
$(CURDIR)/debian/vsftpd/usr/share/apport/package-hooks/vsftpd.py

Reply via email to