Source: libguytools2
Version: 2.0.5-1
Tags: patch
User: [email protected]
Usertags: rebootstrap

libguytools2 fails to cross build from source, because it does not pass
cross flags to qmake. As these are difficult to get right, the easiest
way to fix is using dh_auto_configure. When using qmake, you must build
depend on qt5-qmake. And for using lrelease you must build depend on
qt5-qmake:native. The attached patch fixes all of these. Please consider
applying it.

Helmut
diff --minimal -Nru libguytools2-2.0.5/debian/changelog 
libguytools2-2.0.5/debian/changelog
--- libguytools2-2.0.5/debian/changelog 2018-01-06 00:03:05.000000000 +0100
+++ libguytools2-2.0.5/debian/changelog 2018-05-09 06:22:04.000000000 +0200
@@ -1,3 +1,12 @@
+libguytools2 (2.0.5-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_configure pass the right flags to qmake.
+    + Depend on qt5-qmake:native for lrelease and qt5-qmake for qmake.
+
+ -- Helmut Grohne <[email protected]>  Wed, 09 May 2018 06:22:04 +0200
+
 libguytools2 (2.0.5-1) unstable; urgency=medium
 
   * [541d758] New upstream version 2.0.5
diff --minimal -Nru libguytools2-2.0.5/debian/control 
libguytools2-2.0.5/debian/control
--- libguytools2-2.0.5/debian/control   2018-01-06 00:02:02.000000000 +0100
+++ libguytools2-2.0.5/debian/control   2018-05-09 06:22:04.000000000 +0200
@@ -6,6 +6,8 @@
  Michael Prokop <[email protected]>,
 Build-depends:
- debhelper (>> 5.0.0),
+ debhelper (>= 7~),
+ qt5-qmake,
+ qt5-qmake:native,
  qtbase5-dev,
  qttools5-dev-tools,
 Standards-Version: 4.1.3
diff --minimal -Nru libguytools2-2.0.5/debian/rules 
libguytools2-2.0.5/debian/rules
--- libguytools2-2.0.5/debian/rules     2018-01-06 00:01:39.000000000 +0100
+++ libguytools2-2.0.5/debian/rules     2018-05-09 06:22:04.000000000 +0200
@@ -4,12 +4,14 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+export QT_SELECT=qt5
+
 build: build-stamp
 build-stamp:
        dh_testdir
        ./create_version_file.sh
        qtchooser -run-tool=lrelease -qt=qt5 tools.pro
-       qmake -qt5 tools.pro
+       dh_auto_configure -- tools.pro
        $(MAKE)
        touch build-stamp
 
@@ -18,7 +20,7 @@
        dh_testroot
        rm -f build-stamp
        # dpkg-buildpackage starts with cleaning, so we have to be sure that 
there's a Makefile (and thus call qmake)
-       qmake -qt5 toolsstatic.pro
+       dh_auto_configure -- toolsstatic.pro
        $(MAKE) clean
        dh_clean
 

Reply via email to