Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942286 - www-client/elinks-0.17.1.1: libbz2.so: error adding symbols: file in wrong format
Summary: www-client/elinks-0.17.1.1: libbz2.so: error adding symbols: file in wrong fo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Felix Janda
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-10-26 13:19 UTC by Michał Górny
Modified: 2024-10-28 22:34 UTC (History)
4 users (show)

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


Attachments
/var/log/portage/www-client:elinks-0.17.1.1:20241026-104521.log (www-client:elinks-0.17.1.1:20241026-104521.log,314.89 KB, text/plain)
2024-10-26 13:19 UTC, Michał Górny
Details
emerge --info (emerge-info.txt,8.23 KB, text/plain)
2024-10-26 13:20 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-10-26 13:19:30 UTC
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?
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-10-26 13:20:00 UTC
Created attachment 906853 [details]
emerge --info
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-10-26 13:23:11 UTC
Yep, they've forced it upon themselves:

        bz2deps = compiler.find_library('bz2', static: st, dirs: [get_option('prefix')+'/lib', '/usr/local/lib'])
Comment 3 Ștefan Talpalaru 2024-10-26 15:06:23 UTC
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
Comment 4 Felix Janda 2024-10-27 03:23:31 UTC
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.
Comment 5 Larry the Git Cow gentoo-dev 2024-10-28 11:41:59 UTC
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(-)