Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922317 - app-crypt/nitrocli-0.4.1 fails to compile (MUSL-SYSTEM): util_libc.rs:113:(.text._ZN9getrandom9util_libc13open_readonly17h3b1f3947e516409fE+0x3b): undefined reference to open64
Summary: app-crypt/nitrocli-0.4.1 fails to compile (MUSL-SYSTEM): util_libc.rs:113:(.t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: deso
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: musl-1.2.4
  Show dependency tree
 
Reported: 2024-01-17 11:46 UTC by Agostino Sarubbo
Modified: 2024-01-20 13:21 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,102.02 KB, text/plain)
2024-01-17 11:46 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-01-17 11:46:25 UTC
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.
Comment 1 Agostino Sarubbo gentoo-dev 2024-01-17 11:46:27 UTC
Created attachment 882477 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-01-17 11:46:29 UTC
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
Comment 3 deso 2024-01-17 15:12:51 UTC
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.
Comment 4 deso 2024-01-18 20:10:10 UTC
It seems to work fine with libc v0.2.146 (fails with libc v0.2.144 and earlier).
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-19 07:58:03 UTC
Could you bump the crate via a patch? Thanks.
Comment 6 Larry the Git Cow gentoo-dev 2024-01-20 13:21:47 UTC
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(-)