Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947517 - www-client/w3m-0.5.3_p20230121: does not use sysroot when cross-compiling
Summary: www-client/w3m-0.5.3_p20230121: does not use sysroot when cross-compiling
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: NRK
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-05 05:09 UTC by sin-ack
Modified: 2025-02-14 19:22 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,9.98 KB, text/x-log)
2025-01-05 05:09 UTC, sin-ack
Details
riscv64-unknown-linux-gnu-emerge -p www-client/w3m && riscv64-unknown-linux-gnu-emerge --info (emerge-info.txt,5.71 KB, text/plain)
2025-01-05 05:09 UTC, sin-ack
Details

Note You need to log in before you can comment on or make changes to this bug.
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