Skip to content

linuxHeaders: patch for sysinfo redefinition under musl#436218

Closed
yuyuyureka wants to merge 1 commit intoNixOS:stagingfrom
yuyuyureka:sysinfo-musl
Closed

linuxHeaders: patch for sysinfo redefinition under musl#436218
yuyuyureka wants to merge 1 commit intoNixOS:stagingfrom
yuyuyureka:sysinfo-musl

Conversation

@yuyuyureka
Copy link
Contributor

@yuyuyureka yuyuyureka commented Aug 23, 2025

Things done

Ran into this while building xdp-tools (from #436206 checkout).
It seems to be a common issue with the musl headers, I'm not sure I understand it well enough to engage with upstream (Linux?). The musl people seem to agree that this include does not belong here, but removing it breaks glibc, so they add this condition.

So, I'm proposing to do what everyone else does for now.

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Aug 23, 2025
@yuyuyureka yuyuyureka changed the base branch from master to staging August 23, 2025 15:31
@nixpkgs-ci nixpkgs-ci bot closed this Aug 23, 2025
@nixpkgs-ci nixpkgs-ci bot reopened this Aug 23, 2025
@nixpkgs-ci nixpkgs-ci bot added 9.needs: reviewer This PR currently has no reviewers requested and needs attention. and removed 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Aug 23, 2025
@yuyuyureka
Copy link
Contributor Author

We discussed this externally and found that in most cases the applications are wrong to include kernel.h outside of the kernel anyways, and this user (libbpf) specifically was using an outdated vendored version of netlink.h, which can be fixed by updating it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant