From f6820bb618ca967b074779498540bdc862de0c64 Mon Sep 17 00:00:00 2001 From: David Bryant Date: Sun, 30 Oct 2022 09:23:55 -0500 Subject: Corrected spelling here and there. Regularized capitaization of package names, corrected idiom / punctuation, and removed extraneous verbiage. --- chapter05/glibc.xml | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'chapter05/glibc.xml') diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml index 7b118c540..6b78031bc 100644 --- a/chapter05/glibc.xml +++ b/chapter05/glibc.xml @@ -58,13 +58,13 @@ esac The above command is correct. The ln command has - a few syntactic versions, so be sure to check + several syntactic versions, so be sure to check info coreutils ln and ln(1) - before reporting what you may think is an error. + before reporting what may appear to be an error. - Some of the Glibc programs use the non-FHS compliant + Some of the Glibc programs use the non-FHS-compliant /var/db directory to store their runtime data. Apply the following patch to make such programs store their runtime data in the FHS-compliant locations: @@ -128,7 +128,7 @@ cd build libc_cv_slibdir=/usr/lib This ensures that the library is installed in /usr/lib instead - of the default /lib64 on 64 bit machines. + of the default /lib64 on 64-bit machines. @@ -146,11 +146,11 @@ cd build The missing or incompatible msgfmt program is generally harmless. This msgfmt program is part of the - Gettext package which the host distribution should provide. + Gettext package, which the host distribution should provide. There have been reports that this package may fail when - building as a "parallel make". If this occurs, rerun the make command - with a "-j1" option. + building as a "parallel make". If that occurs, rerun the make command + with the "-j1" option. Compile the package: @@ -161,9 +161,9 @@ cd build If LFS is not properly set, and despite the recommendations, you are building as root, the next command will - install the newly built glibc to your host system, which most likely - will render it unusable. So double check that the environment is - correctly set, before running the following command. + install the newly built Glibc to your host system, which will almost + certainly render it unusable. So double-check that the environment is + correctly set, and that you are not &root;, before running the following command. make DESTDIR=$LFS install @@ -177,15 +177,15 @@ cd build packages to define the location where the package should be installed. If it is not set, it defaults to the root (/) directory. Here we specify that - the package be installed in $LFS - , which will become the root after $LFS + , which will become the root directory in . - Fix hardcoded path to the executable loader in + Fix a hard coded path to the executable loader in the ldd script: sed '/RTLDLIST=/s@/usr@@g' -i $LFS/usr/bin/ldd @@ -206,10 +206,10 @@ readelf -l a.out | grep ld-linux Note that for 32-bit machines, the interpreter name will be /lib/ld-linux.so.2. - If the output is not shown as above or there was no output at all, + If the output is not as shown above, or there is no output at all, then something is wrong. Investigate and retrace the steps to find out where the problem is and correct it. This issue must be resolved before - continuing on. + continuing. Once all is well, clean up the test file: @@ -217,14 +217,14 @@ readelf -l a.out | grep ld-linux - Building packages in the next chapter will serve as an + Building the packages in the next chapter will serve as an additional check that the toolchain has been built properly. If some - package, especially binutils-pass2 or gcc-pass2, fails to build, it is + package, especially Binutils-pass2 or GCC-pass2, fails to build, it is an indication that something has gone wrong with the - previous Binutils, GCC, or Glibc installations. + preceding Binutils, GCC, or Glibc installations. Now that our cross-toolchain is complete, finalize the installation - of the limits.h header. For doing so, run a utility provided by the GCC + of the limits.h header. To do this, run a utility provided by the GCC developers: $LFS/tools/libexec/gcc/$LFS_TGT/&gcc-version;/install-tools/mkheaders -- cgit v1.2.3-54-g00ecf