Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 525004 - =media-video/vlc-9999 USE=qt5 should depend on dev-qt/qtx11extras
Summary: =media-video/vlc-9999 USE=qt5 should depend on dev-qt/qtx11extras
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Paweł Stankowski
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-11 01:35 UTC by Paweł Stankowski
Modified: 2014-11-20 22:34 UTC (History)
4 users (show)

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


Attachments
Add missing qtx11extras dependency for Qt5 (file_525004.txt,738 bytes, patch)
2014-11-07 00:46 UTC, Paweł Stankowski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paweł Stankowski 2014-10-11 01:35:19 UTC
In VLC-3.0 available in git there is new configure check added:

3763       PKG_CHECK_MODULES([QTX11], [Qt5X11Extras], [
3764           VLC_ADD_LIBS([qt4],[${QTX11_LIBS}])
3765           VLC_ADD_CXXFLAGS([qt4],[${QTX11_CFLAGS} -DQT5_HAS_X11])
3766       ],[
3767           AC_MSG_WARN([Not building Qt Interface with X11 helpers.])
3768       ])

This is optional requirement for Qt5, but these features were always enabled in Qt4 (check commit 96d10f50, when Qt5X11Extras are detected, Q_WS_X11 is being defined - it was always defined in QtGui4).

The most important (only?) feature that is enabled when Qt5X11Extras are installed is playing video in the main screen (w/o it new window is displayed when playing video).

I think it was made as optional requirement mainly because Qt5X11Extras module is not available on some platforms (e.g. Android) and on Gentoo Linux we should add this requirement to qt5 USE flag (and not create new USE flag).
Comment 1 Uwe L. Korn 2014-10-11 21:13:53 UTC
As VLC also runs fine with Qt5 and Wayland, we should not depend on Qt5X11Extras just for the qt USE. Probably it would be better to require Qt5X11Extras if both qt and X USE are selected.
Comment 2 Paweł Stankowski 2014-10-17 16:27:48 UTC
Sounds good, Uwe. 

Qt5X11Extras are properly detected in trunk and 2.2 branch. I think it would be possible to backport some changes from trunk to 2.1 branch to fix qt5+X USE flags combo in VLC 2.1 as well. I'll try and come back with a patch.
Comment 3 Uwe L. Korn 2014-10-17 16:29:12 UTC
Qt5 should not be used with vlc 2.1, it is not really considered usable by upstream. If you want Qt5, use either 2.2-git or 3.0-git.
Comment 4 Paweł Stankowski 2014-10-17 18:05:58 UTC
However there is qt5 use flag in current 2.1 VLC ebuilds, and at least basic functonslities work after applying patch from bug 489508.
Comment 5 Paweł Stankowski 2014-11-07 00:46:11 UTC
Created attachment 388722 [details, diff]
Add missing qtx11extras dependency for Qt5
Comment 6 Paweł Stankowski 2014-11-20 22:34:31 UTC
Dependency added unconditionally as X is currently required when qt5 is selected. We will have to fix that later - currently upstream devs don't consider wayland support as ready.