Source: fraqtive
Version: 0.4.8-9
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

fraqtive fails to cross build from source, because the home grown
./configure invokes plain qmake. Passing a cross qmake to ./configure
mostly fixes that except that it leaves sse2 enabled, because the check
confuses build architecture with host architecture. After fixing both,
fraqtive cross builds successfully. Please consider applying the
attached patch.

Helmut
diff --minimal -Nru fraqtive-0.4.8/debian/changelog 
fraqtive-0.4.8/debian/changelog
--- fraqtive-0.4.8/debian/changelog     2018-08-24 09:42:57.000000000 +0200
+++ fraqtive-0.4.8/debian/changelog     2018-10-15 16:40:06.000000000 +0200
@@ -1,3 +1,12 @@
+fraqtive (0.4.8-9.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Fix build/host confusion.
+    + Pass a cross qmake to ./configure.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 15 Oct 2018 16:40:06 +0200
+
 fraqtive (0.4.8-9) unstable; urgency=high
 
   * Change build dependency to libqt5opengl5-desktop-dev. fraqtive currently
diff --minimal -Nru fraqtive-0.4.8/debian/rules fraqtive-0.4.8/debian/rules
--- fraqtive-0.4.8/debian/rules 2018-08-24 09:42:57.000000000 +0200
+++ fraqtive-0.4.8/debian/rules 2018-10-15 16:40:06.000000000 +0200
@@ -3,10 +3,13 @@
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export QT_SELECT=qt5
 
-BUILD_TARGET ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+include /usr/share/dpkg/architecture.mk
 
-ifneq ($(BUILD_TARGET),amd64)
-       EXTRA_CONFIGURE_OPTS := -no-sse2
+ifneq ($(DEB_HOST_ARCH),amd64)
+       EXTRA_CONFIGURE_OPTS += -no-sse2
+endif
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+       EXTRA_CONFIGURE_OPTS += -qmake $(shell which $(DEB_HOST_GNU_TYPE)-qmake)
 endif
 
 %:

Reply via email to