-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
posixmodule.c
doesn't detect xattr support on Linux with non-glibc (e.g. musl)
#101857
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
Labels
build
The build process and cross-build
extension-modules
C modules in the Modules dir
type-bug
An unexpected behavior, bug, or error
Comments
thesamesam
added a commit
to thesamesam/cpython
that referenced
this issue
Feb 12, 2023
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
added a commit
that referenced
this issue
Feb 14, 2023
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]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 14, 2023
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]>
gpshead
added a commit
that referenced
this issue
May 21, 2023
…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]>
gentoo-bot
pushed a commit
to gentoo/cpython
that referenced
this issue
May 21, 2024
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]>
gentoo-bot
pushed a commit
to gentoo/cpython
that referenced
this issue
May 21, 2024
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]>
gentoo-bot
pushed a commit
to gentoo/cpython
that referenced
this issue
Sep 19, 2024
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]>
gentoo-bot
pushed a commit
to gentoo/cpython
that referenced
this issue
Sep 19, 2024
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]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
build
The build process and cross-build
extension-modules
C modules in the Modules dir
type-bug
An unexpected behavior, bug, or error
Bug report
posixmodule.c
detects xattr support by checking for__GLIBC__
(and some other conditions) atcpython/Modules/posixmodule.c
Line 277 in 86ebd5c
On a musl system, it's easy to reproduce with:
Your environment
Linked PRs
The text was updated successfully, but these errors were encountered: