Bug#852360: dsniff FTCBFS: uses the build architecture compiler

Helmut Grohne helmut at subdivi.de
Mon Jan 23 20:46:15 UTC 2017


Source: dsniff
Version: 2.4b1+debian-23
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

dsniff fails to cross build from source, because its ancient ./configure
script does not prefix the C compiler with $ac_tool_prefix. Exporting a
suitable CC makes cross builds succeed nonetheless. Please consider
applying the attached patch (or moving to more recent autotools).

Helmut
-------------- next part --------------
diff --minimal -Nru dsniff-2.4b1+debian/debian/changelog dsniff-2.4b1+debian/debian/changelog
--- dsniff-2.4b1+debian/debian/changelog	2016-12-20 22:40:25.000000000 +0100
+++ dsniff-2.4b1+debian/debian/changelog	2017-01-23 21:42:53.000000000 +0100
@@ -1,3 +1,10 @@
+dsniff (2.4b1+debian-23.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass triplet-prefixed CC to configure (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Mon, 23 Jan 2017 21:42:53 +0100
+
 dsniff (2.4b1+debian-23) unstable; urgency=medium
 
   * Assign to pkg-security team (Closes: #847505)
diff --minimal -Nru dsniff-2.4b1+debian/debian/rules dsniff-2.4b1+debian/debian/rules
--- dsniff-2.4b1+debian/debian/rules	2016-12-20 22:39:02.000000000 +0100
+++ dsniff-2.4b1+debian/debian/rules	2017-01-23 21:42:52.000000000 +0100
@@ -1,5 +1,9 @@
 #!/usr/bin/make -f
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+include /usr/share/dpkg/architecture.mk
+ifeq ($(origin CC),default)
+export CC := $(DEB_HOST_GNU_TYPE)-gcc
+endif
 %:
 	dh  $@
 


More information about the Pkg-security-team mailing list