Source: pbzip2
Version: 1.1.9-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

pbzip2 fails to cross build from source, because it uses the build
architecture compiler and thus dh_strip fails. Passing cross compilers
to make is done by dh_auto_build since a short while, so indirecting the
make invocation through dh_auto_build is sufficient for making pbzip2
cross build. Please consider applying the attached patch.

Helmut
diff --minimal -Nru pbzip2-1.1.9/debian/changelog pbzip2-1.1.9/debian/changelog
--- pbzip2-1.1.9/debian/changelog       2014-09-09 07:13:19.000000000 +0200
+++ pbzip2-1.1.9/debian/changelog       2016-12-03 16:00:19.000000000 +0100
@@ -1,3 +1,10 @@
+pbzip2 (1.1.9-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross compilers (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 03 Dec 2016 16:00:19 +0100
+
 pbzip2 (1.1.9-1) unstable; urgency=medium
 
   * New upstream version 1.1.9.
diff --minimal -Nru pbzip2-1.1.9/debian/rules pbzip2-1.1.9/debian/rules
--- pbzip2-1.1.9/debian/rules   2014-09-09 06:53:39.000000000 +0200
+++ pbzip2-1.1.9/debian/rules   2016-12-03 16:00:16.000000000 +0100
@@ -35,7 +35,7 @@
 
 build-stamp: configure-stamp 
        dh_testdir
-       $(MAKE) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
+       dh_auto_build -- CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" 
LDFLAGS="$(LDFLAGS)"
        touch build-stamp
 
 clean:

Reply via email to