Bug#888762: lv2.pc cannot be found during cross compilation

Helmut Grohne helmut at subdivi.de
Mon Jan 29 15:47:26 UTC 2018


Package: lv2-dev
Version: 1.14.0~dfsg1-1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap
Control: affects -1 + src:yoshimi

yoshimi fails to cross build from source, because it cannot find lv2.pc.
During cross compilation, pkg-config does not search /usr/lib/pkgconfig.
One needs to move .pc files to /usr/lib/<triplet>/pkgconfig. The
attached patch minimally implements that. Please consider applying it or
passing a multiarch --libdir to waf.

Helmut
-------------- next part --------------
diff --minimal -Nru lv2-1.14.0~dfsg1/debian/changelog lv2-1.14.0~dfsg1/debian/changelog
--- lv2-1.14.0~dfsg1/debian/changelog	2016-09-22 13:20:16.000000000 +0200
+++ lv2-1.14.0~dfsg1/debian/changelog	2018-01-29 16:36:49.000000000 +0100
@@ -1,3 +1,10 @@
+lv2 (1.14.0~dfsg1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Move .pc files to a multiarch directory. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Mon, 29 Jan 2018 16:36:49 +0100
+
 lv2 (1.14.0~dfsg1-1) unstable; urgency=medium
 
   * New upstream version 1.14.0~dfsg1
diff --minimal -Nru lv2-1.14.0~dfsg1/debian/rules lv2-1.14.0~dfsg1/debian/rules
--- lv2-1.14.0~dfsg1/debian/rules	2016-09-22 13:20:16.000000000 +0200
+++ lv2-1.14.0~dfsg1/debian/rules	2018-01-29 16:36:47.000000000 +0100
@@ -1,6 +1,8 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
+include /usr/share/dpkg/architecture.mk
+
 upstream_version ?= $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)(\+dfsg\d+)?.*$$/\1/p')
 dfsg_version = $(upstream_version)~dfsg1
 pkg = $(shell dpkg-parsechangelog | sed -ne 's/^Source: //p')
@@ -35,6 +37,9 @@
 	for plugin in `cat debian/lv2-examples.install`; do \
 		rm -rf debian/lv2-dev/$$plugin ; \
 	done
+	# move .pc files to a multiarch directory
+	mkdir debian/lv2-dev/usr/lib/$(DEB_HOST_MULTIARCH)
+	mv debian/lv2-dev/usr/lib/pkgconfig debian/lv2-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig
 
 override_dh_installchangelogs:
 	dh_installchangelogs NEWS


More information about the pkg-multimedia-maintainers mailing list