Skip to content

Include Linux UAPI headers for *-linux-musl targets - #1394

Open
EthanOQuin wants to merge 3 commits into
astral-sh:mainfrom
EthanOQuin:add-uapi-headers-musl
Open

EthanOQuin wants to merge 3 commits into
astral-sh:mainfrom
EthanOQuin:add-uapi-headers-musl

Conversation

@EthanOQuin

@EthanOQuin EthanOQuin commented Oct 23, 2026 •

Copy link
Copy Markdown

Follow the same pattern as #1163 for glibc targets and include Linux userspace UAPI headers for musl builds. This enables some of the features missing from the musl builds such as the socket types like AF_NETLINK, some parts of the os module (os.getrandom and xattr functions, to name a few), and more.

This also means the AF_VSOCK test that was previously skipped can be re-enabled.

This should hopefully fix #930

EthanOQuin and others added 3 commits October 23, 2026 17:30
Follow the same pattern as  astral-sh#1163 for glibc targets and include Linux userspace
UAPI headers for musl builds. This enables some of the features missing from the
musl builds such as the socket types like `AF_NETLINK`, some parts of the
os module (os.getrandom and xattr functions, to name a few), and more.

This also means the AF_VSOCK test that was previously skipped can be re-enabled.

Fixes astral-sh#930
@zanieb

zanieb commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

This looks good and addresses the issues, but also introduces possible regressions around FICLONE and listxattr that I might need to fix upstream first.

This branch has not been deployed

No deployments
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.

musl builds don't work with pyroute2

3 participants