Source: dns-flood-detector
Version: 1.20-5
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

dns-flood-detector fails to cross build from source, because it uses the
build architecture compiler as a make default. A good way to correctly
initialize the CC variable is using dpkg's buildtools.mk. Please
consider applying the attached patch.

Helmut
diff --minimal -Nru dns-flood-detector-1.20/debian/changelog 
dns-flood-detector-1.20/debian/changelog
--- dns-flood-detector-1.20/debian/changelog    2019-01-24 10:45:28.000000000 
+0100
+++ dns-flood-detector-1.20/debian/changelog    2020-01-22 17:36:17.000000000 
+0100
@@ -1,3 +1,10 @@
+dns-flood-detector (1.20-5.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dpkg's buildtools.mk supply $(CC). (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Wed, 22 Jan 2020 17:36:17 +0100
+
 dns-flood-detector (1.20-5) unstable; urgency=medium
 
   * [d1ee939] travis-ci: Use xenial image
diff --minimal -Nru dns-flood-detector-1.20/debian/rules 
dns-flood-detector-1.20/debian/rules
--- dns-flood-detector-1.20/debian/rules        2019-01-24 10:45:28.000000000 
+0100
+++ dns-flood-detector-1.20/debian/rules        2020-01-22 17:36:16.000000000 
+0100
@@ -4,6 +4,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+include /usr/share/dpkg/buildtools.mk
+
 # hardening
 export DEB_BUILD_HARDENING=1
 CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)

Reply via email to