Commit Graph

8 Commits

Author SHA1 Message Date
Aleksi Hannula
1f15a58e96 minimal-bootstrap.python: 3.14.4 -> 3.14.6 2026-08-01 09:17:24 +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
Ben Siraphob
23f24b5bc4 minimal-bootstrap: trim python and glibc closure further 2026-04-27 16:22:26 -07:00
Ben Siraphob
b141bb23c9 minimal-bootstrap: post-install trim of locale data, docs, and unused python extensions
Removes content nothing between minimal-bootstrap and stage 4 ever uses: glibc share/i18n + lib/gconv (localedef and iconv() against the bootstrap glibc are never invoked downstream); python lib-dynload/{_decimal,_socket,_asyncio,_hashlib,_blake2,_sha*,_md5,_hmac,CJK codecs,_zoneinfo,_lsprof,syslog} plus idlelib/tkinter/turtle*/ensurepip (glibc's build-time scripts only use os/re/subprocess/argparse/pathlib/collections); binutils bin/{gprof,addr2line,elfedit}; share/{info,man} and gcc share/gcc-*/python (libstdc++ gdb pretty-printers).

Self-size: 940 MB -> ~870 MB. Largest contributors: glibc -38 MB, python -15 MB, binutils -7 MB.
2026-04-26 22:25:28 -07:00
Ben Siraphob
f6bbbded6d minimal-bootstrap: trim configure flags and slim python
Adds --enable-checking=release and --disable-{libgomp,libquadmath,libitm,libvtv,libssp,libatomic,libstdcxx-pch,nls} to all GCCs (those runtime libs are unused by the stdenv); switches gcc-4.6{,cxx} to install-strip; adds --disable-nls to binutils and coreutils; adds --disable-test-modules --without-ensurepip --without-static-libpython to python.

Bootstrap self-size 1.45 GB -> 940 MB; gcc46-cxx -14%, glibc -10%, gcc-latest -6% wall on the heavy builds.

(make -j was tried on tcc-built derivations and broke them silently; NOTE comments left in the affected files so this isn't re-attempted.)
2026-04-26 22:25:28 -07:00
Aleksi Hannula
c6416da9d9 minimal-bootstrap.python: 3.14.2 -> 3.14.4 2026-04-09 12:05:52 +03:00
Aleksi Hannula
b6c48ae41d minimal-bootstrap.python: 3.13.7 -> 3.14.2 2026-01-14 22:47:34 +02:00
Emily Trau
62d8287bcf minimal-bootstrap.python: init at 3.13.7 2025-12-17 12:41:18 -05:00