doc: Update bootstrap-related info in `HACKING'.

This commit is contained in:
Ludovic Courtès 2013-06-09 15:24:24 +02:00
parent 7bc5cc2b96
commit e0b2737583

View file

@ -142,7 +142,7 @@ problem? Chicken-and-egg.
To break that cycle, the distro starts from a set of pre-built To break that cycle, the distro starts from a set of pre-built
binariesusually referred to as “bootstrap binaries.” These include binariesusually referred to as “bootstrap binaries.” These include
statically-linked versions of Guile, GCC, Coreutils, Make, Grep, sed, statically-linked versions of Guile, GCC, Coreutils, Grep, sed,
etc., and the GNU C Library. etc., and the GNU C Library.
This section describes how to build those bootstrap binaries when This section describes how to build those bootstrap binaries when
@ -154,7 +154,7 @@ In that case, the easiest thing is to bootstrap the distro using
binaries from Nixpkgs. binaries from Nixpkgs.
To do that, you need to comment out the definitions of To do that, you need to comment out the definitions of
%bootstrap-guile and %bootstrap-inputs in distro/packages/bootstrap.scm %bootstrap-guile and %bootstrap-inputs in gnu/packages/bootstrap.scm
to force the use of Nixpkgs derivations. For instance, when porting to to force the use of Nixpkgs derivations. For instance, when porting to
i686-linux, you should redefine these variables along these lines: i686-linux, you should redefine these variables along these lines:
@ -190,10 +190,10 @@ These should build tarballs containing statically-linked tools usable on
that system. that system.
In the source tree, you need to install binaries for mkdir, bash, In the source tree, you need to install binaries for mkdir, bash,
tar, and xz under distro/packages/bootstrap/i686-linux. These tar, and xz under gnu/packages/bootstrap/i686-linux. These
binaries can be extracted from the static-binaries tarball built above. binaries can be extracted from the static-binaries tarball built above.
A rule for distro/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz A rule for gnu/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz
needs to be added in Makefile.am, with the appropriate hexadecimal needs to be added in Makefile.am, with the appropriate hexadecimal
vrepresentation of its SHA256 hash. vrepresentation of its SHA256 hash.