Source: libodb-mysql
Version: 2.4.0-4
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

libodb-mysql fails to cross build from source, because debian/rules hard
codes the wrong pkg-config. The attached patch fixes that and makes
libodb-mysql cross buildable. Please consider applying it.

Helmut
diff --minimal -Nru libodb-mysql-2.4.0/debian/changelog 
libodb-mysql-2.4.0/debian/changelog
--- libodb-mysql-2.4.0/debian/changelog 2019-01-15 21:20:59.000000000 +0100
+++ libodb-mysql-2.4.0/debian/changelog 2019-05-10 20:48:54.000000000 +0200
@@ -1,3 +1,10 @@
+libodb-mysql (2.4.0-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dpkg's buildtools.mk supply pkg-config. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 10 May 2019 20:48:54 +0200
+
 libodb-mysql (2.4.0-4) unstable; urgency=medium
 
   * Fix FTBFS with recent MariaDB (closes: #919374).
diff --minimal -Nru libodb-mysql-2.4.0/debian/rules 
libodb-mysql-2.4.0/debian/rules
--- libodb-mysql-2.4.0/debian/rules     2019-01-15 21:20:59.000000000 +0100
+++ libodb-mysql-2.4.0/debian/rules     2019-05-10 20:48:53.000000000 +0200
@@ -4,10 +4,10 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+-include /usr/share/dpkg/buildtools.mk
+PKG_CONFIG ?= pkg-config
 
-DEB_CPPFLAGS_MAINT_APPEND=`pkg-config --cflags mysqlclient`
+DEB_CPPFLAGS_MAINT_APPEND=`$(PKG_CONFIG) --cflags mysqlclient`
 
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk

Reply via email to