Source: ncftp
Version: 2:3.2.6-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

ncftp fails to cross build from source, because it does not pass --host
to configure. Beyond that it also needs to export a suitable CC. I'm
attaching a patch for your convenience.

Helmut
diff --minimal -Nru ncftp-3.2.6/debian/changelog ncftp-3.2.6/debian/changelog
--- ncftp-3.2.6/debian/changelog        2022-07-17 20:24:42.000000000 +0200
+++ ncftp-3.2.6/debian/changelog        2023-03-27 08:11:06.000000000 +0200
@@ -1,3 +1,10 @@
+ncftp (2:3.2.6-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass cross tools and --host to configure. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 27 Mar 2023 08:11:06 +0200
+
 ncftp (2:3.2.6-1) unstable; urgency=medium
 
   * new upstream release from 2016-11-27 ;)
diff --minimal -Nru ncftp-3.2.6/debian/rules ncftp-3.2.6/debian/rules
--- ncftp-3.2.6/debian/rules    2022-07-17 20:24:42.000000000 +0200
+++ ncftp-3.2.6/debian/rules    2023-03-27 08:11:06.000000000 +0200
@@ -5,6 +5,9 @@
 
 include /usr/share/dpkg/architecture.mk
 
+DPKG_EXPORT_BUILDTOOLS=1
+include /usr/share/dpkg/buildtools.mk
+
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
@@ -16,6 +19,7 @@
        # Add here commands to configure the package.
        TAR=/bin/tar \
        CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" 
./configure \
+               --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \
                --prefix=/usr \
                --mandir=\$${prefix}/share/man \
                --sysconfdir=/etc \

Reply via email to