-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
removeReferencesToVendoredSources: sign aarch64-darwin binaries #418
Conversation
06475c6
to
c722102
Compare
Hi @simonzkl thanks for the PR and the test case! I think there's a simpler way of solving this problem: removing references later in the build (after signing has had a chance to run)! It looks like nixpkgs will perform signing as a fixup hook. Currently references are removed as a postInstall step but if we changed that to a post fixup hook it might work out? |
I could be wrong but my understanding is that signing runs as part of the clang build when you run |
c722102
to
f4301e0
Compare
@ipetkov actually you're right. Moving |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, thanks again for the fix!
Uh oh, we've got a regression! Actually it looks like the hook isn't running at all, maybe we need to specify |
Ah sorry, it seems I fixed the issue by not running the hook at all. Changing it to |
Head branch was pushed to by a user without write access
I reverted back to the old approach, but I'm happy to do it differently if there's a better idea. Should we revert |
Ah I apologize for sending you down the wrong path, I had mistakenly assumed the signing was always being done by the stdenv and we were somehow clobbering it, when in reality we have to explicitly sign because we patch the binary afterwards? Anyway this seems like the appropriate path (at least it fixes the issues even if I'm still fuzzy on the details)
Yes let's revert this (also yay no longer a breaking change!) we can circle back to the change log when this is ready to merge |
14d48cf
to
e8d95d9
Compare
Gonna restart the workflow once the darwin examples cache (looks like we're stuck compiling gcc atm): https://github.com/ipetkov/crane/actions/runs/6525453459/job/17718153027 |
Motivation
Fixes #417
On aarch64-darwin we need to sign binaries. Usually this is done automatically, but it seems the signature is invalidated when we patch binaries using
removeReferencesToVendoredSources
.Checklist
docs/API.md
(or general documentation) with changesCHANGELOG.md