Source: nload
Version: 0.7.4-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

nload fails to cross build from source, because it configures for the
build architecture. ./configure thus fails finding ncurses, which is
only requested for the host architecture. Indirecting the explicit
./configure invocation through dh_auto_configure makes nload cross build
successfully because dh_auto_configure knows when to pass the right
--host flag to ./configure. Please consider applying the attached patch.

Helmut
diff --minimal -Nru nload-0.7.4/debian/changelog nload-0.7.4/debian/changelog
--- nload-0.7.4/debian/changelog        2012-05-28 11:37:04.000000000 +0200
+++ nload-0.7.4/debian/changelog        2016-12-04 05:43:42.000000000 +0100
@@ -1,3 +1,11 @@
+nload (0.7.4-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_configure pass cross flags to ./configure (Closes:
+    #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 04 Dec 2016 05:43:42 +0100
+
 nload (0.7.4-1) unstable; urgency=low
 
   * [29fb6c5] Imported Upstream version 0.7.4
diff --minimal -Nru nload-0.7.4/debian/rules nload-0.7.4/debian/rules
--- nload-0.7.4/debian/rules    2012-05-28 11:37:04.000000000 +0200
+++ nload-0.7.4/debian/rules    2016-12-04 05:43:40.000000000 +0100
@@ -8,7 +8,7 @@
        dh_testdir
        cp -f /usr/share/misc/config.sub config.sub
        cp -f /usr/share/misc/config.guess config.guess
-       ./configure --prefix=/usr --mandir=\$${prefix}/share/man 
--infodir=\$${prefix}/share/info --sysconfdir=/etc CFLAGS="$(CFLAGS)"
+       dh_auto_configure -- CFLAGS="$(CFLAGS)"
        touch configure-stamp
 
 build: configure build-stamp

Reply via email to