Commit Graph

12 Commits

Author SHA1 Message Date
Jo
436f223d43 minimal-bootstrap: Package updates (#547879) 2026-08-11 05:44:33 +00:00
Ben Siraphob
96aae45403 minimal-bootstrap.binutils-static: restore static linking 2026-08-05 11:46:21 -07:00
Aleksi Hannula
920d9cd882 minimal-bootstrap.binutils{,-static}: 2.46.0 -> 2.47 2026-07-31 20:57:38 +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
Aliaksandr
ffe5913f56 minimal-bootstrap: trim binutils-static output
Drop unused installed libraries and headers, avoid building unused gprof/libctf components, and replace duplicate target-prefixed tools with symlinks while keeping the conventional paths available.

Size impact against upstream/staging:

- binutils-static closure: 42.482 MiB -> 21.093 MiB (-21.389 MiB)

Assisted-by: codex with gpt-5.5-high
2026-06-08 00:09:36 +03:00
Ben Siraphob
08521f3b58 minimal-bootstrap.binutils: --disable-{gold,plugins} 2026-05-06 17:34:32 +00: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
b432ceda71 minimal-bootstrap.binutils-static: 2.45.1 -> 2.46.0 2026-03-05 12:40:20 +02:00
Aleksi Hannula
37b28b8958 minimal-bootstrap: speed up ./configure
By default, stdenv runs configure using --disable-dependency-tracking.
This commit adds the same flag to most manual invocations of autotools
configure scripts in minimal-bootstrap.

However, the flag does not apply to musl & zlib, which come with
handwritten configure scripts. It also does not apply to Python, where
the dependency tracking feature is already disabled in automake config.
2026-01-14 22:47:35 +02:00
Aleksi Hannula
8197b44fe2 minimal-bootstrap.binutils-static: 2.41 -> 2.45.1 2026-01-14 22:47:30 +02:00
Emily Trau
f50c0e7c8c minimal-bootstrap.binutils-static: init at 2.41 2025-12-17 12:41:18 -05:00