Bug#895447: move botan-2.pc to a multiarch location

2018-04-11 Thread GCS
Control: tags -1 +confirmed peding

On Wed, Apr 11, 2018 at 5:38 PM, Helmut Grohne  wrote:
> qtcreator fails to cross build from source, because it cannot find
> botan-2.pc. During cross compilation, pkg-config searches
> /usr/lib//pkgconfig and /usr/share/pkgconfig, but not
> /usr/lib/pkgconfig. The latter is where botan-2.pc currently lives. The
> attached patch moves it to the multiarch location. Please consider
> applying it.
 Indeed, this is a must have. How quick do you need it?

Cheers,
Laszlo/GCS



Bug#895447: move botan-2.pc to a multiarch location

2018-04-11 Thread Helmut Grohne
Package: libbotan-2-dev
Version: 2.4.0-6
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap
Control: affects -1 + src:qtcreator

qtcreator fails to cross build from source, because it cannot find
botan-2.pc. During cross compilation, pkg-config searches
/usr/lib//pkgconfig and /usr/share/pkgconfig, but not
/usr/lib/pkgconfig. The latter is where botan-2.pc currently lives. The
attached patch moves it to the multiarch location. Please consider
applying it.

Helmut
diff --minimal -Nru botan-2.4.0/debian/changelog botan-2.4.0/debian/changelog
--- botan-2.4.0/debian/changelog2018-04-10 19:55:33.0 +0200
+++ botan-2.4.0/debian/changelog2018-04-11 17:21:36.0 +0200
@@ -1,3 +1,10 @@
+botan (2.4.0-6.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Use multiarch paths. (closes: #-1)
+
+ -- Helmut Grohne   Wed, 11 Apr 2018 17:21:36 +0200
+
 botan (2.4.0-6) unstable; urgency=high
 
   * Backport CVE-2018-9860 security fix for memory over read in TLS CBC
diff --minimal -Nru botan-2.4.0/debian/libbotan-2-4.install 
botan-2.4.0/debian/libbotan-2-4.install
--- botan-2.4.0/debian/libbotan-2-4.install 2017-01-09 20:48:14.0 
+0100
+++ botan-2.4.0/debian/libbotan-2-4.install 2018-04-11 17:21:36.0 
+0200
@@ -1 +1 @@
-usr/lib/libbotan-2.so.*
+usr/lib/*/libbotan-2.so.*
diff --minimal -Nru botan-2.4.0/debian/libbotan-2-dev.install 
botan-2.4.0/debian/libbotan-2-dev.install
--- botan-2.4.0/debian/libbotan-2-dev.install   2017-01-09 20:48:14.0 
+0100
+++ botan-2.4.0/debian/libbotan-2-dev.install   2018-04-11 17:21:36.0 
+0200
@@ -1,4 +1,4 @@
 usr/include/
-usr/lib/libbotan-2.a
-usr/lib/libbotan-2.so
-usr/lib/pkgconfig/
+usr/lib/*/libbotan-2.a
+usr/lib/*/libbotan-2.so
+usr/lib/*/pkgconfig/
diff --minimal -Nru botan-2.4.0/debian/python3-botan.install 
botan-2.4.0/debian/python3-botan.install
--- botan-2.4.0/debian/python3-botan.install2017-12-11 18:18:00.0 
+0100
+++ botan-2.4.0/debian/python3-botan.install2018-04-11 17:21:36.0 
+0200
@@ -1 +1 @@
-usr/lib/python3/site-packages/* /usr/lib/python3/dist-packages/
+usr/lib/*/python3/site-packages/* /usr/lib/python3/dist-packages/
diff --minimal -Nru botan-2.4.0/debian/rules botan-2.4.0/debian/rules
--- botan-2.4.0/debian/rules2018-04-10 19:55:33.0 +0200
+++ botan-2.4.0/debian/rules2018-04-11 17:21:31.0 +0200
@@ -4,6 +4,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+include /usr/share/dpkg/architecture.mk
+
 DOCPKG = $(CURDIR)/debian/libbotan-2-doc
 
 override_dh_clean:
@@ -13,6 +15,7 @@
 override_dh_auto_configure:
$(CURDIR)/configure.py \
--prefix=/usr/ \
+   --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
$(if $(filter $(DEB_HOST_ARCH), armel armhf),--disable-neon) \
--with-rst2man \
--with-bzip2 \