Bug#953267: zita-at1 FTCBFS: hard codes the build architecture pkg-config
Source: zita-at1
Version: 0.6.2-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs
zita-at1 fails to cross build from source, because debian/rules hard
codes the build architecture pkg-config. A good solution is seeding it
from dpkg's buildtools.mk. Please consider applying the attached patch.
I also encourage upstream to use the standard variable "PKG_CONFIG"
rather than "PKG_CONF" even if they wish to keep the default "pkg-conf".
Helmut
diff --minimal -Nru zita-at1-0.6.2/debian/changelog zita-at1-0.6.2/debian/changelog
--- zita-at1-0.6.2/debian/changelog 2020-01-27 22:24:53.000000000 +0100
+++ zita-at1-0.6.2/debian/changelog 2020-03-06 13:24:38.000000000 +0100
@@ -1,3 +1,10 @@
+zita-at1 (0.6.2-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Let dpkg's buildtools.mk supply pkg-config. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de> Fri, 06 Mar 2020 13:24:38 +0100
+
zita-at1 (0.6.2-1) unstable; urgency=medium
* Team upload
diff --minimal -Nru zita-at1-0.6.2/debian/rules zita-at1-0.6.2/debian/rules
--- zita-at1-0.6.2/debian/rules 2020-01-27 22:23:49.000000000 +0100
+++ zita-at1-0.6.2/debian/rules 2020-03-06 13:24:37.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: