Skip to content

tests.makeBinaryWrapper: fix broken tests - #505373

Merged
K900 merged 1 commit into
NixOS:masterfrom
me-and:make-binary-wrapper-qt-fix
Jul 31, 2026
Merged

K900 merged 1 commit into
NixOS:masterfrom
me-and:make-binary-wrapper-qt-fix

Conversation

@me-and

@me-and me-and commented Mar 31, 2026 •

Copy link
Copy Markdown
Member

0fdcb95 (makeBinaryWrapper: If prefix/suffix already exists, remove the original (#451031), 2025-12-11) changed the C code generated by makeBinaryWrapper. The tests for makeBinaryWrapper check the exact code that's generated, so they need updating.

Fixes #505339.

This is a naïve application of the changes made in #451031 to the test code. I haven't attempted to verify that the behaviour changes are desirable.

Things done

  • 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.

0fdcb95 (makeBinaryWrapper: If prefix/suffix already exists, remove
the original (NixOS#451031), 2025-12-11) changed the C code generated by
makeBinaryWrapper.  The tests for makeBinaryWrapper check the exact code
that's generated, so they need updating.

Fixes NixOS#505339.
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Mar 31, 2026
@me-and

me-and commented Mar 31, 2026

Copy link
Copy Markdown
Member Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 505373
Commit: 7c0745748a9f7811202a6b73fa4a56215cd6db3a


x86_64-linux

✅ 1 package built:
  • tests.makeBinaryWrapper

@bestlem

bestlem commented Apr 21, 2026

Copy link
Copy Markdown

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 505373
Commit: 7c0745748a9f7811202a6b73fa4a56215cd6db3a


aarch64-darwin

✅ 1 package built:
  • tests.makeBinaryWrapper

@me-and

me-and commented Jul 31, 2026 •

Copy link
Copy Markdown
Member Author

@SuperSamus @K900 as the folks behind #451031, which introduced the regression at #505399 #505339 which this PR fixes, would one or both of you be willing to review and potentially merge?

(Apologies to SuperSandro2000, who I previously tagged in error in this note!)

@K900

K900 commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

#505399 does not seem related?

@me-and

me-and commented Jul 31, 2026

Copy link
Copy Markdown
Member Author

#505399 does not seem related?

My bad! #505339 is what I meant to link to! I'll correct the original post, too.

@K900
K900 added this pull request to the merge queue Jul 31, 2026
Merged via the queue into NixOS:master with commit 584b9b1 Jul 31, 2026
34 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

9.needs: reviewer This PR currently has no reviewers requested and needs attention. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build failure: tests.makeBinaryWrapper

3 participants