Source: iproute2 Version: 4.14.1-2 Tags: patch User: helm...@debian.org Usertags: rebootstrap
iproute2 fails to cross build from source, because it compiles build tools in the netem folder with the host compiler. (The build system also confuses build and host.) Setting HOSTCC to the build architecture compiler fixes that. Its configure defaults to using the build architecture pkg-config for discovering host architecture packages and passing a suitable PKG_CONFIG fixes that as well. After applying the attachd patch, iproute2 cross builds successfully. Please consider using it. Helmut
diff --minimal -Nru iproute2-4.14.1/debian/changelog iproute2-4.14.1/debian/changelog --- iproute2-4.14.1/debian/changelog 2018-01-24 20:19:17.000000000 +0100 +++ iproute2-4.14.1/debian/changelog 2018-01-25 05:44:35.000000000 +0100 @@ -1,3 +1,10 @@ +iproute2 (4.14.1-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Pass HOSTCC and PKG_CONFIG variables via CROSS. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Thu, 25 Jan 2018 05:44:35 +0100 + iproute2 (4.14.1-2) unstable; urgency=medium * iproute2-doc: set it to Multiarch: foreign - no dependencies diff --minimal -Nru iproute2-4.14.1/debian/rules iproute2-4.14.1/debian/rules --- iproute2-4.14.1/debian/rules 2018-01-09 23:17:31.000000000 +0100 +++ iproute2-4.14.1/debian/rules 2018-01-25 05:44:35.000000000 +0100 @@ -6,7 +6,7 @@ ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) CROSS := else - CROSS := CC=$(DEB_HOST_GNU_TYPE)-gcc + CROSS := CC=$(DEB_HOST_GNU_TYPE)-gcc HOSTCC=gcc PKG_CONFIG=$(DEB_HOST_GNU_TYPE)-pkg-config endif %: