Originally reported by Igor Poboiko in bug 565588 comment 6: > There might be a drawback: I don't want GLES2 to be enabled (for the whole Qt), but I need EGL (I want to play with Wayland, and qtwayland needs qtgui[egl]). Right now qtmultimedia[-gles2] wants qtgui[-egl], which is confusing. Shouldn't it be something like "qtgui[gles2=]"?
Trying to repost the above text in a more readable way (thanks for nothing bugzilla...) <quote> There might be a drawback: I don't want GLES2 to be enabled (for the whole Qt), but I need EGL (I want to play with Wayland, and qtwayland needs qtgui[egl]). Right now qtmultimedia[-gles2] wants qtgui[-egl], which is confusing. Shouldn't it be something like "qtgui[gles2=]"? </quote>
That's indeed suboptimal and confusing. At this point I guess the best solution would be to have a specific USE flag for videonode...
Agreed, however note that qtwayland does not depend on qtgui[egl], but rather [egl=].
Created attachment 428462 [details, diff] qtmultimedia-videonode.patch Suggested patch.
Right or wrong I did this for my system for the sake of curiosity. --- /var/lib/layman/qt/dev-qt/qtmultimedia/qtmultimedia-5.6.0.ebuild 2016-03-17 16:58:25.404005375 -0400 +++ /usr/local/portage/dev-qt/qtmultimedia/qtmultimedia-5.6.0-r1.ebuild 2016-03-21 17:48:38.892618226 -0400 @@ -35,7 +35,6 @@ qml? ( ~dev-qt/qtdeclarative-${PV} gles2? ( ~dev-qt/qtgui-${PV}[egl,gles2] ) - !gles2? ( ~dev-qt/qtgui-${PV}[-egl] ) openal? ( media-libs/openal ) ) widgets? ( And I built qtgui with egl and without gles2 as I do not desire gles2. And in the Compositor settings I selected EGL, and all seems to work fine for a change. This article is what made me curious: https://blog.martin-graesslin.com/blog/2015/08/should-we-target-egl-as-the-default/
(In reply to Michael Palimaka (kensington) from comment #4) > Created attachment 428462 [details, diff] [details, diff] > qtmultimedia-videonode.patch > > Suggested patch. I'd like to recheck this to see if videonode can be patched out instead of relying on dependencies to control if it's built or not.
Why are you disabling egl in qtgui (and thus the whole qt stack) to prevent the installation of a gles2 plugin? If gles2 isn't available the plugin doesn't get built. ie. This works perfectly fine: gles2? ( ~dev-qt/qtgui-${PV}[egl,gles2] ) !gles2? ( ~dev-qt/qtgui-${PV}[-gles2] )
(In reply to Ryan Hill from comment #7) > Why are you disabling egl in qtgui (and thus the whole qt stack) to prevent > the installation of a gles2 plugin? If gles2 isn't available the plugin > doesn't get built. ie. This works perfectly fine: > > gles2? ( ~dev-qt/qtgui-${PV}[egl,gles2] ) > !gles2? ( ~dev-qt/qtgui-${PV}[-gles2] ) Heh, yes, makes a lot of sense. The flag was originally called "egl", that's why we had !egl? ( ...[-egl] ). But when the flag name was changed in bug 565588, we should've changed the negative case as well. I just pushed a commit[1] that implements what you suggest, which is clearly the simplest solution. Thanks! [1] https://gitweb.gentoo.org/proj/qt.git/commit/?id=0a3e292d14ae4b74a92f8886588444535d044188