Source: rplay
Version: 3.3.2-16
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

rplay fails to cross build from source, because it uses the build
architecture compiler. The final failure manifests when dh_strip fails to
operate on build arch objects. After exporting a suitable CC, rplay
cross builds successfully. Please consider applying the attached patch.

Helmut
diff --minimal -Nru rplay-3.3.2/debian/changelog rplay-3.3.2/debian/changelog
--- rplay-3.3.2/debian/changelog        2016-07-15 19:21:58.000000000 +0200
+++ rplay-3.3.2/debian/changelog        2017-08-03 21:52:01.000000000 +0200
@@ -1,3 +1,10 @@
+rplay (3.3.2-16.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Export a triplet-prefixed CC (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 03 Aug 2017 21:52:01 +0200
+
 rplay (3.3.2-16) unstable; urgency=medium
 
   * debian/control: Standards version moved to 3.9.8 (no changes)
diff --minimal -Nru rplay-3.3.2/debian/rules rplay-3.3.2/debian/rules
--- rplay-3.3.2/debian/rules    2016-07-14 15:53:21.000000000 +0200
+++ rplay-3.3.2/debian/rules    2017-08-03 21:52:01.000000000 +0200
@@ -4,6 +4,13 @@
 
 SHELL=/bin/bash
 
+include /usr/share/dpkg/architecture.mk
+
+ifeq ($(origin CC),default)
+CC = $(DEB_HOST_GNU_TYPE)-gcc
+endif
+export CC
+
 i = $(shell pwd)/debian/tmp
 b = $(shell pwd)/debian/build
 

Reply via email to