aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06')
-rw-r--r--chapter06/bash.xml2
-rw-r--r--chapter06/coreutils.xml12
-rw-r--r--chapter06/file.xml3
-rw-r--r--chapter06/gcc-pass2.xml9
-rw-r--r--chapter06/introduction.xml6
-rw-r--r--chapter06/ncurses.xml10
-rw-r--r--chapter06/tar.xml3
-rw-r--r--chapter06/xz.xml7
8 files changed, 24 insertions, 28 deletions
diff --git a/chapter06/bash.xml b/chapter06/bash.xml
index 92627e92c..bc0b211af 100644
--- a/chapter06/bash.xml
+++ b/chapter06/bash.xml
@@ -74,7 +74,7 @@
<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
- <para>Move the excutable to where it is expected to be:</para>
+ <para>Move the excutable to where it is expected:</para>
<screen><userinput remap="install">mv $LFS/usr/bin/bash $LFS/bin/bash</userinput></screen>
diff --git a/chapter06/coreutils.xml b/chapter06/coreutils.xml
index 378abebff..3ae765e85 100644
--- a/chapter06/coreutils.xml
+++ b/chapter06/coreutils.xml
@@ -84,13 +84,13 @@
programs harcode executable locations:</para>
<screen><userinput remap="install">mv -v $LFS/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} $LFS/bin
-mv -v $LFS/usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} $LFS/bin
-mv -v $LFS/usr/bin/{rmdir,stty,sync,true,uname} $LFS/bin
-mv -v $LFS/usr/bin/chroot $LFS/usr/sbin
+mv -v $LFS/usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} $LFS/bin
+mv -v $LFS/usr/bin/{rmdir,stty,sync,true,uname} $LFS/bin
+mv -v $LFS/usr/bin/{head,nice,sleep,touch} $LFS/bin
+mv -v $LFS/usr/bin/chroot $LFS/usr/sbin
mkdir -pv $LFS/usr/share/man/man8
-mv -v $LFS/usr/share/man/man1/chroot.1 $LFS/usr/share/man/man8/chroot.8
-sed -i s/\"1\"/\"8\"/1 $LFS/usr/share/man/man8/chroot.8
-mv -v $LFS/usr/bin/{head,nice,sleep,touch} $LFS/bin</userinput></screen>
+mv -v $LFS/usr/share/man/man1/chroot.1 $LFS/usr/share/man/man8/chroot.8
+sed -i 's/"1"/"8"/' $LFS/usr/share/man/man8/chroot.8</userinput></screen>
</sect2>
diff --git a/chapter06/file.xml b/chapter06/file.xml
index 83a473b70..a13553b19 100644
--- a/chapter06/file.xml
+++ b/chapter06/file.xml
@@ -45,8 +45,7 @@
<para>Prepare File for compilation:</para>
-<screen><userinput remap="configure">./configure --prefix=/usr \
- --host=$LFS_TGT</userinput></screen>
+<screen><userinput remap="configure">./configure --prefix=/usr --host=$LFS_TGT</userinput></screen>
<!-- devs: if using - -build here, the build system wants to compile
the signature file with "file" on the build system, but stops if it is not
diff --git a/chapter06/gcc-pass2.xml b/chapter06/gcc-pass2.xml
index 7f7d7a021..a5b7f1a26 100644
--- a/chapter06/gcc-pass2.xml
+++ b/chapter06/gcc-pass2.xml
@@ -59,8 +59,7 @@ mv -v mpc-&mpc-version; mpc</userinput></screen>
<screen><userinput remap="pre">case $(uname -m) in
x86_64)
- sed -e '/m64=/s/lib64/lib/' \
- -i.orig gcc/config/i386/t-linux64
+ sed -e '/m64=/s/lib64/lib/' -i.orig gcc/config/i386/t-linux64
;;
esac</userinput></screen>
@@ -74,7 +73,7 @@ esac</userinput></screen>
<screen><userinput remap="pre">mkdir -v build
cd build</userinput></screen>
- <para>Create a symlink that allos libgcc to be built with posix threads
+ <para>Create a symlink that allows libgcc to be built with posix threads
support:</para>
<screen><userinput remap="pre">mkdir -pv $LFS_TGT/libgcc
@@ -109,7 +108,7 @@ ln -s ../../../libgcc/gthr-posix.h $LFS_TGT/libgcc/gthr-default.h</userinput></s
<varlistentry>
<term><parameter>-with-build-sysroot=$LFS</parameter></term>
<listitem>
- <para>Normally, using <parameter>--host=</parameter> ensures that
+ <para>Normally, using <parameter>--host</parameter> ensures that
a cross-compiler is used for building gcc, and that compiler knows
that it has to look for headers and libraries in <filename
class="directory">$LFS</filename>. But the build system of GCC uses
@@ -138,7 +137,7 @@ ln -s ../../../libgcc/gthr-posix.h $LFS_TGT/libgcc/gthr-default.h</userinput></s
<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
- <para>As a finishing touch, create a symlink. Many programs and scripts
+ <para>As a finishing touch, create a utility symlink. Many programs and scripts
run <command>cc</command> instead of <command>gcc</command>, which is
used to keep programs generic and therefore usable on all kinds of UNIX
systems where the GNU C compiler is not always installed. Running
diff --git a/chapter06/introduction.xml b/chapter06/introduction.xml
index cfc8befc5..ed8000fa8 100644
--- a/chapter06/introduction.xml
+++ b/chapter06/introduction.xml
@@ -13,13 +13,13 @@
<para>This chapter shows how to cross-compile basic utilities using
the just built cross-toolchain. Those utilities are installed into
their final location, but cannot be used yet. Basic tasks still rely on
- the hosts tools. Nevertheless, the installed libraries are used when
+ the host's tools. Nevertheless, the installed libraries are used when
linking.</para>
<para>Using the utilities will be possible in next chapter after entering
the <quote>chroot</quote> environment. But all the packages built in the
- present chapter need themselves to be built. So we cannot be independent
- on the build system yet.</para>
+ present chapter need to be built before we do that. Therefore we cannot be
+ independent of the host system yet.</para>
<para>Once again, let us recall that improper setting of <envar>LFS</envar>
together with building as root, may render your computer unusable.
diff --git a/chapter06/ncurses.xml b/chapter06/ncurses.xml
index 93cf85263..d96d7d0f3 100644
--- a/chapter06/ncurses.xml
+++ b/chapter06/ncurses.xml
@@ -51,11 +51,11 @@
program on the build host:</para>
<screen><userinput remap="pre">mkdir build
-cd build
-../configure
-make -C include
-make -C progs tic
-cd ..</userinput></screen>
+pushd build
+ ../configure
+ make -C include
+ make -C progs tic
+popd</userinput></screen>
<para>Prepare Ncurses for compilation:</para>
diff --git a/chapter06/tar.xml b/chapter06/tar.xml
index ff2008e28..e64379fc5 100644
--- a/chapter06/tar.xml
+++ b/chapter06/tar.xml
@@ -63,8 +63,7 @@
<sect2 role="content">
<title/>
- <para>Details on this package are located in
- <xref linkend="contents-tar" role="."/></para>
+ <para>Details on this package are located in <xref linkend="contents-tar" role="."/></para>
</sect2>
diff --git a/chapter06/xz.xml b/chapter06/xz.xml
index 9e2d0da4b..428053ed1 100644
--- a/chapter06/xz.xml
+++ b/chapter06/xz.xml
@@ -61,16 +61,15 @@
<para>Make sure that all essential files are in the correct directory:</para>
-<screen><userinput remap="install">mv -v $LFS/usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat} $LFS/bin
-mv -v $LFS/usr/lib/liblzma.so.* $LFS/lib
+<screen><userinput remap="install">mv -v $LFS/usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat} $LFS/bin
+mv -v $LFS/usr/lib/liblzma.so.* $LFS/lib
ln -svf ../../lib/$(readlink $LFS/usr/lib/liblzma.so) $LFS/usr/lib/liblzma.so</userinput></screen>
</sect2>
<sect2 role="content">
<title/>
- <para>Details on this package are located in<!-- TODO
- <xref linkend="contents-xz" role="."/> --></para>
+ <para>Details on this package are located in <xref linkend="contents-xz" role="."/></para>
</sect2>