Package: libfreetype-dev
Version: 2.8-0.2
File: /usr/bin/freetype-config
Tags: patch
Control: affects -1 + src:foobillardplus

When libfreetype-dev is installed for a non-native architecture, it
does not work at all. It issues calls to "pkg-config ... freetype2" and
expects reasonable results as the same package contains freetype2.pc.
That is not the case however as pkg-config does not necessarily search
/usr/lib/$packagearch/pkgconfig. For it to search that directory,
pkg-config must be qualified with the GNU triplet of the package
architecture. The attached patch does just that. Please consider
applying it.

Helmut
diff -u freetype-2.8/debian/changelog freetype-2.8/debian/changelog
--- freetype-2.8/debian/changelog
+++ freetype-2.8/debian/changelog
@@ -1,3 +1,10 @@
+freetype (2.8-0.3) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Patch freetype-config to use arch-qualified pkg-config. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 08 Aug 2017 10:46:18 +0200
+
 freetype (2.8-0.2) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -u freetype-2.8/debian/rules freetype-2.8/debian/rules
--- freetype-2.8/debian/rules
+++ freetype-2.8/debian/rules
@@ -3,9 +3,7 @@
 # This is free software; see the GNU General Public Licence
 # version 2 or later for copying conditions.  There is NO warranty.
 
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
-DEB_HOST_ARCH      ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
-DEB_BUILD_ARCH     ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+include /usr/share/dpkg/architecture.mk
 
 ifneq ($(DEB_HOST_ARCH),$(DEB_BUILD_ARCH))
   export LIBPNG_CFLAGS = -I/usr/include/libpng12
@@ -96,6 +94,7 @@
                $(CURDIR)/debian/$(demospkg)/usr/bin/
 endif
        sed -i -e'/dependency_libs/s/'.*'//' 
debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libfreetype.la
+       sed -i -e's/pkg-config/$(DEB_HOST_GNU_TYPE)-&/' 
debian/tmp/usr/bin/freetype-config
 
 override_dh_install:
        dh_install --fail-missing

Reply via email to