-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
freshBootstrapTools.bootstrapTools: update for new SDK pattern #348000
Conversation
Any tips on testing this Randy? I'd be happy to get a machine cranking. |
The following will build the bootstrap tools then rebuild the stdenv with them. Note that you’ll probably also have to rebuild the stdenv first since this is going to staging due to depending on the new SDK stuff.
|
@@ -30,7 +31,7 @@ builtins.derivation { | |||
mkdir -p $out/bin | |||
|
|||
for exe in $tools/bin/*; do | |||
[[ $exe =~ bunzip2|codesign.*|false|install_name_tool|ld|lipo|pbzx|ranlib|rewrite-tbd|sigtool ]] && continue | |||
[[ $exe =~ bunzip2|codesign.*|false|install_name_tool|jq|ld|lipo|pbzx|ranlib|sigtool|tapi ]] && continue |
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.
jq should support jq --version
and return 0 so the test passes. is there a way to run tapi
that will return 0, maybe tapi -h
or tapi -v
? if so can just add below sigtool -h
so all programs get run in the test.
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.
tapi
supports --version
./tapi --version
TAPI version 15.0.0 (tapi-1500.0.12.3)
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.
Oh, right. Exclusion list. I’ll drop jq and tapi from it.
- Drop libSystem. It’s no longer needed. The SDK can be downloaded and built with existing tools. - Add jq and tapi. Adding these allows the stdenv bootstrap to stop special-casing stage 0. - Update tests for updated ld64. It handles code-signing properly, so the signatures aren’t broken.
7cf20a0
to
22885f8
Compare
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.
freshBootstrapTools.test
on x86_64 and aarch64-darwin builds fine for me. changes look good.
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.
Built freshBootstrapTools.test-pkgs.stdenv
for x86_64-darwin
🎉
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.