Source: ifstat
Version: 1.1-8.1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

ifstat fails to cross build from source, because it uses the build
architecture compiler. After exporting a triplet-prefixed CC, ifstat
cross builds successfully. Please consider applying the attached patch.

Helmut
diff -u ifstat-1.1/debian/changelog ifstat-1.1/debian/changelog
--- ifstat-1.1/debian/changelog
+++ ifstat-1.1/debian/changelog
@@ -1,3 +1,10 @@
+ifstat (1.1-8.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Export a triplet-prefixed CC. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 13 Oct 2017 11:47:02 +0200
+
 ifstat (1.1-8.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -u ifstat-1.1/debian/rules ifstat-1.1/debian/rules
--- ifstat-1.1/debian/rules
+++ ifstat-1.1/debian/rules
@@ -9,6 +9,12 @@
 # This handles nostrip (via dh_strip) but not noopt. The configure.in
 # overrides CFLAGS and needs to be edited to disable optimisation.
 
+include /usr/share/dpkg/architecture.mk
+ifeq ($(origin CC),default)
+CC = $(DEB_HOST_GNU_TYPE)-gcc
+endif
+export CC
+
 configure: configure-stamp
 configure-stamp:
        dh_testdir

Reply via email to