Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 576636 - dev-qt/qtmultimedia:5[-gles2] wants dev-qt/qtgui:5[-egl]
Summary: dev-qt/qtmultimedia:5[-gles2] wants dev-qt/qtgui:5[-egl]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-06 20:48 UTC by Davide Pesavento
Modified: 2016-04-10 12:14 UTC (History)
4 users (show)

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


Attachments
qtmultimedia-videonode.patch (qtmultimedia-videonode.patch,1.68 KB, patch)
2016-03-17 16:50 UTC, Michael Palimaka (kensington)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Davide Pesavento (RETIRED) gentoo-dev 2016-03-06 20:48:40 UTC
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=]"?
Comment 1 Davide Pesavento (RETIRED) gentoo-dev 2016-03-06 20:50:34 UTC
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>
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2016-03-06 20:54:56 UTC
That's indeed suboptimal and confusing. At this point I guess the best solution would be to have a specific USE flag for videonode...
Comment 3 Michael Palimaka (kensington) gentoo-dev 2016-03-07 12:20:57 UTC
Agreed, however note that qtwayland does not depend on qtgui[egl], but rather [egl=].
Comment 4 Michael Palimaka (kensington) gentoo-dev 2016-03-17 16:50:43 UTC
Created attachment 428462 [details, diff]
qtmultimedia-videonode.patch

Suggested patch.
Comment 5 George L. Emigh 2016-03-21 22:35:08 UTC
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/
Comment 6 Michael Palimaka (kensington) gentoo-dev 2016-03-28 15:52:19 UTC
(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.
Comment 7 Ryan Hill (RETIRED) gentoo-dev 2016-04-10 10:56:41 UTC
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] )
Comment 8 Davide Pesavento (RETIRED) gentoo-dev 2016-04-10 12:14:36 UTC
(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