Source: matanza
Version: 0.13+ds1-6
Tags: patch
User: [email protected]
Usertags: rebootstrap

matanza fails to cross build from source, because it uses the build
architecture compiler. Usually the --host flag is missing here, but
matanza uses dh_auto_configure and thus passes the flag. Unfortunately,
matanza's ./configure is too old to handle it and needs CC instead.
Please consider applying the attached patch.

Helmut
diff --minimal -Nru matanza-0.13+ds1/debian/changelog 
matanza-0.13+ds1/debian/changelog
--- matanza-0.13+ds1/debian/changelog   2018-02-08 15:52:15.000000000 +0100
+++ matanza-0.13+ds1/debian/changelog   2019-05-23 15:36:13.000000000 +0200
@@ -1,3 +1,10 @@
+matanza (0.13+ds1-6.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Supply CC from dpkg's buildtools.mk. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Thu, 23 May 2019 15:36:13 +0200
+
 matanza (0.13+ds1-6) unstable; urgency=medium
 
   * Team upload.
diff --minimal -Nru matanza-0.13+ds1/debian/rules matanza-0.13+ds1/debian/rules
--- matanza-0.13+ds1/debian/rules       2018-02-08 15:52:15.000000000 +0100
+++ matanza-0.13+ds1/debian/rules       2019-05-23 15:36:12.000000000 +0200
@@ -3,6 +3,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+-include /usr/share/dpkg/buildtools.mk
+export CC
 CFLAGS:=       $(shell dpkg-buildflags --get CFLAGS)
 CPPFLAGS:=     $(shell dpkg-buildflags --get CPPFLAGS)
 LDFLAGS:=      $(shell dpkg-buildflags --get LDFLAGS)

Reply via email to