Since mpv_feature_multi has been removed from mpv's ebuild, I am unable to build mpv. Specific commit I'm talking about: https://github.com/gentoo/gentoo/commit/fd63589cc5e08caa31f3560f9f5faf67a1eb699e Even more specifically, even though USE="X opengl", meson says that gl-x11 feature is still disabled, after which it fails with: meson.build:1279:4: ERROR: Problem encountered: gl enabled but no OpenGL video output could be found! The build log and emerge info will be attached. Reproducible: Always
Created attachment 923559 [details] emerge --info '=media-video/mpv-0.40.0'
Created attachment 923560 [details] emerge -pqv '=media-video/mpv-0.40.0'
Created attachment 923561 [details] build log
Forgot about that one, it's because gl-x11 is deprecated and so mpv upstream disables it by default rather than auto-detect, aka: option('gl-x11', type: 'feature', value: 'disabled', description: 'OpenGL X11/GLX (deprecated/legacy)') Think it's a good occasion to just drop ebuild support for it in favour of egl-x11.
To clarify, --gpu-api=opengl still works with USE="-opengl egl". Doing USE="opengl -egl" just forces mpv to use the old legacy version for GL output. And egl is enabled by default normally.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b616876327f00eadb888ebf3480b2444671f81c0 commit b616876327f00eadb888ebf3480b2444671f81c0 Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2025-04-04 07:23:01 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2025-04-04 07:39:57 +0000 media-video/mpv: drop opengl USE and suggest egl USE instead As the ebuild's ewarn notes, --gpu-api=opengl still works with USE=egl through egl-x11/wayland, this only drops the deprecated/legacy gl-x11. Debated renaming USE=egl to USE=opengl instead given it's more commonly used, but given we've been calling it deprecated in metadata.xml and that mpv options are all egl-* it may come as confusing. The ewarn is not overly essential given we enable USE=egl by default, but mpv tend to have a few minimalist users that disable everything they can. I may add that if do this, may want to consider USE=vulkan instead if it works well given mpv upstream favours it by default now. Untested but tentatively add aqua for -Dgl (formerly controlled through USE=opengl), believe gl-cocoa is always available? Please report if this causes issues. Closes: https://bugs.gentoo.org/953107 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> .../{mpv-0.40.0.ebuild => mpv-0.40.0-r1.ebuild} | 23 ++++++++++++++-------- media-video/mpv/mpv-9999.ebuild | 23 ++++++++++++++-------- 2 files changed, 30 insertions(+), 16 deletions(-)
Switching to USE=egl works fine. I think I remember that when gentoo switched egl on I deliberately reverted that, because "my current setup works, I don't know what egl does, but I don't seem to need it". Thanks for the help.