Skip to content

[Backport release-24.11] qt6.qtdeclarative: fix code-signing on Darwin#401989

Merged
K900 merged 1 commit intoNixOS:release-24.11from
vcunat:p/qtdeclarative-darwin
Apr 26, 2025
Merged

[Backport release-24.11] qt6.qtdeclarative: fix code-signing on Darwin#401989
K900 merged 1 commit intoNixOS:release-24.11from
vcunat:p/qtdeclarative-darwin

Conversation

@vcunat
Copy link
Member

@vcunat vcunat commented Apr 26, 2025

The build tries to sign qmltestrunner, but sometimes it’s already signed, causing the signing to fail due to an existing signature. Cherry-pick this patch from upstream to force sign it regardless.

(cherry picked from commit b403bd0 from #398849)
Blocking channel via wireshark: https://hydra.nixos.org/build/295474305

Things done

  • Built on platform(s)
    • 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.

The build tries to sign qmltestrunner, but sometimes it’s already
signed, causing the signing to fail due to an existing signature.
Cherry-pick this patch from upstream to force sign it regardless.

(cherry picked from commit b403bd0)
@vcunat vcunat added 6.topic: darwin Running or building packages on Darwin 1.severity: channel blocker Blocks a channel labels Apr 26, 2025
@github-actions github-actions bot added 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Apr 26, 2025
@K900 K900 merged commit 975e563 into NixOS:release-24.11 Apr 26, 2025
24 of 29 checks passed
@vcunat
Copy link
Member Author

vcunat commented Apr 26, 2025

Now I built it locally and I still got the code-signing error 😢

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/macos-nixpkgs-24-11-qtdeclarative-6-8-3-result-in-bin-sh-codesign-command-not-found/63487/6

@wolfgangwalther
Copy link
Contributor

The nix fmt job failed, and thus is now failing in every PR to release-24.11. Fixed in #402065.

@vcunat
Copy link
Member Author

vcunat commented Apr 26, 2025

Oh, I'm sorry, I forgot. And I really hate that extending a list makes you reindent every element of it. That's pretty hurtful to version control, etc.

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

Labels

1.severity: channel blocker Blocks a channel 6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 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