https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: app-crypt/nitrocli-0.4.1 fails to compile (MUSL-SYSTEM). Discovered on: amd64 (internal ref: tinderbox_musl) NOTE: (MUSL-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc but this bug MAY or MAY NOT BE related to musl.
Created attachment 882477 [details] build.log build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: /var/tmp/portage/app-crypt/nitrocli-0.4.1/work/cargo_home/gentoo/getrandom-0.1.16/src/util_libc.rs:113:(.text._ZN9getrandom9util_libc13open_readonly17h3b1f3947e516409fE+0x3b): undefined reference to `open64' error: linking with `cc` failed: exit status: 1
My guess is that this is an issue with getrandom. nitrocli doesn't use it directly, but through the nitrokey crate. I am not sure the latter is maintained anymore at this point.
It seems to work fine with libc v0.2.146 (fails with libc v0.2.144 and earlier).
Could you bump the crate via a patch? Thanks.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e9efa2ffcb018b6ca676404e5d1aeaf17e99bc1 commit 8e9efa2ffcb018b6ca676404e5d1aeaf17e99bc1 Author: Daniel Müller <deso@posteo.net> AuthorDate: 2024-01-19 15:21:22 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2024-01-20 13:20:09 +0000 app-crypt/nitrocli: Add patch fixing musl 1.2.4 build On a system with sys-libs/musl 1.2.4, the crate fails to build with an undefined reference to `open64'. Fix the issue by adding a patch bumping the version of the libc crate. Closes: https://bugs.gentoo.org/922317 Signed-off-by: Daniel Müller <deso@posteo.net> Closes: https://github.com/gentoo/gentoo/pull/34902 Signed-off-by: Joonas Niilola <juippis@gentoo.org> app-crypt/nitrocli/Manifest | 2 +- .../files/nitrocli-0.4.1-fix-musl-1.2.4-build.patch | 16 ++++++++++++++++ app-crypt/nitrocli/nitrocli-0.4.1.ebuild | 8 ++++++-- 3 files changed, 23 insertions(+), 3 deletions(-)