[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#853255: aircrack-ng FTCBFS: uses the build architecture pkg-config



Source: aircrack-ng
Version: 1:1.2-0~rc4-2
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

aircrack-ng fails to cross build from source, because it uses the build
architecture pkg-config, which fails to find host architecture
libraries. Using a triplet-prefixed pkg-config works in all cases and
fixes the cross build. Please consider applying the attached patch after
stretch is released.

Helmut
-------------- next part --------------
diff --minimal -Nru aircrack-ng-1.2-0~rc4/debian/changelog aircrack-ng-1.2-0~rc4/debian/changelog
--- aircrack-ng-1.2-0~rc4/debian/changelog	2017-01-07 17:49:53.000000000 +0100
+++ aircrack-ng-1.2-0~rc4/debian/changelog	2017-01-30 21:13:40.000000000 +0100
@@ -1,3 +1,10 @@
+aircrack-ng (1:1.2-0~rc4-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Supply triplet-prefixed pkg-config (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Mon, 30 Jan 2017 21:13:40 +0100
+
 aircrack-ng (1:1.2-0~rc4-2) unstable; urgency=medium
 
   * d/copyright: Update debian/* entry.
diff --minimal -Nru aircrack-ng-1.2-0~rc4/debian/rules aircrack-ng-1.2-0~rc4/debian/rules
--- aircrack-ng-1.2-0~rc4/debian/rules	2017-01-07 17:49:53.000000000 +0100
+++ aircrack-ng-1.2-0~rc4/debian/rules	2017-01-30 21:13:39.000000000 +0100
@@ -2,6 +2,9 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export MAKEFLAGS = gcrypt=true sqlite=true experimental=true pcre=true
+include /usr/share/dpkg/architecture.mk
+PKG_CONFIG ?= $(DEB_HOST_GNU_TYPE)-pkg-config
+export PKG_CONFIG
 
 %:
 	dh $@


Reply to: