Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 514920 - [kde overlay] kde-base/kwin-9999 USE flags constraint (vs dev-qt/qtgui-5.3.0) make GLES2 unsuable
Summary: [kde overlay] kde-base/kwin-9999 USE flags constraint (vs dev-qt/qtgui-5.3.0)...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-24 13:20 UTC by Sven Eden
Modified: 2014-06-25 15:14 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 Sven Eden 2014-06-24 13:20:52 UTC
I would like to try out GLES2 on my system with KF 5.

Unfortunately the kwin ebuild won't let me.


- dev-qt/qtgui-5.3.0::qt has the following constraints:
'egl? ( evdev opengl ) eglfs? ( egl ) gles2? ( opengl ) kms? ( egl gles2 )'

So if I want "egl" and "gles2" I need "opengl", too.


- kde-base/kwin-9999::kde has the following constraints:
'exactly-one-of ( gles2 opengl )'
dev-qt/qtgui:5[gles2=,opengl=]


So to enable gles2 in kwin, opengl has to be deactivated, and because kwin wnats qtgui to have the exact settings opengl must be deactivated for qtgui, too, which is impossible, because USE="gles2" needs activated opengl in qtgui.


This makes the gles2 USE flag for kwin and qtgui useless.
Comment 1 Michael Palimaka (kensington) gentoo-dev 2014-06-24 14:49:33 UTC
Thanks for testing, the GLES stuff is especially in need of it.

I pushed a change that should address this, please reopen if there are any issues.

http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=2dcb5507d39146f50c76aee7d9a2e39f1811985c
Comment 2 Sven Eden 2014-06-25 10:16:06 UTC
I think the same accounts for kde-frameworks/plasma-9999 :

In the ebuild:

--------

        opengl? (
                dev-qt/qtgui:5[opengl,-gles2]
                virtual/opengl
        )
--------

It should instead have the same dependencies as kwin (as far as i understand it) - Need dev-qt/qtgui:5[opengl,gles2=] and depend on virtual/opengl by default.

But I am not completely sure about this. I will first try with USE="-opengl" on plasma-9999
Comment 3 Sven Eden 2014-06-25 10:19:07 UTC
Oh, and if plasma has an egl flag, it should depend on both media-libs/mesa[egl=] and dev-qt/qtgui:5[egl=], shouldn't it?
Comment 4 Michael Palimaka (kensington) gentoo-dev 2014-06-25 15:14:04 UTC
(In reply to Sven Eden from comment #2)
> I think the same accounts for kde-frameworks/plasma-9999 :
Plasma framework seems to handle a little differently:
if(OPENGL_FOUND AND (${Qt5Gui_OPENGL_IMPLEMENTATION} STREQUAL "GL"))
    set(HAVE_GLX ${HAVE_X11})
else()
    set(HAVE_GLX 0)
endif()

versus kwin:
if(OPENGL_FOUND AND (${Qt5Gui_OPENGL_IMPLEMENTATION} STREQUAL "GL"))
    set(KWIN_BUILD_OPENGL TRUE)
    message("Building KWin with OpenGL support")
endif()
if(OPENGLES_FOUND AND (${Qt5Gui_OPENGL_IMPLEMENTATION} STREQUAL "GLESv2"))
    set(KWIN_BUILD_OPENGLES TRUE)
    message("Building KWin with OpenGL ES 2 support")
endif()
t
(In reply to Sven Eden from comment #3)
> Oh, and if plasma has an egl flag, it should depend on both
> media-libs/mesa[egl=] and dev-qt/qtgui:5[egl=], shouldn't it?
There's a build option for this one, so it should work.

Emphasis on *should*, it's not well tested so I can't vouch for it. :-)