Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of changes
The first step of bootstrapping ghc on powerpc64le uses an ancient ghc-8.6.5 binary which never worked very well and has always segfaulted part of the time. Unfortunately of late something in newer Linux kernels, or maybe glibcs, or maybe something else is causing it to segfault 100% of the time for me.
Sadly this means we can no longer build GHC on nixpkgs. IMHO, long term it just isn't sustainable for us to support compilers that don't have either a bootstrap path from C/C++ or else a solid self-cross-compilation-from-x86 bootstrap path. I think we need to wait for GHC to get the latter.
Also, recently people have been spraying ShellCheck far and wide with wild abandon, which means that deliberately breaking GHC ond powerpc64le is the most straighforward way to get nixpkgs to skip these ShellChecks (which of course need GHC).
So... this commit actually is necessary now in order to build the NixOS installer.
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.