Summary: | app-crypt/nitrocli-0.4.1 fails to compile (MUSL-SYSTEM): util_libc.rs:113:(.text._ZN9getrandom9util_libc13open_readonly17h3b1f3947e516409fE+0x3b): undefined reference to open64 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | deso |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | deso, proxy-maint |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/34902 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 903611 | ||
Attachments: | build.log |
Description
Agostino Sarubbo
2024-01-17 11:46:25 UTC
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(-) |