Skip to content
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

Merged
merged 1 commit into from
Oct 13, 2024

Conversation

reckenrode
Copy link
Contributor

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

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/)
  • 24.11 Release Notes (or backporting 23.11 and 24.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.

@github-actions github-actions bot added the 6.topic: stdenv Standard environment label Oct 11, 2024
@nix-owners nix-owners bot requested a review from philiptaron October 11, 2024 21:56
@philiptaron
Copy link
Contributor

Any tips on testing this Randy? I'd be happy to get a machine cranking.

@reckenrode
Copy link
Contributor Author

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.

nix build 'github:NixOS/nixpkgs?ref=pull/348000/merge#freshBootstrapTools.test-pkgs.stdenv'

@@ -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
Copy link
Contributor

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.

Copy link
Contributor Author

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)

Copy link
Contributor Author

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.
Copy link
Contributor

@paparodeo paparodeo left a 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.

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Oct 12, 2024
Copy link
Member

@emilazy emilazy left a 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 🎉

@emilazy emilazy merged commit 78f58b2 into NixOS:staging Oct 13, 2024
25 checks passed
@reckenrode reckenrode deleted the push-runnqxlrlrmu branch October 13, 2024 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: stdenv Standard environment 10.rebuild-darwin: 0 This PR does not cause any 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.

4 participants