Source: qbittorrent
Version: 4.0.3-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

qbittorrent fails to cross build from source, because it configures for
the build architecture by not passing the required --host flag to
./configure. This task is best deferred to dh_auto_configure. After
doing so, it still fails, because it doesn't invoke qmake correctly. I
need to consult with the qmake maintainers to find a solution to that
part. Can you apply the attached patch anyway and close this bug when
doing so?

Helmut
diff --minimal -Nru qbittorrent-4.0.3/debian/changelog 
qbittorrent-4.0.3/debian/changelog
--- qbittorrent-4.0.3/debian/changelog  2017-12-25 21:22:26.000000000 +0100
+++ qbittorrent-4.0.3/debian/changelog  2018-01-02 19:34:55.000000000 +0100
@@ -1,3 +1,11 @@
+qbittorrent (4.0.3-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Partially fix FTCBFS: Let dh_auto_configure pass --host to ./configure.
+    (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 02 Jan 2018 19:34:55 +0100
+
 qbittorrent (4.0.3-1) unstable; urgency=medium
 
   * New upstream release (Closes: #883871).
diff --minimal -Nru qbittorrent-4.0.3/debian/rules 
qbittorrent-4.0.3/debian/rules
--- qbittorrent-4.0.3/debian/rules      2016-10-29 21:56:06.000000000 +0200
+++ qbittorrent-4.0.3/debian/rules      2018-01-02 19:34:53.000000000 +0100
@@ -8,9 +8,9 @@
        dh $@ --without autoreconf --parallel
 
 override_dh_auto_configure:
-       mkdir -p build-nox && cd build-nox && ../configure --prefix=/usr 
--disable-gui \
+       dh_auto_configure --builddirectory build-nox -- --disable-gui \
                --with-boost-libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
-       mkdir -p build-gui && cd build-gui && ../configure --prefix=/usr \
+       dh_auto_configure --builddirectory build-gui -- \
                --with-boost-libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
 
 override_dh_auto_build:

Reply via email to