Source: plzip
Version: 1.6-4
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

plzip fails to cross build from source, because it configures for the
build architecture. Its configure is hand-written and does not honour
the usual --host flag passed by dh_auto_configure so we need to pass CXX
explicitly. After doing so, plzip cross builds successfully. Please
consider applying the attached patch.

Helmut
diff --minimal -Nru plzip-1.6/debian/changelog plzip-1.6/debian/changelog
--- plzip-1.6/debian/changelog  2017-11-05 08:49:33.000000000 +0100
+++ plzip-1.6/debian/changelog  2017-12-18 19:34:25.000000000 +0100
@@ -1,3 +1,10 @@
+plzip (1.6-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass a suitable CXX to configure. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 18 Dec 2017 19:34:25 +0100
+
 plzip (1.6-4) unstable; urgency=medium
 
   * Uploading to sid.
diff --minimal -Nru plzip-1.6/debian/rules plzip-1.6/debian/rules
--- plzip-1.6/debian/rules      2017-11-05 08:49:27.000000000 +0100
+++ plzip-1.6/debian/rules      2017-12-18 19:34:23.000000000 +0100
@@ -1,10 +1,14 @@
 #!/usr/bin/make -f
 
-DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+include /usr/share/dpkg/architecture.mk
+-include /usr/share/dpkg/buildtools.mk
 
 %:
        dh ${@}
 
+override_dh_auto_configure:
+       dh_auto_configure -- 'CXX=$(CXX)'
+
 override_dh_auto_install:
        dh_auto_install -- DESTDIR=$(CURDIR)/debian/plzip
 

Reply via email to