Source: lutok
Version: 0.4+dfsg-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

lutok fails to cross build from source, because it does not pass --host
to ./configure. Usually, the easiest fix is using dh_auto_configure, but
this ./configure fails recognizing --runstatedir, so one has to pass
--host explicitly. Additionally, the parameter passed to --libdir
confuses build and host. Refer to man dpkg-architecture for a definition
of these terms. It also confuses gnu-type and multiarch. Presently this
only makes a difference on i386. Refer to man dpkg-architecture for a
definition of these terms. Please consider applying the attached patch.

Helmut
diff --minimal -Nru lutok-0.4+dfsg/debian/changelog 
lutok-0.4+dfsg/debian/changelog
--- lutok-0.4+dfsg/debian/changelog     2019-08-02 00:52:59.000000000 +0200
+++ lutok-0.4+dfsg/debian/changelog     2019-10-10 06:15:11.000000000 +0200
@@ -1,3 +1,12 @@
+lutok (0.4+dfsg-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Pass --host to ./configure.
+    + Fix build/host and gnu-type/multiarch confusion.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 10 Oct 2019 06:15:11 +0200
+
 lutok (0.4+dfsg-1) unstable; urgency=low
 
   * Initial release (Closes: #932350)
diff --minimal -Nru lutok-0.4+dfsg/debian/rules lutok-0.4+dfsg/debian/rules
--- lutok-0.4+dfsg/debian/rules 2019-08-02 00:52:59.000000000 +0200
+++ lutok-0.4+dfsg/debian/rules 2019-10-10 06:15:11.000000000 +0200
@@ -15,8 +15,9 @@
 override_dh_auto_configure:
        ./configure --disable-silent-rules --disable-maintainer-mode      \
                --disable-dependency-tracking --build=$(DEB_BUILD_GNU_TYPE)     
\
+               --host=$(DEB_HOST_GNU_TYPE)                                     
\
                --prefix=/usr --includedir=/usr/include                         
\
-               --libdir=/usr/lib/$(DEB_BUILD_GNU_TYPE)                         
\
+               --libdir=/usr/lib/$(DEB_HOST_MULTIARCH)                         
\
                --docdir=/usr/share/doc/liblutok3                               
\
                --htmldir=/usr/share/doc/liblutok-doc/html
 

Reply via email to