Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo-bininstall detects Gentoo GLIBC systems as musl #1999

Open
MJDSys opened this issue Dec 17, 2024 · 1 comment
Open

cargo-bininstall detects Gentoo GLIBC systems as musl #1999

MJDSys opened this issue Dec 17, 2024 · 1 comment

Comments

@MJDSys
Copy link

MJDSys commented Dec 17, 2024

When trying to install a package on my Gentoo system, bininstall only tries to download the musl release even though I have a GLIBC system and it should be able to use those packages. Investigating further, it seems Gentoo patches the output of the dynamic linker so it doesn't include a GLIBC string.

verbose log from running: yes n|cargo binstall diesel_cli -v >log.txt 2>&1:
log.txt

/lib64/ld-linux-x86-64.so.2 --version output:

ld.so (Gentoo 2.39-r6 (patchset 6)) stable release version 2.39.
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

As a suggestion, would matching on the copyright line help? That should be another sign you are using a GLIBC system. I could try putting together a patch if that sounds reasonable.

@NobodyXu
Copy link
Member

As a suggestion, would matching on the copyright line help?

Yeah given that glibc is the only libc that uses LGPL.

I wonder how does musl libc looks like on gentoo, can you try it out for me please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants