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: CONFIRMED
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:
Depends on:
Blocks:
 
Reported: 2020-11-28 10:12 UTC by Joonas Niilola
Modified: 2020-11-28 10:19 UTC (History)
2 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.