Source: unace
Version: 1.2b-15
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

unace fails to cross build from source, because it uses the build
architecture compiler. After wrapping the make invocations in
dh_auto_build, it cross builds successfully. Please consider applying
the attached patch.

Helmut
diff --minimal -Nru unace-1.2b/debian/changelog unace-1.2b/debian/changelog
--- unace-1.2b/debian/changelog 2016-06-03 01:04:27.000000000 +0200
+++ unace-1.2b/debian/changelog 2017-09-17 20:41:28.000000000 +0200
@@ -1,3 +1,10 @@
+unace (1.2b-15.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross compilers to make. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 17 Sep 2017 20:41:28 +0200
+
 unace (1.2b-15) unstable; urgency=medium
 
   * Use https for hadrons.org URLs.
diff --minimal -Nru unace-1.2b/debian/rules unace-1.2b/debian/rules
--- unace-1.2b/debian/rules     2016-06-03 00:18:15.000000000 +0200
+++ unace-1.2b/debian/rules     2017-09-17 20:40:45.000000000 +0200
@@ -32,8 +32,8 @@
 build-arch: Makefile gccmaked
        dh_testdir
        
-       $(MAKE) dep CPPFLAGS="$(CPPFLAGS)"
-       $(MAKE) CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
+       dh_auto_build -- dep CPPFLAGS="$(CPPFLAGS)" OSTYPE=Linux
+       dh_auto_build -- CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" 
LDFLAGS="$(LDFLAGS)" OSTYPE=Linux
 
 build: build-indep build-arch
 

Reply via email to