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

Bug#887849: "qmake: could not find a Qt installation of ''" when QT_SELECT is unset



Control: reassign -1 src:transmission
Control: retitle -1 transmission should not Build-Depends: qt5-default
Control: tags -1 + patch
Control: affects -1 =

On Sat, Jan 20, 2018 at 05:12:22PM +0100, Helmut Grohne wrote:
> transmission fails to cross build from source. It runs qmake via
> dh_auto_configure and is greeted with:
> 
>     qmake: could not find a Qt installation of ''
> 
> A native build works. It doesn't export QT_SELECT, but after exporting
> QT_SELECT=qt5 the qmake invocation succeeds. Thus I think this is a bug
> in qtchooser. For native builds it defaults to qt5, but for cross builds
> it doesn't. I have no clue why and simply hand this over to Dmitry and
> Lisandro who have done an awful lot of work to make qt cross build
> friendly. I hope you can figure out what is broken here.

After consulting with Dmitry Shachnev, it turns out that this is a bug
in transmission. The bug is even identified by lintian
"build-depends-on-metapackage". Now it breaks cross compilation.

The attached patch fixes the lintian error and advances cross
compilation.

Helmut
diff --minimal -Nru transmission-2.92/debian/changelog transmission-2.92/debian/changelog
--- transmission-2.92/debian/changelog	2018-01-19 05:34:22.000000000 +0100
+++ transmission-2.92/debian/changelog	2018-01-21 10:43:28.000000000 +0100
@@ -1,3 +1,10 @@
+transmission (2.92-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Set QT_SELECT=qt5 rather than build-depending on qt5-default. Closes: #-1
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sun, 21 Jan 2018 10:43:28 +0100
+
 transmission (2.92-3) unstable; urgency=medium
 
   * debian/patches/transmission-fix-dns-rebinding-vuln.patch
diff --minimal -Nru transmission-2.92/debian/control transmission-2.92/debian/control
--- transmission-2.92/debian/control	2018-01-19 05:34:22.000000000 +0100
+++ transmission-2.92/debian/control	2018-01-21 10:43:16.000000000 +0100
@@ -16,7 +16,6 @@
                libnotify-dev (>= 0.7),
                libssl-dev,
                libsystemd-dev [linux-any],
-               qt5-default,
                qt5-qmake,
                qtbase5-dev,
                qttools5-dev-tools,
diff --minimal -Nru transmission-2.92/debian/rules transmission-2.92/debian/rules
--- transmission-2.92/debian/rules	2018-01-19 05:34:22.000000000 +0100
+++ transmission-2.92/debian/rules	2018-01-21 10:43:25.000000000 +0100
@@ -4,6 +4,7 @@
 #export DH_VERBOSE=1
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed,--no-undefined,--no-add-needed
+export QT_SELECT=qt5
 
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk

Reply to: