Source: lzip
Version: 1.19-2
Tags: patch
User: [email protected]
Usertags: rebootstrap

lzip fails to cross build from source, because it uses the build
architecture compiler. After passing the correct CXX to configure it
cross builds successfully. Please consider applying the attached patch.

Helmut
diff --minimal -Nru lzip-1.19/debian/changelog lzip-1.19/debian/changelog
--- lzip-1.19/debian/changelog  2017-06-18 21:38:14.000000000 +0200
+++ lzip-1.19/debian/changelog  2017-08-02 20:49:20.000000000 +0200
@@ -1,3 +1,10 @@
+lzip (1.19-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass proper CXX to configure. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Wed, 02 Aug 2017 20:49:20 +0200
+
 lzip (1.19-2) unstable; urgency=low
 
   * Uploading to sid.
diff --minimal -Nru lzip-1.19/debian/rules lzip-1.19/debian/rules
--- lzip-1.19/debian/rules      2017-05-15 13:51:10.000000000 +0200
+++ lzip-1.19/debian/rules      2017-08-02 20:49:17.000000000 +0200
@@ -1,8 +1,17 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/architecture.mk
+
+ifeq ($(origin CXX),default)
+CXX := $(DEB_HOST_GNU_TYPE)-g++
+endif
+
 %:
        dh ${@}
 
+override_dh_auto_configure:
+       dh_auto_configure -- 'CXX=$(CXX)'
+
 override_dh_auto_install:
        dh_auto_install -- DESTDIR=$(CURDIR)/debian/lzip
 

Reply via email to