[pkg-wpa-devel] Bug#836095: iw FTCBFS: uses build architecture tools
Helmut Grohne
helmut at subdivi.de
Tue Aug 30 15:13:15 UTC 2016
Source: iw
Version: 3.17-1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap
iw fails to cross build from source, because it uses the build
architecture pkg-config instead of the host prefixed one. The attached
patch supplies a suitable PKG_CONFIG variable and thus makes the cross
build work.
Failing build log at:
http://subdivi.de/~helmut/debomatic-logs/iw_3.17-1_ppc64el.build
Helmut
-------------- next part --------------
diff --minimal -Nru iw-3.17/debian/changelog iw-3.17/debian/changelog
--- iw-3.17/debian/changelog 2014-10-14 20:43:15.000000000 +0200
+++ iw-3.17/debian/changelog 2016-08-30 17:11:49.000000000 +0200
@@ -1,3 +1,10 @@
+iw (3.17-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Use triplet prefixed pkg-config (Closes: #-1).
+
+ -- Helmut Grohne <helmut at subdivi.de> Tue, 30 Aug 2016 17:08:02 +0200
+
iw (3.17-1) unstable; urgency=medium
* New upstream release.
diff --minimal -Nru iw-3.17/debian/rules iw-3.17/debian/rules
--- iw-3.17/debian/rules 2013-12-31 02:14:25.000000000 +0100
+++ iw-3.17/debian/rules 2016-08-30 17:08:59.000000000 +0200
@@ -2,17 +2,17 @@
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
include /usr/share/dpkg/buildflags.mk
+include /usr/share/dpkg/architecture.mk
SBINDIR = /sbin
V = 1
-DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+ifeq ($(origin CC),default)
CC=$(DEB_HOST_GNU_TYPE)-gcc
endif
+PKG_CONFIG ?= $(DEB_HOST_GNU_TYPE)-pkg-config
-export CC SBINDIR V
+export CC PKG_CONFIG SBINDIR V
%:
dh ${@} --parallel
More information about the Pkg-wpa-devel
mailing list