Bug#838208: libiodbc2 FTCBFS: uses build architecture pkg-config
Source: libiodbc2
Version: 3.52.9-2
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap
libiodbc2 fails to cross build from source, because it uses the build
architecture pkg-config. Thus it fails finding gtk and that results in
missing files. It seems that ./admin/gtk-2.0.m4 has its own code for
discovering which $PKG_CONFIG to use rather than using a standard
autoconf macro. Thus it does not default to use the triplet-prefixed
pkg-config and does not consider the PKG_CONFIG environment variable
either. The attached patch forces the right pkg-config via the
corresponding cache variable. Please consider applying the patch or
fixing the .m4 file to use standard (working) checks.
Helmut
diff --minimal -Nru libiodbc2-3.52.9/debian/changelog libiodbc2-3.52.9/debian/changelog
--- libiodbc2-3.52.9/debian/changelog 2014-05-29 13:06:37.000000000 +0200
+++ libiodbc2-3.52.9/debian/changelog 2016-09-18 15:16:20.000000000 +0200
@@ -1,3 +1,10 @@
+libiodbc2 (3.52.9-2.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Force using triplet-prefixed pkg-config. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de> Sun, 18 Sep 2016 15:09:02 +0200
+
libiodbc2 (3.52.9-2) unstable; urgency=medium
* Set SYSTEM_DIR to the odbc multiarch path. (Closes: #749427)
diff --minimal -Nru libiodbc2-3.52.9/debian/rules libiodbc2-3.52.9/debian/rules
--- libiodbc2-3.52.9/debian/rules 2014-05-29 13:06:37.000000000 +0200
+++ libiodbc2-3.52.9/debian/rules 2016-09-18 15:14:11.000000000 +0200
@@ -1,8 +1,9 @@
#!/usr/bin/make -f
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+include /usr/share/dpkg/architecture.mk
export DEB_CFLAGS_MAINT_APPEND = -DSYSTEM_DIR=\"/usr/lib/$(DEB_HOST_MULTIARCH)/odbc\"
+export ac_cv_path_PKG_CONFIG=$(DEB_HOST_GNU_TYPE)-pkg-config
%:
dh $@ --parallel --with autoreconf,pkgkde_symbolshelper
Reply to: