Source: gddrescue
Version: 1.21-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

gddrescue fails to cross build from source, because it uses the build
architecture compiler (g++). Supplying a triplet-prefixed variant fixes
the cross build. Please consider applying the attached patch after
stretch is released.

Helmut
diff --minimal -Nru gddrescue-1.21/debian/changelog 
gddrescue-1.21/debian/changelog
--- gddrescue-1.21/debian/changelog     2016-12-21 23:46:00.000000000 +0100
+++ gddrescue-1.21/debian/changelog     2017-04-27 21:12:41.000000000 +0200
@@ -1,3 +1,10 @@
+gddrescue (1.21-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass a triplet-prefixed CXX to make (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 27 Apr 2017 21:12:41 +0200
+
 gddrescue (1.21-1) unstable; urgency=medium
 
   * [e5f8382] New upstream version 1.21
diff --minimal -Nru gddrescue-1.21/debian/rules gddrescue-1.21/debian/rules
--- gddrescue-1.21/debian/rules 2016-12-21 23:44:56.000000000 +0100
+++ gddrescue-1.21/debian/rules 2017-04-27 21:12:38.000000000 +0200
@@ -1,10 +1,13 @@
 #!/usr/bin/make -f
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
-DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+include /usr/share/dpkg/architecture.mk
 EXTRA_CONFIGURE_ARGS =
 ifeq ($(DEB_HOST_ARCH_OS), linux)
 EXTRA_CONFIGURE_ARGS += --enable-linux
 endif
+ifeq ($(origin CXX),default)
+CXX := $(DEB_HOST_GNU_TYPE)-g++
+endif
 
 %:
        dh $@

Reply via email to