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

Bug#949990: zita-rev1 FTCBFS: uses a non-standard pkg-config variabel



Source: zita-rev1
Version: 0.2.2-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

zita-rev1 fails to cross build from source, because it uses a
non-standard variable for pkg-config, which isn't substituted by
debhelper. Thus debian/rules sets PKG_CONF=pkg-config and uses the build
architecture one. Please consider initializing it from e.g. dpkg's
buildtools.mk (this patch) or using the standard name PKG_CONFIG that is
properly substituted by dh_auto_build.

Helmut
diff --minimal -Nru zita-rev1-0.2.2/debian/changelog zita-rev1-0.2.2/debian/changelog
--- zita-rev1-0.2.2/debian/changelog	2020-01-27 22:53:37.000000000 +0100
+++ zita-rev1-0.2.2/debian/changelog	2020-01-28 06:17:15.000000000 +0100
@@ -1,3 +1,10 @@
+zita-rev1 (0.2.2-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass a triplet-prefixed pkg-config. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Tue, 28 Jan 2020 06:17:15 +0100
+
 zita-rev1 (0.2.2-1) unstable; urgency=medium
 
   * Team upload
diff --minimal -Nru zita-rev1-0.2.2/debian/rules zita-rev1-0.2.2/debian/rules
--- zita-rev1-0.2.2/debian/rules	2020-01-27 22:28:57.000000000 +0100
+++ zita-rev1-0.2.2/debian/rules	2020-01-28 06:17:07.000000000 +0100
@@ -4,7 +4,9 @@
 
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
-export PKG_CONF=pkg-config
+include /usr/share/dpkg/buildtools.mk
+
+export PKG_CONF=$(PKG_CONFIG)
 
 export PREFIX=/usr
 

Reply to: