Bug#811561: net-tools FTCBFS: uses build architecture tools (gcc, pkg-config)
Helmut Grohne
helmut at subdivi.de
Tue Jan 19 20:32:38 UTC 2016
Source: net-tools
Version: 1.60+git20150829.73cef8a-2
Tags: patch
User: helmutg at 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
-------------- next part --------------
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 <helmut at 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) \
More information about the Pkg-net-tools-maintainers
mailing list