Source: libsimpleini
Version: 4.17+dfsg-6
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

libsimpleini successfully cross builds a package that uses the build
architecture multiarch libdir. This is due to dh_auto_install not
passing cross tools to make. Thus $(CC) --print-multiarch yields the
build architecture triplet. Please consider applying the attached patch
to fix that.

Helmut
diff --minimal -Nru libsimpleini-4.17+dfsg/debian/changelog 
libsimpleini-4.17+dfsg/debian/changelog
--- libsimpleini-4.17+dfsg/debian/changelog     2020-07-17 18:41:12.000000000 
+0200
+++ libsimpleini-4.17+dfsg/debian/changelog     2020-08-11 07:16:26.000000000 
+0200
@@ -1,3 +1,10 @@
+libsimpleini (4.17+dfsg-6.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix cross misbuild: use correct multiarch libdir. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 11 Aug 2020 07:16:26 +0200
+
 libsimpleini (4.17+dfsg-6) unstable; urgency=medium
 
   * Add build libicu-dev for libsimpleini-dev
diff --minimal -Nru libsimpleini-4.17+dfsg/debian/rules 
libsimpleini-4.17+dfsg/debian/rules
--- libsimpleini-4.17+dfsg/debian/rules 2020-07-17 18:41:12.000000000 +0200
+++ libsimpleini-4.17+dfsg/debian/rules 2020-08-11 07:16:24.000000000 +0200
@@ -7,6 +7,7 @@
 export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
 export DEB_LDFLAGS_MAINT_APPEND =
 
+include /usr/share/dpkg/architecture.mk
 include /usr/share/dpkg/pkg-info.mk
 
 export VERSION = $(shell echo $(DEB_VERSION_UPSTREAM) | sed 's/+[a-z]*//')
@@ -14,3 +15,6 @@
 
 %:
        dh $@ --with pkgkde-symbolshelper
+
+override_dh_auto_install:
+       dh_auto_install -- MULTIARCH=$(DEB_HOST_MULTIARCH)

Reply via email to