Skip to content

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
@github-actions github-actions bot added 6.topic: python Python is a high-level, general-purpose programming language. 6.topic: qt/kde Object-oriented framework for GUI creation and removed 6.topic: qt/kde Object-oriented framework for GUI creation 6.topic: python Python is a high-level, general-purpose programming language. labels 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 on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 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 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.

1 participant