Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915071 - media-libs/libass has automagic dependency on libunibreak (was: media-video/mpv-0.36.0-r1 complains about missing libunibreak)
Summary: media-libs/libass has automagic dependency on libunibreak (was: media-video/m...
Status: RESOLVED DUPLICATE of bug 911414
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-02 13:27 UTC by Simon
Modified: 2023-10-02 17:21 UTC (History)
1 user (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 Simon 2023-10-02 13:27:32 UTC
When trying to run mpv I'm getting 
>>>
mpv: error while loading shared libraries: libunibreak.so.3: cannot open shared object file: No such file or directory
<<<
despite it having no dependency in the ebuilds on it.

I only have libunibreak.so.5 from dev-libs/libunibreak-5.1 on my system which seems to be only needed by app-text/fbreader-0.99.4-r6.

my mpv useflags are: USE="X alsa cdda cli drm dvd egl iconv jack jpeg lcms libcaca libmpv libplacebo lua opengl pulseaudio uchardet vaapi vdpau vulkan xv zlib (-aqua) -archive -bluray (-coreaudio) -debug -dvb -gamepad -javascript (-mmal) -nvenc -openal -pipewire (-raspberry-pi) -rubberband -sdl (-selinux) -sixel -sndio -test -tools -wayland -zimg" LUA_SINGLE_TARGET="(luajit) (-lua5-1)" PYTHON_SINGLE_TARGET="python3_10 -python3_11 (-python3_12)"

Dirty Workaround:
ln -snf libunibreak.so.5 libunibreak.so.3

Reproducible: Always
Comment 1 Ionen Wolkens gentoo-dev 2023-10-02 13:35:09 UTC
Output of `lddtree /usr/bin/mpv`?

The mpv build system does not seem to have any reference to unibreak (no headers, checks, nothing), so it may either be coming from a dependency or got injected by pkg-config for some reason.
Comment 2 Simon 2023-10-02 16:46:21 UTC
lddtree says its an indirect dependency from libass:

/usr/bin/mpv (interpreter => /lib64/ld-linux-x86-64.so.2)
    libass.so.9 => /usr/lib64/libass.so.9
        libunibreak.so.3 => /usr/lib64/libunibreak.so.3


But I only set libcaca as useflag, so I wonder why it depends on libass as well.
Comment 3 Ionen Wolkens gentoo-dev 2023-10-02 17:21:57 UTC
(In reply to Simon from comment #2)
> lddtree says its an indirect dependency from libass:
> 
> /usr/bin/mpv (interpreter => /lib64/ld-linux-x86-64.so.2)
>     libass.so.9 => /usr/lib64/libass.so.9
>         libunibreak.so.3 => /usr/lib64/libunibreak.so.3
> 
> But I only set libcaca as useflag, so I wonder why it depends on libass as
> well.
mpv (upstream) does not have an option to disable libass or subtitles support, it's always required.

`emerge -1 libass` should make it use the new soname at least, so you won't need such a symlink.

And see we already have a bug for that one.

*** This bug has been marked as a duplicate of bug 911414 ***