[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#884050: qtconnectivity-opensource-src FTCBFS: does not pass cross flags to qmake



Source: qtconnectivity-opensource-src
Version: 5.9.2-2
Severity: minor
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap

qtconnectivity-opensource-src fails to cross build from source, because
it does not pass cross flags to qmake. This is best done by deferring to
dh_auto_configure these days. After doing so, it still fails to cross
build, because it fails finding libbluetooth. I don't have a solution
here, but let me try to describe the problem.

In src/bluetooth/configure.json it describes how to check for BlueZ with
pkg-config. It seems that qmake implements this by running another qmake
on a small test project to determine success or failure. Unfortunately,
this sub-qmake lacks cross flags again, so it uses the build
architecture pkg-config and g++ thus failing to find the bluetooth
library.

Potential options for fixing this:
 * Maybe we need to set PKG_CONFIG_EXECUTABLE?
 * Maybe we need to set a suitable QMAKE_QMAKE?

In any case, please close this bug when switching to dh_auto_configure
and making the BlueZ finding issue visible.

Helmut
diff --minimal -Nru qtconnectivity-opensource-src-5.9.2/debian/changelog qtconnectivity-opensource-src-5.9.2/debian/changelog
--- qtconnectivity-opensource-src-5.9.2/debian/changelog	2017-10-27 10:33:07.000000000 +0200
+++ qtconnectivity-opensource-src-5.9.2/debian/changelog	2017-12-10 13:32:07.000000000 +0100
@@ -1,3 +1,10 @@
+qtconnectivity-opensource-src (5.9.2-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Address FTCBFS: Let dh_auto_configure pass cross flags to qmake.
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sun, 10 Dec 2017 13:32:07 +0100
+
 qtconnectivity-opensource-src (5.9.2-2) unstable; urgency=medium
 
   * Upload to unstable.
diff --minimal -Nru qtconnectivity-opensource-src-5.9.2/debian/control qtconnectivity-opensource-src-5.9.2/debian/control
--- qtconnectivity-opensource-src-5.9.2/debian/control	2017-10-27 10:33:07.000000000 +0200
+++ qtconnectivity-opensource-src-5.9.2/debian/control	2017-12-10 13:32:02.000000000 +0100
@@ -8,7 +8,7 @@
            Felix Geyer <fgeyer@debian.org>,
            Timo Jyrinki <timo@debian.org>,
            Dmitry Shachnev <mitya57@debian.org>
-Build-Depends: debhelper (>= 10),
+Build-Depends: debhelper (>= 10.9.2~),
                libbluetooth-dev [linux-any],
                pkg-config,
                pkg-kde-tools,
diff --minimal -Nru qtconnectivity-opensource-src-5.9.2/debian/rules qtconnectivity-opensource-src-5.9.2/debian/rules
--- qtconnectivity-opensource-src-5.9.2/debian/rules	2017-10-27 10:33:07.000000000 +0200
+++ qtconnectivity-opensource-src-5.9.2/debian/rules	2017-12-10 13:31:11.000000000 +0100
@@ -15,7 +15,7 @@
 	# Be sure to regenerate the DBus cpp files
 	cd src/bluetooth/bluez/ ; ./generate
 	# Now call qmake
-	qmake
+	dh_auto_configure
 
 override_dh_auto_build-indep:
 	dh_auto_build -Smakefile -- docs

Reply to: