Source: dwdiff
Version: 2.1.1-2
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

dwdiff fails to cross build from source, because it uses the build
architecture compiler. After exporting a suitable CC (as supplied by
dpkg's buildtools.mk), dwdiff cross builds successfully. Please consider
applying the attached patch.

Helmut
diff --minimal -Nru dwdiff-2.1.1/debian/changelog dwdiff-2.1.1/debian/changelog
--- dwdiff-2.1.1/debian/changelog       2017-08-29 07:50:19.000000000 +0200
+++ dwdiff-2.1.1/debian/changelog       2018-06-04 06:22:57.000000000 +0200
@@ -1,3 +1,10 @@
+dwdiff (2.1.1-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dpkg's buildtools.mk set up CC. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 04 Jun 2018 06:22:57 +0200
+
 dwdiff (2.1.1-2) unstable; urgency=medium
 
   * bump policy version
diff --minimal -Nru dwdiff-2.1.1/debian/rules dwdiff-2.1.1/debian/rules
--- dwdiff-2.1.1/debian/rules   2017-04-16 17:45:04.000000000 +0200
+++ dwdiff-2.1.1/debian/rules   2018-06-04 06:22:55.000000000 +0200
@@ -22,6 +22,8 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
+-include /usr/share/dpkg/buildtools.mk
+export CC
 export CFLAGS = \
  $(shell dpkg-buildflags --get CFLAGS) \
  $(shell dpkg-buildflags --get CPPFLAGS)

Reply via email to