-
Notifications
You must be signed in to change notification settings - Fork 12
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
GNU-only components that make it impossible to build in Musl or any other libC #17
Comments
feel free to upstream it
wrong: https://github.com/chimera-linux/musl-fts/blob/9fd7d89c72689e5dd0d9ccedde1d9f2b4bec87a4/fts.c#L128
that's what https://github.com/chimera-linux/musl-rpmatch is for. do you have a reference for 'should not be used outside glibc internals'?
very mature of you. |
I linked the Gentoo Musl Porting guide. It doesn't say anything about musl-rpmatch, but still, the rpmatch function is not defined in the SUSV3/4, neither in any of the POSIX specifications, it was present in Solaris, thus various OSes packaged it as a standalone library to ease porting, then later followed Glibc, which has it since version 2.19 when using _DEFAULT_SOURCE or prior if using _SVID_SOURCE. It is not present in any of these OSes: macOS, NetBSD, OpenBSD, Minix, HP-UX, IRIX, Cygwin, mingw, MSVC, nor Android (because Android uses the Bionic libC) You can still use it with a standalone port of the library tho, but why use a ported Glibc component? And under the section of cdefs.h it says 'should not be used outside glibc internals'.
Seems I was mistaken with this I will do some surgery to get this working on Alpine |
ftr that has been done for ages Juniper/libxo#82
freebsd libc has rpmatch and therefore the tools use it; musl-rpmatch is a from-scratch implementation as far as i know, it could be rolled into the builtin libcompat but i don't see much point
|
Okay, I see you updated libxo minutes ago and deleted a patch and now there is only the bmake compat one. Thanks for clarifying everything |
Check this excellent Gentoo wiki page: https://wiki.gentoo.org/wiki/Musl_porting_notes
See Juniper/libxo#94:
Is chimera really "GNU-free" if it still uses header files and functionality provided only by the glibc? ...
The text was updated successfully, but these errors were encountered: