Source: ncftp
Version: 2:3.2.5-2.1
Tags: patch
User: [email protected]
Usertags: rebootstrap

ncftp fails to cross build from source, because it configures for the
build architecture. debian/rules already sets up $(confflags) to contain
the relevant --host flag, but ncftp's ./configure is too old to
understand them. Instead, it expects a CC variable to be supplied. The
attached patch implements that using dpkg's buildtools.mk and makes
ncftp cross buildable. Please consider applying it.

Helmut
--- ncftp-3.2.5/debian/changelog        2018-06-24 16:41:59.000000000 +0200
+++ ncftp-3.2.5/debian/changelog        2018-07-01 07:49:39.000000000 +0200
@@ -1,3 +1,11 @@
+ncftp (2:3.2.5-2.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let buildtools.mk supply a suitable CC to ./configure.
+    + (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Sun, 01 Jul 2018 07:49:39 +0200
+
 ncftp (2:3.2.5-2.1) unstable; urgency=medium
 
   * Non-maintainer upload.
--- ncftp-3.2.5/debian/rules    2016-07-02 10:46:43.000000000 +0200
+++ ncftp-3.2.5/debian/rules    2018-07-01 07:49:39.000000000 +0200
@@ -3,14 +3,10 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-DEB_HOST_GNU_TYPE ?=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE ?=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+include /usr/share/dpkg/architecture.mk
 
-ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
-confflags= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
-else
-confflags= --build $(DEB_BUILD_GNU_TYPE)
-endif
+DPKG_EXPORT_BUILDTOOLS = 1
+-include /usr/share/dpkg/buildtools.mk
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 DPKG_EXPORT_BUILDFLAGS = 1

Reply via email to