Source: pciutils Version: 1:3.3.1-1.1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
Hi, pciutils fails to cross build from source. lib/configure uses plain pkg-config by default and thus fails to detect libkmod. It also requires setting a HOST variable. The attached patch takes care of both and makes the cross build succeed. Please consider applying it. Helmut
diff --minimal -Nru pciutils-3.3.1/debian/changelog pciutils-3.3.1/debian/changelog --- pciutils-3.3.1/debian/changelog 2016-01-13 20:18:32.000000000 +0100 +++ pciutils-3.3.1/debian/changelog 2016-08-19 07:53:00.000000000 +0200 @@ -1,3 +1,12 @@ +pciutils (1:3.3.1-1.2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS (Closes: #-1) + + export cross $PKG_CONFIG + + export cross $HOST + + -- Helmut Grohne <hel...@subdivi.de> Fri, 19 Aug 2016 07:44:36 +0200 + pciutils (1:3.3.1-1.1) unstable; urgency=medium * Non-maintainer upload. diff --minimal -Nru pciutils-3.3.1/debian/rules pciutils-3.3.1/debian/rules --- pciutils-3.3.1/debian/rules 2016-01-13 19:32:44.000000000 +0100 +++ pciutils-3.3.1/debian/rules 2016-08-19 07:58:24.000000000 +0200 @@ -5,13 +5,12 @@ #export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk - -DEB_HOST_GNU_TYPE=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -DEB_BUILD_GNU_TYPE=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) -DEB_HOST_MULTIARCH=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH) +include /usr/share/dpkg/architecture.mk ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) -CROSS=CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)- +export PKG_CONFIG=$(DEB_HOST_GNU_TYPE)-pkg-config +export HOST=$(DEB_HOST_GNU_CPU)-$(DEB_HOST_ARCH_OS) +CROSS=CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)- HOST=$(HOST) endif ifeq ($(DEB_HOST_ARCH_OS),linux)