Repository navigation
gccgo: fix build from minimal-bootstrap.gnugrep-static - #531305
Merged
Merged
Conversation
gccgo is built by overriding gcc from stdenv stage3. At this stage of stdenv, when minimal-bootstrap is used as the bootstrap seed, the grep package is actually gnugrep-static from minimal-bootstrap. This package was accidentally missing egrep and fgrep. Now, the gcc configure system is capable of detecting that grep -E works as an egrep substitute. Still, a few makefiles were using egrep directly rather than grep -E. This ultimately broke the gccgo build in a subtle way.
Contributor
Author
|
Gskartwii
marked this pull request as ready for review
June 13, 2026 11:34
5 of 14 tasks
nixpkgs-ci
Bot
requested review from
06kellyjac,
Artturin,
Ericson2314,
alejandrosame,
emilytrau,
pyrox0 and
siraben
June 13, 2026 12:11
trofi
approved these changes
Jun 13, 2026
trofi
left a comment
Contributor
There was a problem hiding this comment.
Fixed gccgo build for me on staging. Thank you!
qweered
approved these changes
Jun 13, 2026
Contributor
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin staging-26.05
git worktree add -d .worktree/backport-531305-to-staging-26.05 origin/staging-26.05
cd .worktree/backport-531305-to-staging-26.05
git switch --create backport-531305-to-staging-26.05
git cherry-pick -x 23eb9d22438eb163f258eaae9f2f9a32f7659eba |
2 of 14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
gccgo is built by overriding gcc from stdenv stage3. At this stage of stdenv, when minimal-bootstrap is used as the bootstrap seed, the grep package is actually gnugrep-static from minimal-bootstrap. This package was accidentally missing egrep and fgrep.
Now, the gcc configure system is capable of detecting that
grep -Eworks as an egrep substitute. Still, a few makefiles were using egrep directly. This ultimately broke the gccgo build in a subtle way.Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.