Source: dmg2img
Version: 1.6.5-1.1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

dmg2img fails to cross build from source, because it uses the build
architecture compiler. For cross building a host triplet prefixed
compiler needs to be used. Luckily, cdbs' makefile class does the right
thing. Just using it fixes cross compilation. Please consider applying
the attached patch after stretch is released.

Helmut
diff --minimal -Nru dmg2img-1.6.5/debian/changelog 
dmg2img-1.6.5/debian/changelog
--- dmg2img-1.6.5/debian/changelog      2016-11-28 19:55:28.000000000 +0100
+++ dmg2img-1.6.5/debian/changelog      2017-06-09 20:31:34.000000000 +0200
@@ -1,3 +1,10 @@
+dmg2img (1.6.5-1.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let cdbs' makefile.mk pass cross compilers. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 09 Jun 2017 20:31:34 +0200
+
 dmg2img (1.6.5-1.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff --minimal -Nru dmg2img-1.6.5/debian/rules dmg2img-1.6.5/debian/rules
--- dmg2img-1.6.5/debian/rules  2010-05-27 11:03:55.000000000 +0200
+++ dmg2img-1.6.5/debian/rules  2017-06-09 20:31:34.000000000 +0200
@@ -1,16 +1,7 @@
 #!/usr/bin/make -f
 
 include /usr/share/cdbs/1/rules/debhelper.mk
-CFLAGS=$(shell dpkg-buildflags --get CFLAGS)
-
-build-arch: debian/build-stamp
-debian/build-stamp:
-       $(MAKE) CFLAGS="$(CFLAGS)"
-       touch $@
-
-clean::
-       $(MAKE) clean
-       $(RM) debian/build-stamp 
+include /usr/share/cdbs/1/class/makefile.mk
 
 get-orig-source:
        uscan --rename --upstream-version 0 || true

Reply via email to