Skip to content

gccgo: fix build from minimal-bootstrap.gnugrep-static - #531305

Merged
pyrox0 merged 1 commit into
NixOS:stagingfrom
Gskartwii:fix-gccgo
Jun 13, 2026
Merged

pyrox0 merged 1 commit into
NixOS:stagingfrom
Gskartwii:fix-gccgo

Conversation

@Gskartwii

@Gskartwii Gskartwii commented Jun 13, 2026 •

Copy link
Copy Markdown
Contributor

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. This ultimately broke the gccgo build in a subtle way.

Things done

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.
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. labels Jun 13, 2026
@Gskartwii

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 531305 --package stdenv --package gccgo
Commit: 23eb9d22438eb163f258eaae9f2f9a32f7659eba


x86_64-linux

✅ 2 packages built:
  • gccgo
  • stdenv

@Gskartwii
Gskartwii marked this pull request as ready for review June 13, 2026 11:34
@Gskartwii Gskartwii mentioned this pull request Jun 13, 2026
5 of 14 tasks

@trofi trofi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed gccgo build for me on staging. Thank you!

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 2 This PR was reviewed and approved by two persons. label Jun 13, 2026
@pyrox0
pyrox0 added this pull request to the merge queue Jun 13, 2026
Merged via the queue into NixOS:staging with commit e5a8ec8 Jun 13, 2026
35 checks passed
@Gskartwii Gskartwii added the backport staging-26.05 Backport PR automatically label Jun 15, 2026
@nixpkgs-ci

nixpkgs-ci Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Backport failed for staging-26.05, because it was unable to cherry-pick the commit(s).

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: failed backport 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 2 This PR was reviewed and approved by two persons. backport staging-26.05 Backport PR automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants