Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 947517

Summary: www-client/w3m-0.5.3_p20230121: does not use sysroot when cross-compiling
Product: Gentoo Linux Reporter: sin-ack <sin-ack>
Component: Current packagesAssignee: NRK <nrk>
Status: UNCONFIRMED ---    
Severity: normal CC: gentoo, jstein, nrk, proxy-maint, sin-ack
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
riscv64-unknown-linux-gnu-emerge -p www-client/w3m && riscv64-unknown-linux-gnu-emerge --info

Description sin-ack 2025-01-05 05:09:14 UTC
Created attachment 915862 [details]
build.log

Discovered when cross-compiling to riscv64-unknown-linux-gnu. The configure script tries to discover libraries from the build system's root instead of the sysroot. Specifically, -lbsd is discovered from /usr/lib.
Comment 1 sin-ack 2025-01-05 05:09:28 UTC
Created attachment 915863 [details]
riscv64-unknown-linux-gnu-emerge -p www-client/w3m && riscv64-unknown-linux-gnu-emerge --info
Comment 2 NRK 2025-01-10 04:05:48 UTC
This is because w3m is doing library checks with hardcoded paths on a bunch of different locations. I've forwarded the bug to rkta, maintainer of the w3m fork which I'm planning to switch to since debian/tats upstream is dead: https://todo.sr.ht/~rkta/w3m/71
Comment 3 Rene Kita 2025-02-14 19:22:54 UTC
I tried convincing configure to use pkg-config where appropriate. I
can't really test it as I don't have a cross-compile setup, I'm also not
really familiar with autotools.

Please test my branch 'pkg-config' at [1]. I'm not sure when I have more
time to work on this as I have other bugs to fix, so patches welcome.

[1]: https://git.sr.ht/~rkta/w3m/tree/pkg-config