Source: structure-synth
Version: 1.5.0-5
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

structure-synth fails to cross build from source, because it runs qmake
for the build architcture. The first invocation (with -project) actually
should run for the build architecture, but misses a build dependency on
qt5-qmake:native. The second invocation should use the host architecture
qmake. The easiest way of doing so is using dh_auto_configure if one
selects the qt version using the environment. Please consider applying
the attached patch.

Helmut
diff --minimal -Nru structure-synth-1.5.0/debian/changelog 
structure-synth-1.5.0/debian/changelog
--- structure-synth-1.5.0/debian/changelog      2019-03-27 21:28:07.000000000 
+0100
+++ structure-synth-1.5.0/debian/changelog      2019-06-06 17:01:48.000000000 
+0200
@@ -1,3 +1,13 @@
+structure-synth (1.5.0-5.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Build-Depends: qt5-qmake:native for running native qmake -project.
+    + Select QT version using environment.
+    + Use dh_auto_configure.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 06 Jun 2019 17:01:48 +0200
+
 structure-synth (1.5.0-5) unstable; urgency=medium
 
   * Upgraded Standards-Version from 4.2.1.2 to 4.3.0.3
diff --minimal -Nru structure-synth-1.5.0/debian/control 
structure-synth-1.5.0/debian/control
--- structure-synth-1.5.0/debian/control        2019-03-27 21:28:07.000000000 
+0100
+++ structure-synth-1.5.0/debian/control        2019-06-06 17:01:48.000000000 
+0200
@@ -5,7 +5,7 @@
 Build-Depends: debhelper (>= 9), quilt, dh-buildinfo,
  libx11-dev, mesa-common-dev, libgl1-mesa-dev, libglu1-mesa-dev, freeglut3-dev,
  libxext-dev, qt5-qmake, qtbase5-dev, qtbase5-dev-tools, qtscript5-dev,
- libqt5opengl5-desktop-dev
+ libqt5opengl5-desktop-dev, qt5-qmake:native
 Standards-Version: 4.3.0.3
 Homepage: http://structuresynth.sourceforge.net/
 
diff --minimal -Nru structure-synth-1.5.0/debian/rules 
structure-synth-1.5.0/debian/rules
--- structure-synth-1.5.0/debian/rules  2018-10-13 03:10:17.000000000 +0200
+++ structure-synth-1.5.0/debian/rules  2019-06-06 17:01:48.000000000 +0200
@@ -7,6 +7,7 @@
 CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
 CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
 LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
+export QT_SELECT = qt5
 
 config: config-stamp
 config-stamp:
@@ -19,9 +20,9 @@
 build-arch: build-stamp
 build-stamp: config-stamp  
        dh_testdir
-       qmake -qt=qt5 -project \
+       qmake -project \
                -after "CONFIG+=opengl" -after "QT+=xml opengl script" -after 
"unix:LIBS+=-lGLU"
-       qmake -qt=qt5
+       dh_auto_configure
        $(MAKE) \
                CFLAGS="$(CFLAGS) -fPIC 
-DDATADIR=\\\"/usr/share/structure-synth\\\"" \
                CXXFLAGS="$(CXXFLAGS) $(CPPFLAGS) -fPIC 
-DDATADIR=\\\"/usr/share/structure-synth\\\"" \

Reply via email to