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

release-cross.nix: fix the fix in #188339 #230455

Merged
merged 1 commit into from May 9, 2023
Merged

release-cross.nix: fix the fix in #188339 #230455

merged 1 commit into from May 9, 2023

Conversation

ghost
Copy link

@ghost ghost commented May 7, 2023

Description of changes

The bootstrapTools.bootstrapTools attribute, which unpacks the bootstrapFiles, lies about its system:

inherit (stdenv.buildPlatform) system; # Used to determine where to build

Unfortunately because of this, when building bootstrapTools.*, Hydra will try to execute the cross-compiled bootstrapFiles' busybox on the wrong architecture, and fail.

I originally submitted a fix for this, by filtering out the .bootstrapTools attribute, in #188339

Unfortunately my fix filtered at the wrong level of the attrset hierarchy, and neglected to filter the test attribute as well. This PR corrects those mistakes

This PR should fix 16 of the current Hydra failures:
hydra-fails

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin

@ofborg ofborg bot added the 6.topic: cross-compilation Building packages on a different platform than they will be used on label May 7, 2023
@ghost ghost added the 0.kind: ZHF Fixes Fixes during the Zero Hydra Failures (ZHF) campaign label May 7, 2023
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild 10.rebuild-linux: 0 This PR does not cause any packages to rebuild labels May 7, 2023
The `bootstrapTools.bootstrapTools` attribute, which *unpacks* the
bootstrapFiles, lies about its `system`:

  https://github.com/NixOS/nixpkgs/blob/78963777a40a63333520c5c8f4567b4059b68c4d/pkgs/stdenv/linux/make-bootstrap-tools.nix#L236

Unfortunately because of this, when building `bootstrapTools.*`,
Hydra will try to execute the cross-compiled bootstrapFiles'
`busybox` on the wrong architecture, and fail.

I originally submitted a fix for this, by filtering out the
`.bootstrapTools` attribute, in
#188339

Unfortunately my fix filtered at the wrong level of the attrset
hierarchy, and neglected to filter the `test` attribute as well.
This PR corrects those mistakes
@ghost ghost marked this pull request as ready for review May 7, 2023 07:20
@ghost ghost requested review from Ericson2314 and matthewbauer as code owners May 7, 2023 07:20
@ghost ghost requested a review from vcunat May 7, 2023 07:20
@ghost
Copy link
Author

ghost commented May 9, 2023

#230712

@wegank wegank merged commit a64acfc into NixOS:master May 9, 2023
@ghost ghost deleted the zhf/bootstrapTools/dont-unpack-foreign branch May 10, 2023 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: ZHF Fixes Fixes during the Zero Hydra Failures (ZHF) campaign 6.topic: cross-compilation Building packages on a different platform than they will be used on 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild 10.rebuild-linux: 0 This PR does not cause any packages to rebuild
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant