Source: net-tools Version: 1.60+git20150829.73cef8a-2 Tags: patch User: helm...@debian.org Usertags: rebootstrap
Dear net-tools maintainers, I noticed that net-tools is built the build architecture compiler during cross builds. The packaging tries to address this by setting up the CC variable correctly, but does not account for the fact that CC has a built-in default. Thus the ?= assignment never assigns anything. Furthermore, pkg-config must also be cross-prefixed. Please consider applying the attached patch. Helmut
diff --minimal -Nru net-tools-1.60+git20150829.73cef8a/debian/changelog net-tools-1.60+git20150829.73cef8a/debian/changelog --- net-tools-1.60+git20150829.73cef8a/debian/changelog +++ net-tools-1.60+git20150829.73cef8a/debian/changelog @@ -1,3 +1,12 @@ +net-tools (1.60+git20150829.73cef8a-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS. Closes: #-1. + + Really assign CC for cross compilation. + + Use triplet prefixed pkg-config. + + -- Helmut Grohne <hel...@subdivi.de> Tue, 19 Jan 2016 20:59:03 +0100 + net-tools (1.60+git20150829.73cef8a-2) unstable; urgency=medium [ Laurent Bigonville ] diff --minimal -Nru net-tools-1.60+git20150829.73cef8a/debian/rules net-tools-1.60+git20150829.73cef8a/debian/rules --- net-tools-1.60+git20150829.73cef8a/debian/rules +++ net-tools-1.60+git20150829.73cef8a/debian/rules @@ -8,10 +8,12 @@ DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +ifeq ($(origin CC),default) + CC := $(DEB_HOST_GNU_TYPE)-gcc +endif ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) - CC ?= $(DEB_HOST_GNU_TYPE)-gcc -else - CC ?= gcc + PKG_CONFIG ?= $(DEB_HOST_GNU_TYPE)-pkg-config + export PKG_CONFIG endif COPTS := -D_GNU_SOURCE -Wall $(shell dpkg-buildflags --get CFLAGS) \