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

Bug#838208: libiodbc2 FTCBFS: uses build architecture pkg-config



Control: tags -1 + pending


Hi,

2017-11-01 00:09 Manuel A. Fernandez Montecelo:
Hi,

2016-09-18 15:22 Helmut Grohne:
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.

Do you have any plans to upload a new version of the package, and if so,
what do you think of this fix?

Are you OK with the fix and would it help if we offer to NMU, to move
this forward?

Uploaded to delayed/10, please tell me if you would like me to to cancel
the NMU; or if it's OK, if I can re-schedule it to happen sooner.

.debdiff attached, it's basically what Helmut already sent as patch.


Cheers.
--
Manuel A. Fernandez Montecelo <manuel.montezelo@gmail.com>
diff -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	2017-12-12 22:31:37.000000000 +0100
@@ -1,3 +1,12 @@
+libiodbc2 (3.52.9-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+
+  [ Helmut Grohne ]
+  * Fix FTCBFS: Force using triplet-prefixed pkg-config. (Closes: #838208)
+
+ -- Manuel A. Fernandez Montecelo <mafm@debian.org>  Tue, 12 Dec 2017 22:31:37 +0100
+
 libiodbc2 (3.52.9-2) unstable; urgency=medium
 
   * Set SYSTEM_DIR to the odbc multiarch path. (Closes: #749427)
diff -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	2017-12-12 22:30:26.000000000 +0100
@@ -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: