guix: Remove librt usage from release binaries - #28069
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
|
Concept ACK. |
|
Concept ACK. IIRC we left this because it was harmless as most systems kept a stub for librt. I suppose the situation has now inverted and relying on the stub is deprecated? (Also, it's possible I'm mixed up and thinking of libm or similar) |
Confirming. From https://www.man7.org/linux/man-pages/man3/clock_gettime.3.html:
|
|
Guix builds: |
|
Guix builds: |
Summary: > contrib: remove librt from release deps > guix: backport glibc patch to prevent redundant librt link This is a backport of [[bitcoin/bitcoin#28069 | core#28069]] Depends on D15345 Test Plan: gitian builds `contrib/guix/guix-build` Reviewers: #bitcoin_abc, Fabien Reviewed By: #bitcoin_abc, Fabien Differential Revision: https://reviews.bitcoinabc.org/D15346
Our release binaries currently have a runtime dependency on
librt. However this is redundant, and only the case due to a bug in glibc. Theclock_*suit of funcs were absorbed into libc long ago, however an issue with compatibility code meant that librt would still be linked against / used redundantly:This PR drops our configure check for librt (which is redundant, and could be PR'd standalone), and backports the relevant patch into our glibc, so we can drop librt from our runtime dependencies.
Guix Build: