Source: traceroute Version: 1:2.1.0-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
traceroute fails to cross build from source. It uses the build architecture compiler and later fails stripping, because proper cross tools are used there. The upstream build system supports cross (and native) building by passing a suitable value for CROSS. Since The native compiler also comes with prefixed tools, even native builds can set CROSS without any downsides. So this is what my patch does. Helmut
diff --minimal -Nru traceroute-2.1.0/debian/changelog traceroute-2.1.0/debian/changelog --- traceroute-2.1.0/debian/changelog 2016-03-09 17:32:13.000000000 +0100 +++ traceroute-2.1.0/debian/changelog 2016-08-29 11:47:43.000000000 +0200 @@ -1,3 +1,10 @@ +traceroute (1:2.1.0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: pass CROSS= to make (closes: #-1). + + -- Helmut Grohne <hel...@subdivi.de> Mon, 29 Aug 2016 11:47:23 +0200 + traceroute (1:2.1.0-1) unstable; urgency=low * New upstream release. diff --minimal -Nru traceroute-2.1.0/debian/rules traceroute-2.1.0/debian/rules --- traceroute-2.1.0/debian/rules 2014-05-18 12:36:29.000000000 +0200 +++ traceroute-2.1.0/debian/rules 2016-08-29 11:46:04.000000000 +0200 @@ -6,8 +6,13 @@ SHELL := sh -e +include /usr/share/dpkg/architecture.mk + export DEB_BUILD_MAINT_OPTIONS = hardening=+all +override_dh_auto_build: + dh_auto_build -- CROSS=$(DEB_HOST_GNU_TYPE)- + override_dh_auto_install: install -D -m 0755 traceroute/traceroute debian/traceroute/usr/bin/traceroute.db install -D -m 0644 traceroute/traceroute.8 debian/traceroute/usr/share/man/man1/traceroute.db.1