Source: qwinff
Version: 0.2.1+git20191128-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

qwinff fails to cross build from source, because it uses the build
architecture qmake. Please use the host architecture qmake. I've
attached a patch for your convenience.

Helmut
diff --minimal -Nru qwinff-0.2.1+git20191128/debian/changelog 
qwinff-0.2.1+git20191128/debian/changelog
--- qwinff-0.2.1+git20191128/debian/changelog   2019-11-28 10:31:49.000000000 
+0100
+++ qwinff-0.2.1+git20191128/debian/changelog   2020-04-05 20:48:24.000000000 
+0200
@@ -1,3 +1,10 @@
+qwinff (0.2.1+git20191128-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use the host qmake. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 05 Apr 2020 20:48:24 +0200
+
 qwinff (0.2.1+git20191128-1) unstable; urgency=medium
 
   * New upstream version. (Closes: #945602)
diff --minimal -Nru qwinff-0.2.1+git20191128/debian/rules 
qwinff-0.2.1+git20191128/debian/rules
--- qwinff-0.2.1+git20191128/debian/rules       2019-11-28 10:31:49.000000000 
+0100
+++ qwinff-0.2.1+git20191128/debian/rules       2020-04-05 20:48:24.000000000 
+0200
@@ -1,6 +1,8 @@
 #!/usr/bin/make -f
 #export DH_VERBOSE = 1
 
+include /usr/share/dpkg/architecture.mk
+
 # see FEATURE AREAS in dpkg-buildflags(1)
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
@@ -18,9 +20,12 @@
        dh $@
 
 override_dh_auto_configure:
-       qmake -makefile PREFIX=$(shell pwd)/qwinff/usr src/qwinff.pro
+       $(DEB_HOST_GNU_TYPE)-qmake -makefile PREFIX=$(shell pwd)/qwinff/usr 
src/qwinff.pro
        sed -i "s,-DQT_NO_DEBUG,,g" Makefile
        sed -i 's/^CXXFLAGS.*/& -g/g' Makefile
 
+override_dh_auto_build:
+       dh_auto_build -- QMAKE=$(DEB_HOST_GNU_TYPE)-qmake
+
 override_dh_auto_install:
        @echo skip install target

Reply via email to