Source: aview
Version: 1.3.0rc1-9
Severity: normal
Tags: patch

aview fails to cross build from source, because its ancient ./configure
does not understand --host and needs to be told about the cross compiler
via CC. After doing so, aview cross builds successfully. Please consider
applying the attached patch.

Helmut
diff -u aview-1.3.0rc1/debian/rules aview-1.3.0rc1/debian/rules
--- aview-1.3.0rc1/debian/rules
+++ aview-1.3.0rc1/debian/rules
@@ -15,6 +15,11 @@
 binary-pre-install/aview::
        rm -f $(CURDIR)/debian/aview/usr/share/man/man1/asciiview.1
 
+include /usr/share/dpkg/architecture.mk
+ifeq ($(origin CC),default)
+CC := $(DEB_HOST_GNU_TYPE)-gcc
+endif
+export CC
 include /usr/share/cdbs/1/class/autotools.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
diff -u aview-1.3.0rc1/debian/changelog aview-1.3.0rc1/debian/changelog
--- aview-1.3.0rc1/debian/changelog
+++ aview-1.3.0rc1/debian/changelog
@@ -1,3 +1,10 @@
+aview (1.3.0rc1-9.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Export a triplet-prefixed CC. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 08 Aug 2017 13:03:17 +0200
+
 aview (1.3.0rc1-9) unstable; urgency=low
 
   * Acknowledge NMU, thanks to Gerfried Fuchs (Closes: #496422).

Reply via email to