Package: libgimp2.0-dev
Version: 2.8.20-1
Tags: patch
Control: affects -1 + src:gluas

gluas fails to cross build from source, because pkg-config fails to find
gimp-2.0.pc and gimpui-2.0.pc. During cross compilation, pkg-config does
only search /usr/share/pkgconfig and /usr/lib/<triplet>/pkgconfig, but
it does not search /usr/lib/pkgconfig. The latter is where gimp places
its .pc files. Since they are architecture dependent, using /usr/share
is inappropriate and they need to be moved to
/usr/lib/<triplet>/pkgconfig. The attached patch achieves that in a
minimally invasive way leveraging dh-exec. Please consider applying it.

Alternatively, consider passing
--libdir='$${prefix}/lib/$(DEB_HOST_MULTIARCH)' to configure (i.e. solve
#737725). That'll move the whole gimp installation from /usr/lib/gimp to
/usr/lib/<triplet>/gimp though and I fear that could break something.
Thus I opted for not solving #737725 (which would also solve this bug)
and using the simple change instead.

Helmut
diff --minimal -Nru gimp-2.8.20/debian/changelog gimp-2.8.20/debian/changelog
--- gimp-2.8.20/debian/changelog        2017-03-04 22:15:02.000000000 +0100
+++ gimp-2.8.20/debian/changelog        2017-08-17 12:13:05.000000000 +0200
@@ -1,3 +1,10 @@
+gimp (2.8.20-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Move pkgconfig files to a multiarch location (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Thu, 17 Aug 2017 12:13:05 +0200
+
 gimp (2.8.20-1) unstable; urgency=low
 
   * New upstream version 2.8.20
diff --minimal -Nru gimp-2.8.20/debian/control gimp-2.8.20/debian/control
--- gimp-2.8.20/debian/control  2016-09-12 00:27:25.000000000 +0200
+++ gimp-2.8.20/debian/control  2017-08-17 12:09:50.000000000 +0200
@@ -8,6 +8,7 @@
                cdbs (>= 0.4.97),
                autotools-dev,
                dh-autoreconf,
+               dh-exec,
                gettext,
                gnome-pkg-tools,
                gtk-doc-tools (>= 1.0),
diff --minimal -Nru gimp-2.8.20/debian/libgimp2.0-dev.install 
gimp-2.8.20/debian/libgimp2.0-dev.install
--- gimp-2.8.20/debian/libgimp2.0-dev.install   2015-10-03 19:00:24.000000000 
+0200
+++ gimp-2.8.20/debian/libgimp2.0-dev.install   2017-08-17 12:13:01.000000000 
+0200
@@ -1,5 +1,6 @@
+#!/usr/bin/dh-exec
 usr/lib/*.so
-usr/lib/pkgconfig/
+usr/lib/pkgconfig/*.pc /usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/
 usr/share/man/man1/gimptool-?.?.1
 usr/share/aclocal/gimp-?.?.m4
 usr/include/

Reply via email to