Skip to content

[3.11] gh-101857: Allow xattr detection on musl libc (GH-101858) #101894

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

Merged
merged 2 commits into from
May 21, 2023

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented 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]

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
Copy link
Member

gpshead commented Feb 14, 2023

Waiting for the buildbot results on the main branch commit before merging this just in case.

@gpshead gpshead self-assigned this Feb 14, 2023
@gpshead gpshead enabled auto-merge (squash) May 20, 2023 23:53
@gpshead gpshead merged commit 2e457bc into python:3.11 May 21, 2023
@miss-islington miss-islington deleted the backport-8be8101-3.11 branch May 21, 2023 00:17
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

Successfully merging this pull request may close these issues.

4 participants