-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-101857: Allow xattr detection on musl libc #101858
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
Conversation
Previously, we checked exclusively for __GLIBC__ (AND'd with some other conditions). Checking for __linux__ instead should be fine. This fixes using e.g. os.listxattr() on systems using musl libc. Bug: https://bugs.gentoo.org/894130
@gpshead (as the posixmodule expert) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall: Makes sense to me, and a quick search seems to suggest that Android's libc (aka Bionic) includes xattr support.
we can adjust more in the future if anything needs it.
for future reference w/o digging up this PR comment thread.
Thanks @thesamesam for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
GH-101894 is a backport of this pull request to the 3.11 branch. |
Previously, we checked exclusively for `__GLIBC__` (AND'd with some other conditions). Checking for `__linux__` instead should be fine. This fixes using e.g. `os.listxattr()` on systems using musl libc. Bug: https://bugs.gentoo.org/894130 (cherry picked from commit 8be8101) Co-authored-by: Sam James <[email protected]> Co-authored-by: Gregory P. Smith <[email protected]>
Thanks for the rapid review & merge! |
…1894) gh-101857: Allow xattr detection on musl libc (GH-101858) Previously, we checked exclusively for `__GLIBC__` (AND'd with some other conditions). Checking for `__linux__` instead should be fine. This fixes using e.g. `os.listxattr()` on systems using musl libc. Bug: https://bugs.gentoo.org/894130 (cherry picked from commit 8be8101) Co-authored-by: Sam James <[email protected]> Co-authored-by: Gregory P. Smith <[email protected]>
Previously, we checked exclusively for `__GLIBC__` (AND'd with some other conditions). Checking for `__linux__` instead should be fine. This fixes using e.g. `os.listxattr()` on systems using musl libc. Bug: https://bugs.gentoo.org/894130 Co-authored-by: Gregory P. Smith <[email protected]>
Previously, we checked exclusively for `__GLIBC__` (AND'd with some other conditions). Checking for `__linux__` instead should be fine. This fixes using e.g. `os.listxattr()` on systems using musl libc. Bug: https://bugs.gentoo.org/894130 Co-authored-by: Gregory P. Smith <[email protected]>
Previously, we checked exclusively for `__GLIBC__` (AND'd with some other conditions). Checking for `__linux__` instead should be fine. This fixes using e.g. `os.listxattr()` on systems using musl libc. Bug: https://bugs.gentoo.org/894130 Co-authored-by: Gregory P. Smith <[email protected]>
Previously, we checked exclusively for `__GLIBC__` (AND'd with some other conditions). Checking for `__linux__` instead should be fine. This fixes using e.g. `os.listxattr()` on systems using musl libc. Bug: https://bugs.gentoo.org/894130 Co-authored-by: Gregory P. Smith <[email protected]>
Previously, we checked exclusively for GLIBC (AND'd with some other conditions). Checking for linux instead should be fine.
This fixes using e.g. os.listxattr() on systems using musl libc.
Bug: https://bugs.gentoo.org/894130
posixmodule.c
doesn't detect xattr support on Linux with non-glibc (e.g. musl) #101857