Various packages under minimal-bootstrap explicitly use the musl gcc
wrapper (especially the *-static packages).
In #494106, the desire is to allow these packages to run on a host
platform which may differ from the bootstrap seed platform. That host
platform may be a non-musl platform, and furthermore musl may not even
be available on the desired host architecture.
This change aims to make the packages more generic wrt libc. It is
extracted out of #494106.
Install the single bzip2 binary with bunzip2 and bzcat symlinks instead of duplicate binaries, and skip unused recovery tools, headers, libraries, scripts, and man pages. The smoke test covers compression plus both decompression entry points.
Size impact against upstream/staging:
- bzip2-static closure: 0.665 MiB -> 0.159 MiB (-0.505 MiB)
Assisted-by: codex with gpt-5.5-high
Split minimal-bootstrap.test into bootstrap-chain, static-tools, and compiler aggregate tests. This keeps the full aggregate while allowing static-tool edits to be verified without rebuilding unrelated compiler checks.
Assisted-by: codex with gpt-5.5-high
GNU Make's release tarball contains pregenerated Autotools files and
depends on archive mtimes to keep them newer than their inputs.
The Mes-built gnutar used by gnumake-musl does not preserve those mtimes.
That can make configure.ac and m4 files appear newer than aclocal.m4 or
Makefile.in, causing make to try to run aclocal/automake during the
minimal bootstrap build.
Use gnutar-musl here, which is already documented as preserving mtimes for
pregenerated files.
Assisted-by: OpenAI Codex (GPT-5.5)
By doing this, we can cache the rest of the file, including the import
of problems.nix. This allows genCheckProblems to be cached on every
bootstrapping stage, and not re-called each time.
- bash upgraded to 5.2.37, which fixes broken logic in the configure script
relating to strtoimax.
- heirloom stubs fixed to be static, which removes linker issues
- Fixed xz linker issues, stemming from configure script issues
- gnugrep uses broken Makefile from live-bootstrap; vendor a fixed version
We now build tinycc-musl through an intermediate stage.
BEFORE:
tinycc-mes (links to mes-libc) -> musl -> tinycc-musl (links to musl)
NOW:
tinycc-mes (links to mes-libc) -> musl-intermediate
-> tinycc-musl-intermediate -> musl -> tinycc-musl
This fixes some issues with handling floating-point numbers:
certain float routines are not implemented are not implemented in mes-libc,
which would cause a miscompiled musl in the old approach.
Certain unnecessary musl patches are dropped. It is especially important to
remove the weak symbol patch, which in fact breaks the build.
tinycc-musl is upgraded to the latest "mob" version, with a couple bugfixes.
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build a08b3a4d19.tar.gz \
--argstr baseRev b32a094368
result/bin/apply-formatting $NIXPKGS_PATH