Source: webissues
Version: 1.1.5-3
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

webissues fails to cross build from source, because it uses the build
architecture qmake. The attached patch passes a suitable qmake via
-qmake to ./configure and makes webissues cross buildable. Plase
consider applying it.

Helmut
diff --minimal -Nru webissues-1.1.5/debian/changelog 
webissues-1.1.5/debian/changelog
--- webissues-1.1.5/debian/changelog    2018-03-15 15:39:26.000000000 +0100
+++ webissues-1.1.5/debian/changelog    2019-04-07 20:42:30.000000000 +0200
@@ -1,3 +1,10 @@
+webissues (1.1.5-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass a triplet-prefixed qmake to configure. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 07 Apr 2019 20:42:30 +0200
+
 webissues (1.1.5-3) unstable; urgency=medium
 
   * Set a save URL in the homepage field.
diff --minimal -Nru webissues-1.1.5/debian/rules webissues-1.1.5/debian/rules
--- webissues-1.1.5/debian/rules        2018-03-15 15:39:26.000000000 +0100
+++ webissues-1.1.5/debian/rules        2019-04-07 20:42:30.000000000 +0200
@@ -1,13 +1,20 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/architecture.mk
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export QT_SELECT=qt5
+ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+QMAKE = qmake
+else
+QMAKE = $(DEB_HOST_GNU_TYPE)-qmake
+endif
 
 %:
        dh $@
 
 override_dh_auto_configure:
        ./configure \
+               -qmake `which $(QMAKE)` \
                -system-sqlite \
                -prefix /usr \
                -destdir $(CURDIR)/debian/tmp/ \

Reply via email to