Source: qtads
Version: 2.1.7-0.1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

qtads fails to cross build from source, because it uses the build
architecture qmake. Please consider applying the attached patch to make
it cross buildable. Alternatively, consider using dh_auto_configure.

Helmut
diff --minimal -Nru qtads-2.1.7/debian/changelog qtads-2.1.7/debian/changelog
--- qtads-2.1.7/debian/changelog        2019-09-12 22:48:42.000000000 +0200
+++ qtads-2.1.7/debian/changelog        2019-09-16 06:06:02.000000000 +0200
@@ -1,3 +1,10 @@
+qtads (2.1.7-0.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use the host architecture qmake. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 16 Sep 2019 06:06:02 +0200
+
 qtads (2.1.7-0.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff --minimal -Nru qtads-2.1.7/debian/rules qtads-2.1.7/debian/rules
--- qtads-2.1.7/debian/rules    2019-09-12 22:48:19.000000000 +0200
+++ qtads-2.1.7/debian/rules    2019-09-16 06:05:59.000000000 +0200
@@ -1,5 +1,6 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/architecture.mk
 include /usr/share/cdbs/1/class/qmake.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 
@@ -9,7 +10,11 @@
 CXXFLAGS += -fno-strict-aliasing -std=c++11
 
 export QT_SELECT = qt5
+ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
 QMAKE = qmake
+else
+QMAKE = $(DEB_HOST_GNU_TYPE)-qmake
+endif
 DEB_QMAKE_ARGS := BIN_INSTALL=/usr/games DOC_INSTALL=/usr/share/doc \
        DATA_INSTALL=/usr/share
 

Reply via email to