Bug#944200: liblrdf0-dev: move lrdf.pc to a multiarch location

Helmut Grohne helmut at subdivi.de
Tue Nov 5 19:42:58 GMT 2019


Package: liblrdf0-dev
Version: 0.6.1-1
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs
Control: affects -1 + src:sonic-visualiser

The affected packages fail to cross build from source, because they fail
to find lrdf.pc using pkg-config. During cross compilation, pkg-config
only searches /usr/lib/<triplet>/pkgconfig and /usr/share/pkgconfig, but
not /usr/lib/pkgconfig. The attached patch moves the whole library to a
multiarch directory. Please consider applying it.

Helmut
-------------- next part --------------
diff --minimal -Nru liblrdf-0.6.1/debian/changelog liblrdf-0.6.1/debian/changelog
--- liblrdf-0.6.1/debian/changelog	2017-01-09 19:50:09.000000000 +0100
+++ liblrdf-0.6.1/debian/changelog	2019-11-05 20:22:13.000000000 +0100
@@ -1,3 +1,10 @@
+liblrdf (0.6.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Move lrdf.pc to a multiarch location. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Tue, 05 Nov 2019 20:22:13 +0100
+
 liblrdf (0.6.1-1) unstable; urgency=medium
 
   [ upstream ]
diff --minimal -Nru liblrdf-0.6.1/debian/control liblrdf-0.6.1/debian/control
--- liblrdf-0.6.1/debian/control	2017-01-09 19:43:40.000000000 +0100
+++ liblrdf-0.6.1/debian/control	2019-11-05 20:20:25.000000000 +0100
@@ -8,7 +8,7 @@
  libtool,
  automake,
  autoconf,
- debhelper,
+ debhelper (>= 8.1.3),
  dh-buildinfo,
  licensecheck,
  d-shlibs (>= 0.79~),
diff --minimal -Nru liblrdf-0.6.1/debian/rules liblrdf-0.6.1/debian/rules
--- liblrdf-0.6.1/debian/rules	2017-01-09 17:38:11.000000000 +0100
+++ liblrdf-0.6.1/debian/rules	2019-11-05 20:22:13.000000000 +0100
@@ -54,15 +54,16 @@
  src/Makefile.in
 DEB_ACLOCAL_ARGS = -Im4 --install --force
 DEB_AUTOMAKE_ARGS = --add-missing --copy --foreign --force
+DEB_CONFIGURE_EXTRA_FLAGS += '--libdir=$${prefix}/lib/$(DEB_HOST_MULTIARCH)'
 clean::
 	rm -f compile stamp-h
 
 binary-post-install/liblrdf0::
-	d-shlibmove --commit \
+	d-shlibmove --commit --multiarch \
 		--movedev "debian/tmp/usr/include/*" usr/include/ \
-		--movedev "debian/tmp/usr/lib/pkgconfig/*.pc" usr/lib/pkgconfig/ \
+		--movedev "debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/*.pc" usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/ \
 		--moveshl debian/tmp/usr/share/ladspa/rdf/ladspa.rdfs usr/share/ladspa/rdf/ \
-		debian/tmp/usr/lib/liblrdf.so
+		debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/liblrdf.so
 
 binary-predeb/liblrdf0-dev::
 	find debian/liblrdf0-dev/ -type f -name '*.la' -delete


More information about the pkg-multimedia-maintainers mailing list