Created attachment 906852 [details] /var/log/portage/www-client:elinks-0.17.1.1:20241026-104521.log FAILED: src/elinks x86_64-pc-linux-gnu-gcc -o src/elinks [...] -Wl,--start-group /usr/lib64/libz.so /usr/lib64/libssl.so /usr/lib64/libcrypto.so /usr/lib64/libzs td.so /usr/lib64/liblzma.so /usr/lib64/libidn2.so /usr/lib64/libX11.so /usr/lib/libbz2.so /usr/lib64/libcurl.so /usr/lib64/libexpat.so /usr/lib64/libncursesw.so /usr/lib64/libtinfow.so -Wl,--end-group collect2: error: ld returned 1 exit status I guess they've managed to get meson wrong?
Created attachment 906853 [details] emerge --info
Yep, they've forced it upon themselves: bz2deps = compiler.find_library('bz2', static: st, dirs: [get_option('prefix')+'/lib', '/usr/local/lib'])
Looks like that "dirs:" parameter takes precedence over "--libdir". This works for me, in src_prepare(): sed -i \ -e '/find_library/s/, dirs: \[[^]]*\]//' \ meson.build || die
It appears this was fixed upstream in https://github.com/rkd77/elinks/commit/502a6afc4 , though that patch won't apply directly to elinks-0.17.1.1.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0994847954dbf35b3933d1ecb2332d1684602e7 commit a0994847954dbf35b3933d1ecb2332d1684602e7 Author: Felix Janda <felix.janda@posteo.de> AuthorDate: 2024-10-28 01:40:45 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-10-28 11:41:06 +0000 www-client/elinks: various bugfixes Closes: https://bugs.gentoo.org/933407 Closes: https://bugs.gentoo.org/942286 Closes: https://bugs.gentoo.org/942202 Closes: https://bugs.gentoo.org/942293 Signed-off-by: Felix Janda <felix.janda@posteo.de> Closes: https://github.com/gentoo/gentoo/pull/39134 Signed-off-by: Sam James <sam@gentoo.org> www-client/elinks/elinks-0.17.1.1.ebuild | 8 ++- www-client/elinks/elinks-9999.ebuild | 4 +- www-client/elinks/files/elinks-0.17.1.1-sftp.patch | 63 +++++++++++++--------- 3 files changed, 48 insertions(+), 27 deletions(-)