Source: dataquay
Version: 0.9.1-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

dataquay fails to cross build from source, because it uses the build
architecture qmake. Using dh_auto_configure, you get the host
architecture qmake. The attached patch implements that, but it doesn't
quite make dataquay cross buildable. Please consider applying it and
close this bug when doing so.

The next failure reason is that dataquay runs tests during
dh_auto_build and tests typically fail during cross compilation with an
Exec format error, which is exactly what happens here. Thus cross
builders usually pass DEB_BUILD_OPTIONS=nocheck. Since dataquay runs
tests as part from dh_auto_build, the nocheck flag isn't honoured though
and tests are run anyway. Could you maybe also try to figure out how to
make DEB_BUILD_OPTIONS=nocheck work for dataquay?

Helmut
diff --minimal -Nru dataquay-0.9.1/debian/changelog 
dataquay-0.9.1/debian/changelog
--- dataquay-0.9.1/debian/changelog     2016-07-19 12:04:15.000000000 +0200
+++ dataquay-0.9.1/debian/changelog     2018-06-28 07:18:48.000000000 +0200
@@ -1,3 +1,10 @@
+dataquay (0.9.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Improve cross building: Use the host qmake via dh_auto_configure. (Closes: 
#-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 28 Jun 2018 07:18:48 +0200
+
 dataquay (0.9.1-1) unstable; urgency=medium
 
   * Update watch file.
diff --minimal -Nru dataquay-0.9.1/debian/rules dataquay-0.9.1/debian/rules
--- dataquay-0.9.1/debian/rules 2016-07-19 11:50:53.000000000 +0200
+++ dataquay-0.9.1/debian/rules 2018-06-28 07:18:47.000000000 +0200
@@ -10,7 +10,7 @@
        dh $@ --parallel
 
 override_dh_auto_configure:
-       qmake dataquay.pro PREFIX=/usr LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
+       dh_auto_configure -- dataquay.pro PREFIX=/usr 
LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
 
 override_dh_auto_install:
        dh_auto_install

Reply via email to