Skip to content

patch-shebangs: fix binary data corrupt after patching#424278

Closed
DavHau wants to merge 1 commit intoNixOS:staging-nextfrom
DavHau:patch-shebangs-next
Closed

patch-shebangs: fix binary data corrupt after patching#424278
DavHau wants to merge 1 commit intoNixOS:staging-nextfrom
DavHau:patch-shebangs-next

Conversation

@DavHau
Copy link
Member

@DavHau DavHau commented Jul 11, 2025

backport of #423137

This removes the recently introduced shell based implementation of sponge which wasn't capable of managing binary input.

Now, a tmpFile under $TMPDIR is created manually and later deleted

see: #414448 (comment)

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/)
  • Nixpkgs 25.11 Release Notes (or backporting 25.05 Nixpkgs Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
  • NixOS 25.11 Release Notes (or backporting 25.05 NixOS Release notes)
    • (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, pkgs/README.md, maintainers/README.md and other contributing documentation in corresponding paths.

Add a 👍 reaction to pull requests you find important.

This removes the recently introduced shell based implementation of `sponge` which wasn't capable of managing binary input.

Now, a tmpFile under $TMPDIR is created manually and later deleted

see: NixOS#414448 (comment)
@nix-owners nix-owners bot requested a review from Ericson2314 July 11, 2025 09:58
@K900
Copy link
Contributor

K900 commented Jul 11, 2025

No can do, we'd discard the entire cycle.

@K900 K900 closed this Jul 11, 2025
@DavHau
Copy link
Member Author

DavHau commented Jul 11, 2025

No can do, we'd discard the entire cycle.

Sorry, I'm not 100% familiar with the release flow. Please instruct me how I can help to fix this.

@dramforever
Copy link
Contributor

It seems very unlikely that this is causing the Haskell failures, so it is probably just unnecessary.

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.

3 participants