Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 757339

Summary: dev-libs/efl: rework REQUIRED_USE="wayland? ( gles2-only !opengl )"
Product: Gentoo Linux Reporter: Joonas Niilola <juippis>
Component: Current packagesAssignee: Joonas Niilola <juippis>
Status: RESOLVED FIXED    
Severity: normal CC: asturm, bertrand, leio
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/23681
Whiteboard:
Package list:
Runtime testing required: ---

Description Joonas Niilola gentoo-dev 2020-11-28 10:12:23 UTC
This bug is more of a reminder for myself, and an opening to discuss for anyone with concerns about it.

This REQUIRED_USE is tedious, and impossible to solve profile-wise. 
  RequiredUseDefaults: version 1.25.1-r2: profile: 'default/linux/amd64/17.1/desktop/gnome' (23 total) failed REQUIRED_USE: !opengl
  RequiredUseDefaults: version 1.25.1-r2: profile: 'default/linux/amd64/17.1/desktop/gnome' (23 total) failed REQUIRED_USE: gles2-only

Starting from next version bump, I'll be switching the logic to choose opengl implementation from REQUIRED_USE to simply detect state of normal USE flags.

if use X && ! use wayland; then
	opengl=full

if use wayland; then
	opengl=es-egl

else (or if ! use X && ! use wayland)
	opengl=none

GL acceleration can still be enabled/disabled from e's settings regardless of opengl configure option, this shouldn't break existing systems.

Then something needs to be decided how to deal with 'drm', as it only works with gles2+wayland and not with opengl+X.
Comment 2 Larry the Git Cow gentoo-dev 2022-01-07 07:37:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd97b7bdf959f23b2985e4e2febb848d4ce7291f

commit cd97b7bdf959f23b2985e4e2febb848d4ce7291f
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2022-01-07 06:36:16 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-01-07 07:36:57 +0000

    dev-libs/efl: rework opengl-gles2 logic
    
     - 'opengl' is barely supported by upstream, and es-egl will provide
        similar experience. Even if they're compiled in, hwaccel can be
        disabled from the settings.
    
    Closes: https://bugs.gentoo.org/757339
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 dev-libs/efl/{efl-1.26.1.ebuild => efl-1.26.1-r1.ebuild} | 4 ++++
 1 file changed, 4 insertions(+)