Commit Graph

126 Commits

Author SHA1 Message Date
Aleksi Hannula
d48885dee8 minimal-bootstrap.musl-headers: init at 1.2.6 2026-07-27 21:12:08 +03:00
Aleksi Hannula
12f89dcfe5 minimal-bootstrap.glibc-headers: init at 2.42 2026-07-27 21:12:08 +03:00
Aleksi Hannula
da19a96b09 minimal-bootstrap.libmpc: init at 1.3.1 2026-07-27 21:12:08 +03:00
Aleksi Hannula
ab3dec4efd minimal-bootstrap.libmpfr: init at 4.2.2 2026-07-27 21:12:08 +03:00
Aleksi Hannula
945300a325 minimal-bootstrap.libgmp: init at 6.3.0 2026-07-27 21:12:08 +03:00
Aleksi Hannula
745f12467c minimal-bootstrap: Fix tools in preparation for early cross-compilation
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.
2026-06-17 13:34:53 +03:00
Aleksi Hannula
0150e1894f minimal-bootstrap: Use minimal gcc wrapper 2026-06-16 18:35:34 +03:00
Philip Taron
e3b810434b minimal-bootstrap: trim static outputs (#522894) 2026-06-11 06:16:21 +00:00
Aliaksandr
0bc798232d minimal-bootstrap: trim bzip2-static output
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
2026-06-08 00:09:39 +03:00
Aliaksandr
4114a35469 minimal-bootstrap: split aggregate tests
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
2026-06-07 23:27:04 +03:00
Ricardo Correia
c81db54284 minimal-bootstrap.gnumake-musl: fix build
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)
2026-06-06 14:04:58 +00:00
Eman Resu
c546655fb0 check-meta: only take hostPlatform for functions requiring it
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.
2026-05-29 16:51:26 -04:00
Aleksi Hannula
2c2602cabd minimal-bootstrap.busybox-static: drop 2026-03-05 12:40:20 +02:00
Aleksi Hannula
5500570e9f stdenv: refactor to hook up minimal-bootstrap 2026-01-26 21:45:18 +02:00
Aleksi Hannula
bb79e972f9 minimal-bootstrap.musl-static: init at 1.2.5 2026-01-26 21:45:18 +02:00
Aleksi Hannula
32d0401736 minimal-bootstrap.xz-static: init at 5.4.3 2026-01-26 21:45:18 +02:00
Aleksi Hannula
ab04cbf74b minimal-bootstrap.musl-tcc: 1.1.24 -> 1.2.5 2026-01-14 22:47:35 +02:00
Aleksi Hannula
5c3ae8e8cc minimal-bootstrap: allow building through pkgsMusl 2026-01-14 22:47:35 +02:00
Aleksi Hannula
f76e37718d minimal-bootstrap: address gawk-mes FIXME
Ordinary gawk seems to work just fine, so we can remove this override.
2026-01-14 22:47:35 +02:00
Aleksi Hannula
6385e6b5c3 minimal-bootstrap: gcc8 -> gcc10 2026-01-14 22:47:34 +02:00
Aleksi Hannula
7922558946 minimal-bootstrap.gcc-glibc: init at 13.2.0 2026-01-12 16:04:54 +02:00
Emily Trau
f2d7930395 minimal-bootstrap.bash-static: init at 5.2.15 2025-12-17 12:41:19 -05:00
Emily Trau
4049a1478f minimal-bootstrap.patchelf-static: init at 0.18.0 2025-12-17 12:41:19 -05:00
Emily Trau
eb6206413b minimal-bootstrap.bzip2-static: init at 1.0.8 2025-12-17 12:41:19 -05:00
Emily Trau
97370d4eab minimal-bootstrap.gzip-static: init at 1.13 2025-12-17 12:41:19 -05:00
Emily Trau
ba4c121062 minimal-bootstrap.gnupatch-static: init at 2.8 2025-12-17 12:41:19 -05:00
Emily Trau
12fbd92c7e minimal-bootstrap.gnumake-static: init at 4.4.1 2025-12-17 12:41:19 -05:00
Emily Trau
e20d10e02b minimal-bootstrap.findutils-static: init at 4.9.0 2025-12-17 12:41:19 -05:00
Emily Trau
5d403f7f0d minimal-bootstrap.diffutils-static: init at 3.12 2025-12-17 12:41:19 -05:00
Emily Trau
e336b7c768 minimal-bootstrap.gnused-static: init at 4.9 2025-12-17 12:41:19 -05:00
Emily Trau
bac6125f3e minimal-bootstrap.glibc: init at 2.38 2025-12-17 12:41:19 -05:00
Emily Trau
395cfc24a6 minimal-bootstrap.gawk-static: init at 5.3.2 2025-12-17 12:41:19 -05:00
Emily Trau
58ed7d66a6 minimal-bootstrap.gnugrep-static: init at 3.11 2025-12-17 12:41:18 -05:00
Emily Trau
298517c1d6 minimal-bootstrap.busybox-static: init at 1.36.1 2025-12-17 12:41:18 -05:00
Emily Trau
d5454dc3f2 minimal-bootstrap.linux-headers: 4.14.67 -> 6.5.6, build from source 2025-12-17 12:41:18 -05:00
Emily Trau
ab71959982 minimal-bootstrap.bison: init at 3.8.2 2025-12-17 12:41:18 -05:00
Emily Trau
7337fbcf70 minimal-bootstrap.gnum4: init at 1.4.20 2025-12-17 12:41:18 -05:00
Emily Trau
62d8287bcf minimal-bootstrap.python: init at 3.13.7 2025-12-17 12:41:18 -05:00
Emily Trau
43b2d79f7a minimal-bootstrap.zlib: init at 1.3.1 2025-12-17 12:41:18 -05:00
Emily Trau
f50c0e7c8c minimal-bootstrap.binutils-static: init at 2.41 2025-12-17 12:41:18 -05:00
Emily Trau
5e289682c9 minimal-bootstrap.gnutar-static: init at 1.35 2025-12-17 12:41:18 -05:00
Emily Trau
b707bde4ea minimal-bootstrap.coreutils-static: init at 9.4 2025-12-17 12:39:55 -05:00
Aleksi Hannula
7296e7958d minimal-bootstrap: Finish x86_64-linux support
- 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
2025-12-13 11:27:13 +02:00
Aleksi Hannula
60cbef83e0 minimal-bootstrap.musl: Support x86_64-linux
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.
2025-12-13 11:27:13 +02:00
dish
6bcba60b3d minimal-bootstrap.musl11: Fix build with newer tcc 2025-12-10 23:22:30 -05:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
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
2024-12-10 20:26:33 +01:00
Emily Trau
3dcd819caa minimal-bootstrap.mes: 0.24.2 -> 0.25 2023-11-22 10:49:51 +00:00
Emily Trau
4f62cc0388 minimal-bootstrap.*: improve parallelisation using newer bash version 2023-10-23 01:08:17 +00:00
Emily Trau
6eb660c22f minimal-bootstrap: remove glibc and gcc2
These components aren't needed in the dependency chain anymore but take significant time to build in `minimal-bootstrap.test`
2023-10-08 16:50:10 -07:00
Emily Trau
936f9cc504 minimal-bootstrap.gcc-latest: init at 13.2.0 2023-10-07 18:20:25 -07:00