Source: nftables
Version: 0.8.1-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

nftables fails to cross build from source, because it does not pass
--host to ./configure and thus configures for the build architecture.
The easiest way of fixing that is letting dh_auto_configure do it.
Please consider applying the attached patch.

Helmut
diff --minimal -Nru nftables-0.8.1/debian/changelog 
nftables-0.8.1/debian/changelog
--- nftables-0.8.1/debian/changelog     2018-01-17 14:55:14.000000000 +0100
+++ nftables-0.8.1/debian/changelog     2018-01-29 06:06:53.000000000 +0100
@@ -1,3 +1,10 @@
+nftables (0.8.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_configure pass --host to ./configure (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 29 Jan 2018 06:06:53 +0100
+
 nftables (0.8.1-1) unstable; urgency=medium
 
   * [46be8e1] d/control: update git URLs
diff --minimal -Nru nftables-0.8.1/debian/rules nftables-0.8.1/debian/rules
--- nftables-0.8.1/debian/rules 2018-01-17 14:54:40.000000000 +0100
+++ nftables-0.8.1/debian/rules 2018-01-29 06:06:51.000000000 +0100
@@ -5,10 +5,10 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-configure_opts := --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man 
--disable-silent-rules --with-xtables
+configure_opts := --with-xtables
 
 override_dh_auto_configure:
-       ./configure $(configure_opts) --
+       dh_auto_configure -- $(configure_opts) --
 
 %:
        dh $@ --with autoreconf

Reply via email to