Skip to content

busybox-sandbox-shell: fix eval for musl#361265

Merged
K900 merged 1 commit intoNixOS:masterfrom
alyssais:busybox-sandbox-shell-musl
Dec 3, 2024
Merged

busybox-sandbox-shell: fix eval for musl#361265
K900 merged 1 commit intoNixOS:masterfrom
alyssais:busybox-sandbox-shell-musl

Conversation

@alyssais
Copy link
Member

@alyssais alyssais commented Dec 2, 2024

Setting useMusl all the time to a condition dependent on isGnu meant that for musl platforms, useMusl ended up being set to false, tripping the assertion in the busybox expression. The correct thing to do is to leave useMusl at its default value, except for in the specific case where we want to force it to true.

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/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 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.

Setting useMusl all the time to a condition dependent on isGnu meant
that for musl platforms, useMusl ended up being set to false, tripping
the assertion in the busybox expression.  The correct thing to do is
to leave useMusl at its default value, except for in the specific case
where we want to force it to true.

Fixes: 11472f0 ("busybox-sandbox-shell: replace pkgsStatic with useMusl")
@github-actions github-actions 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 Dec 3, 2024
Copy link
Contributor

@wolfgangwalther wolfgangwalther left a comment

Choose a reason for hiding this comment

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

Uh, right, thanks for fixing!

@K900 K900 merged commit 9216cf4 into NixOS:master Dec 3, 2024
@alyssais alyssais deleted the busybox-sandbox-shell-musl branch December 3, 2024 09:06
@vcunat
Copy link
Member

vcunat commented Dec 3, 2024

Is it a problem if the regression reaches nixos-unstable? Should we cancel and reeval?

@szlend
Copy link
Member

szlend commented Dec 3, 2024

Probably safer to re-eval, or is that a last resort thing? It should only break pkgsStatic/pkgsMusl, but that's still pretty popular.

@vcunat
Copy link
Member

vcunat commented Dec 3, 2024

The channel update is activating already now.

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

Labels

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.

5 participants