Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 537172 - media-libs/phonon-vlc USE=qt4 with dev-qt/qtchooser - ?
Summary: media-libs/phonon-vlc USE=qt4 with dev-qt/qtchooser - ?
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-01-20 23:06 UTC by Paweł Stankowski
Modified: 2015-01-22 08:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paweł Stankowski 2015-01-20 23:06:50 UTC
qtchooser is now required by Qt 4.8.6+ and 5.3.2-r2+. When it is installed, it controls the behavior of /usr/bin/qmake, which may point to either qt4 or qt5 one.

When /usr/bin/qmake is from qt5, phonon-vlc build against qt4 fails. To fix that, I propose to set QT_SELECT environment variable to change the default qtchooser's version by applying following patch to ebuild:

--- /usr/portage/media-libs/phonon-vlc/phonon-vlc-0.7.2.ebuild  2014-10-18 17:01:13.000000000 +0200
+++ /usr/local/portage/media-libs/phonon-vlc/phonon-vlc-0.7.2.ebuild    2015-01-20 23:58:47.725504383 +0100
@@ -60,6 +60,7 @@
 
 src_configure() {
        myconfigure() {
+               export QT_SELECT=${MULTIBUILD_VARIANT}
                local mycmakeargs=()
                if [[ ${MULTIBUILD_VARIANT} = qt4 ]]; then
                        mycmakeargs+=(-DPHONON_BUILD_PHONON4QT5=OFF)

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-21 07:34:47 UTC
1) Please attach the entire build log to this bug report.
2) Please post your `emerge --info' output in a comment.
Comment 2 Paweł Stankowski 2015-01-21 16:38:44 UTC
I described steps needed to reproduce the problem.

1. emerge qt 4.8.6 and 5.4
2. set the default qt version to qt5 in qtchooser
3. Try to emerge media-libs/phonon-vlc with qt4 use flag enabled

I don't have my failed build log, last build succeeded because I used this patch.