Source: qnapi
Version: 0.2.3-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

qnapi fails to cross build from source, because it calls the build
architecture qmake. The easiest way of calling the host qmake - using
dh_auto_configure - makes qnapi cross buildable. Please consider
applying the attached patch.

Helmut
diff --minimal -Nru qnapi-0.2.3/debian/changelog qnapi-0.2.3/debian/changelog
--- qnapi-0.2.3/debian/changelog        2020-03-21 20:00:45.000000000 +0100
+++ qnapi-0.2.3/debian/changelog        2020-04-06 17:08:35.000000000 +0200
@@ -1,3 +1,10 @@
+qnapi (0.2.3-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_configure call a cross qmake. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 06 Apr 2020 17:08:35 +0200
+
 qnapi (0.2.3-1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff --minimal -Nru qnapi-0.2.3/debian/rules qnapi-0.2.3/debian/rules
--- qnapi-0.2.3/debian/rules    2020-03-17 02:56:35.000000000 +0100
+++ qnapi-0.2.3/debian/rules    2020-04-06 17:08:35.000000000 +0200
@@ -9,7 +9,7 @@
        dh $@
 
 override_dh_auto_configure:
-       qmake -makefile QMAKE_STRIP=: PREFIX=/usr QMAKE_CFLAGS_ISYSTEM=-I
+       dh_auto_configure -- QMAKE_CFLAGS_ISYSTEM=-I
 
 override_dh_install:
        rm debian/qnapi/usr/share/doc/qnapi/LICENSE*

Reply via email to