Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953107 - media-video/mpv-0.40.0 fails the configure step
Summary: media-video/mpv-0.40.0 fails the configure step
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ionen Wolkens
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-04 06:35 UTC by Boris Staletic
Modified: 2025-04-04 08:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info '=media-video/mpv-0.40.0' (emerge_info_mpv-0.40.0,7.26 KB, text/plain)
2025-04-04 06:38 UTC, Boris Staletic
Details
emerge -pqv '=media-video/mpv-0.40.0' (emerge_pqv_mpv-0.40.0,1.25 KB, text/plain)
2025-04-04 06:39 UTC, Boris Staletic
Details
build log (file_953107.txt,10.69 KB, text/plain)
2025-04-04 06:41 UTC, Boris Staletic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Staletic 2025-04-04 06:35:48 UTC
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
Comment 1 Boris Staletic 2025-04-04 06:38:01 UTC
Created attachment 923559 [details]
emerge --info '=media-video/mpv-0.40.0'
Comment 2 Boris Staletic 2025-04-04 06:39:08 UTC
Created attachment 923560 [details]
emerge -pqv '=media-video/mpv-0.40.0'
Comment 3 Boris Staletic 2025-04-04 06:41:37 UTC
Created attachment 923561 [details]
build log
Comment 4 Ionen Wolkens gentoo-dev 2025-04-04 06:52:24 UTC
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.
Comment 5 Ionen Wolkens gentoo-dev 2025-04-04 07:05:50 UTC
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.
Comment 6 Larry the Git Cow gentoo-dev 2025-04-04 07:40:14 UTC
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(-)
Comment 7 Boris Staletic 2025-04-04 08:06:15 UTC
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.