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

Bug#895991: libgdome2-dev: move gdome2.pc to a multiarch location



Package: libgdome2-dev
Version: 0.8.1+debian-6
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap
Control: affetcs -1 + src:gtkmathview

gtkmathview fails to cross build from source, because it cannot find
gdome2.pc. During cross compilation, pkg-config does not search
/usr/lib/pkgconfig. Accordingly, gdome2.pc should be moved to a
multiarch location. Please consider applying the attached patch.

Helmut
diff --minimal -Nru gdome2-0.8.1+debian/debian/changelog gdome2-0.8.1+debian/debian/changelog
--- gdome2-0.8.1+debian/debian/changelog	2013-07-02 13:02:53.000000000 +0200
+++ gdome2-0.8.1+debian/debian/changelog	2018-04-18 14:14:07.000000000 +0200
@@ -1,3 +1,10 @@
+gdome2 (0.8.1+debian-6.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Put the pkg-config file into a multiarch location. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Wed, 18 Apr 2018 14:14:07 +0200
+
 gdome2 (0.8.1+debian-6) unstable; urgency=low
 
   * QA upload.
diff --minimal -Nru gdome2-0.8.1+debian/debian/rules gdome2-0.8.1+debian/debian/rules
--- gdome2-0.8.1+debian/debian/rules	2013-04-03 16:24:55.000000000 +0200
+++ gdome2-0.8.1+debian/debian/rules	2018-04-18 14:14:05.000000000 +0200
@@ -1,6 +1,8 @@
 #!/usr/bin/make -f
 # GNU copyright 1997 to 1999 by Joey Hess.
 
+include /usr/share/dpkg/architecture.mk
+
 CFLAGS = -Wall -g
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 CFLAGS += -O0
@@ -58,6 +60,9 @@
 	mv debian/libgdome2-dev/usr/share/doc/libgdome2-dev/gdome2-* \
 	   debian/libgdome2-dev/usr/share/doc/libgdome2-dev/html
 	ln -sf book1.html debian/libgdome2-dev/usr/share/doc/libgdome2-dev/html/index.html
+	# move .pc file to a multiarch location
+	mkdir debian/libgdome2-dev/usr/lib/$(DEB_HOST_MULTIARCH)
+	mv debian/libgdome2-dev/usr/lib/pkgconfig debian/libgdome2-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig
 
 binary: binary-indep binary-arch
 binary-indep: install

Reply to: