Summary: | media-video/mpv-0.33.1-r2[libcaca]: segmentation fault in termattrs_sp() | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jaak Ristioja <jaak> |
Component: | Current packages | Assignee: | Ionen Wolkens <ionen> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jstein, zlogene |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=601902 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jaak Ristioja
2021-11-19 21:05:36 UTC
mpv itself doesn't link with ncurses, in fact the only thing using ncurses in the build I reproduced this on is libcaca.. and it's already ncursesw? $ lddtree /usr/bin/mpv | grep ncurses -B 1 libcaca.so.0 => /usr/lib64/libcaca.so.0 libncursesw.so.6 => /lib64/libncursesw.so.6 And libcaca[slang,-ncurses] works just fine with mpv, same for non-console backends like X So I had a look at the libcaca ebuild and there's this linking the non-w variant (even tries to with USE=-ncurses!) # bug #601902 append-libs "$($(tc-getPKG_CONFIG) --libs ncurses)" Then it gets discarded by -Wl,--as-needed but probably messes up something in the process because it works just fine if I remove the line. Also, it doesn't seem needed like bug #601902 mentions? -Wl,--as-needed discards tinfo as well, but if want to play it safe guess could replaced by --libs tinfow. I'll do that given I don't particularly want to look into libcaca much. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35683548ca97455f295f52aed45cdf357b878794 commit 35683548ca97455f295f52aed45cdf357b878794 Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2022-11-07 21:04:40 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2022-11-07 21:08:46 +0000 media-libs/libcaca: avoid mixing ncurses with ncursesw Also only do this with USE=ncurses and use || die (fixes runtime with mpv wrt bug #825058) Closes: https://bugs.gentoo.org/825058 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> ...{libcaca-0.99_beta19-r10.ebuild => libcaca-0.99_beta19-r11.ebuild} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) |