Skip to content

pkgsMusl.ostree: fix build#306727

Merged
SuperSandro2000 merged 1 commit intoNixOS:masterfrom
alyssais:ostree-musl
Apr 25, 2024
Merged

pkgsMusl.ostree: fix build#306727
SuperSandro2000 merged 1 commit intoNixOS:masterfrom
alyssais:ostree-musl

Conversation

@alyssais
Copy link
Member

@alyssais alyssais commented Apr 25, 2024

Description of changes

Nixpkgs currently uses musl 1.2.3, which does not provide a statx(2) wrapper, which ostree now depends upon. Work on upgrading musl is ongoing, but for now, to keep ostree building, let's follow upstream's recommendation and revert the statx changes. Once the musl upgrade is complete, this change can be reverted.

I've applied the patches conditionally, only for musl, to avoid impacting functionality for other platforms.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

Nixpkgs currently uses musl 1.2.3, which does not provide a statx(2)
wrapper, which ostree now depends upon.  Work on upgrading musl is
ongoing, but for now, to keep ostree building, let's follow upstream's
recommendation and revert the statx changes.  Once the musl upgrade is
complete, this change can be reverted.

I've applied the patches conditionally, only for musl, to avoid
impacting functionality for other platforms.

Fixes: 1a56b35 ("ostree: version bump and removing old patches")
@alyssais alyssais added the 6.topic: musl Running or building packages with musl libc label Apr 25, 2024
Copy link
Contributor

@Mindavi Mindavi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great that they made it so easily revertable. Sounds good to me to do this revert since upstream indeed recommends it and AFAICT it's not supposed to be a (significant) change in behaviour. But it's also kind of flying over my head, so...

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Apr 25, 2024
@SuperSandro2000 SuperSandro2000 merged commit baf439a into NixOS:master Apr 25, 2024
@alyssais alyssais deleted the ostree-musl branch April 25, 2024 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: musl Running or building packages with musl libc 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants