Skip to content

minimal-bootstrap: lots of updates#448701

Merged
pyrox0 merged 8 commits intoNixOS:masterfrom
pyrox0:bump/minimal-bootstrap
Dec 11, 2025
Merged

minimal-bootstrap: lots of updates#448701
pyrox0 merged 8 commits intoNixOS:masterfrom
pyrox0:bump/minimal-bootstrap

Conversation

@pyrox0
Copy link
Member

@pyrox0 pyrox0 commented Oct 5, 2025

TL;DR: For a full breakdown, look at the commits individually. I know things are a bit scattered, but this has taken a while and it has been hard to disentangle some things.

This is a general update of the currently-existing minimal-bootstrap package set in nixpkgs. There are a few updates of the core tools, notably stage0-posix going from 1.6.0 to 1.9.1, which gives us smaller seeds and better compilers. There are also new builds of nyacc(to work with the new mes version from stage0-posix), bootstrappable tinycc, and various patches.

Things done

  • Built on platform:
    • x86_64-linux(used pkgsi686Linux.minimal-bootstrap.test as the derivation I'm building, but my host is technically x86_64-linux)
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@pyrox0 pyrox0 force-pushed the bump/minimal-bootstrap branch from 0e51da4 to faecaad Compare October 5, 2025 00:58
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. labels Oct 5, 2025
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/bootstrap-files-updates-amplifiy-exploit-of-any-package-into-exploit-of-every-package/50534/18

@pyrox0
Copy link
Member Author

pyrox0 commented Oct 6, 2025

There's nothing else to do for this atm, but marking as draft because I don't want this merged until after the release(even though this shouldn't break anything)

@pyrox0 pyrox0 marked this pull request as draft October 6, 2025 14:25
@LunNova LunNova added the 2.status: wait for branch‐off Waiting for the next Nixpkgs branch‐off label Oct 6, 2025
@pyrox0 pyrox0 force-pushed the bump/minimal-bootstrap branch from b458148 to 08df98c Compare October 8, 2025 15:32
@pyrox0 pyrox0 force-pushed the bump/minimal-bootstrap branch from 08df98c to 532fc55 Compare October 19, 2025 16:15
@pyrox0 pyrox0 force-pushed the bump/minimal-bootstrap branch from 532fc55 to e324b82 Compare November 6, 2025 01:42
@Ericson2314
Copy link
Member

CC @JulienMalka, since we were once talking about this.

@pyrox0
Copy link
Member Author

pyrox0 commented Nov 27, 2025

Undrafting since branch-off has happened.

@pyrox0 pyrox0 removed the 2.status: wait for branch‐off Waiting for the next Nixpkgs branch‐off label Nov 27, 2025
@pyrox0 pyrox0 marked this pull request as ready for review November 27, 2025 18:08
@pyrox0 pyrox0 force-pushed the bump/minimal-bootstrap branch from e324b82 to 48c34b0 Compare November 27, 2025 18:09
@Aleksanaa Aleksanaa added the 6.topic: bootstrap Bootstrapping, avoiding pre-built binaries. Often overlaps with cross-compilation. label Nov 27, 2025
@pyrox0 pyrox0 requested a review from Ericson2314 December 3, 2025 21:57
Copy link
Member

@jopejoe1 jopejoe1 left a comment

Choose a reason for hiding this comment

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

From what I can see and test, this looks reasonable to me, but not really that deep into minimal-bootstrap to do an in-depth review, but don't want to see this laying around for a long time.

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Dec 9, 2025
pyrox0 and others added 8 commits December 10, 2025 23:22
Gives us smaller bootstrap tarballs, better M2-Planet, and more.
…ble-2024-07-07

Updated to work with mes 0.27
Disable chdir_long support since even though the symbol exists, it can't
be found, which causes build errors.
These caused the build to fail, so they had to be removed.
…flush.patch

The upstream version of this patch has been commented out
since 913e70d, due to
error: implicit declaration of function '__stdio_exit'

Revived this approach by updating the patch to forward declare.
@pyrox0 pyrox0 force-pushed the bump/minimal-bootstrap branch from 48c34b0 to 8d0938c Compare December 11, 2025 04:23
@pyrox0
Copy link
Member Author

pyrox0 commented Dec 11, 2025

Pushed to fix the merge conflicts. Planning to merge sometime tomorrow.

@pyrox0
Copy link
Member Author

pyrox0 commented Dec 11, 2025

here we go!

@pyrox0 pyrox0 added this pull request to the merge queue Dec 11, 2025
Merged via the queue into NixOS:master with commit 1a01d7d Dec 11, 2025
26 of 29 checks passed
@pyrox0 pyrox0 deleted the bump/minimal-bootstrap branch December 11, 2025 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: bootstrap Bootstrapping, avoiding pre-built binaries. Often overlaps with cross-compilation. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants