Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 757339 - dev-libs/efl: rework REQUIRED_USE="wayland? ( gles2-only !opengl )"
Summary: dev-libs/efl: rework REQUIRED_USE="wayland? ( gles2-only !opengl )"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Joonas Niilola
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-11-28 10:12 UTC by Joonas Niilola
Modified: 2022-01-07 07:37 UTC (History)
3 users (show)

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 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(+)