Package: liblasso3-dev
Version: 2.6.0-6
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs
Control: affects -1 + src:libapache2-mod-auth-mellon

libapache2-mod-auth-mellon fails to cross build from source, becuse it
cannot find lasso.pc. During cross compilation, pkg-config does not
search /usr/lib/pkgconfig. Thus, we need to move the lasso.pc file to a
multiarch location. Please consider applying the attached patch.
Alternatively, please consider passing a multiarch --libdir to
configure. Alternatively, consider using dh_auto_configure at compat
level 9 or higher.

Helmut
diff --minimal -Nru lasso-2.6.0/debian/changelog lasso-2.6.0/debian/changelog
--- lasso-2.6.0/debian/changelog        2020-01-19 10:23:50.000000000 +0100
+++ lasso-2.6.0/debian/changelog        2020-01-28 06:26:33.000000000 +0100
@@ -1,3 +1,10 @@
+lasso (2.6.0-6.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Move lasso.pc to a multiarch location. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 28 Jan 2020 06:26:33 +0100
+
 lasso (2.6.0-6) unstable; urgency=medium
 
   * d/control: remove unnecessary python build-dependency (closes: #936817)
diff --minimal -Nru lasso-2.6.0/debian/rules lasso-2.6.0/debian/rules
--- lasso-2.6.0/debian/rules    2019-11-20 11:01:19.000000000 +0100
+++ lasso-2.6.0/debian/rules    2020-01-28 06:26:31.000000000 +0100
@@ -9,10 +9,7 @@
 
 # These are used for cross-compiling and for saving the configure script
 # from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
-DEB_TARGET_ARCH     := $(shell dpkg-architecture -qDEB_HOST_ARCH)
+include /usr/share/dpkg/architecture.mk
 
 ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')
 
@@ -128,6 +125,8 @@
        dh_installexamples -XCVS
        dh_installman
        dh_install
+       mkdir $(CURDIR)/debian/liblasso3-dev/usr/lib/$(DEB_HOST_MULTIARCH)
+       mv $(CURDIR)/debian/liblasso3-dev/usr/lib/pkgconfig 
$(CURDIR)/debian/liblasso3-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig
        chrpath -d $(CURDIR)/debian/liblasso-perl/$(ARCHLIB)/auto/Lasso/Lasso.so
        dh_link
        dh_strip

Reply via email to