aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/shellutils-inst.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05/shellutils-inst.xml')
-rw-r--r--chapter05/shellutils-inst.xml19
1 files changed, 12 insertions, 7 deletions
diff --git a/chapter05/shellutils-inst.xml b/chapter05/shellutils-inst.xml
index 5f83c1a80..cce9c707b 100644
--- a/chapter05/shellutils-inst.xml
+++ b/chapter05/shellutils-inst.xml
@@ -1,19 +1,24 @@
<sect2>
<title>Installation of Sh-utils</title>
-<para>Before Sh-utils is installed, the sh-utils patch file needs
-to be unpacked.</para>
+<para>Before Sh-utils is installed, the sh-utils patch file may need to
+be applied. This patch is needed to avoid a conflict of variable names
+with certain Glibc verions (usually glibc-2.1.x) when compiling sh-utils
+statically. It is however safe to apply the patch even if you are
+running a different glibc version, so if you aren't sure, it's
+best to apply it.</para>
-<para><screen><userinput>patch -Np1 -i ../sh-utils-&sh-utils-version;.patch &amp;&amp;</userinput>
-<userinput>./configure --prefix=$LFS/usr --disable-nls &amp;&amp;</userinput>
+<para>Apply the patch by running the following command:</para>
+
+<para><screen><userinput>patch -Np1 -i ../sh-utils-&sh-utils-version;.patch</userinput></screen></para>
+
+<para>Install Sh-utils by running the following commands:</para>
+<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &amp;&amp;</userinput>
<userinput>make LDFLAGS=-static &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput>
<userinput>cd $LFS/usr/bin &amp;&amp;</userinput>
<userinput>mv date echo false pwd stty $LFS/bin &amp;&amp;</userinput>
<userinput>mv su true uname hostname $LFS/bin</userinput></screen></para>
-<para>The patch file only needs to be applied if you are running
-glibc-2.1.x on your base system.</para>
-
</sect2>