diff options
author | Mark Hymers <markh@linuxfromscratch.org> | 2001-09-05 22:35:33 +0000 |
---|---|---|
committer | Mark Hymers <markh@linuxfromscratch.org> | 2001-09-05 22:35:33 +0000 |
commit | 1a71dc7d0bb4ef640e3b33dc69b09797f33167e2 (patch) | |
tree | 4672cee13f207caea0eba377dcfc0b0b66b1a7f7 /chapter05 | |
parent | a8fd7985d843d6547b67c98d9341302f12aca60a (diff) |
[Bug 162]: Move patch commands for gzip and sh-utils in ch5 out of main text
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1184 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05')
-rw-r--r-- | chapter05/gzip-exp.xml | 9 | ||||
-rw-r--r-- | chapter05/gzip-inst.xml | 16 | ||||
-rw-r--r-- | chapter05/gzip.xml | 1 | ||||
-rw-r--r-- | chapter05/shellutils-exp.xml | 11 | ||||
-rw-r--r-- | chapter05/shellutils-inst.xml | 19 | ||||
-rw-r--r-- | chapter05/shellutils.xml | 1 |
6 files changed, 24 insertions, 33 deletions
diff --git a/chapter05/gzip-exp.xml b/chapter05/gzip-exp.xml deleted file mode 100644 index 5c3ab225a..000000000 --- a/chapter05/gzip-exp.xml +++ /dev/null @@ -1,9 +0,0 @@ -<sect2> -<title>Command explanations</title> - -<para><userinput>patch -Np1 -i ../gzip-&gzip-version;.patch </userinput> This -patch file is necessary to avoid a conflict of variable names with -Glibc-2.0 systems when compiling and linking statically.</para> - -</sect2> - diff --git a/chapter05/gzip-inst.xml b/chapter05/gzip-inst.xml index 8d19c3cbb..09e431d2d 100644 --- a/chapter05/gzip-inst.xml +++ b/chapter05/gzip-inst.xml @@ -1,11 +1,19 @@ <sect2> <title>Installation of Gzip</title> -<para>Before Gzip is installed, the gzip patch file needs to be -unpacked.</para> +<para>Before Gzip is installed, the patch file may need to be applied. This +patch file is necessary to avoid a conflict of variable names +with Glibc-2.0 systems when compiling and linking statically and so is +only required if your base system runs Glibc-2.0. 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 ../gzip-&gzip-version;.patch &&</userinput> -<userinput>./configure --prefix=$LFS/usr &&</userinput> +<para>Apply the patch by running the following command:</para> + +<para><userinput>patch -Np1 -i ../gzip-&gzip-version;.patch</userinput></para> + +<para>Install Gzip by running the following commands:</para> +<para><screen><userinput>./configure --prefix=$LFS/usr &&</userinput> <userinput>make LDFLAGS=-static &&</userinput> <userinput>make install &&</userinput> <userinput>cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin &&</userinput> diff --git a/chapter05/gzip.xml b/chapter05/gzip.xml index 230b5e698..ef05b08c7 100644 --- a/chapter05/gzip.xml +++ b/chapter05/gzip.xml @@ -5,7 +5,6 @@ Estimated required disk space: &gzip-compsize-static;</screen> &c5-gzip-inst; -&c5-gzip-exp; &aa-gzip-desc; &ab-gzip-dep; diff --git a/chapter05/shellutils-exp.xml b/chapter05/shellutils-exp.xml deleted file mode 100644 index 517a12acd..000000000 --- a/chapter05/shellutils-exp.xml +++ /dev/null @@ -1,11 +0,0 @@ -<sect2> -<title>Command explanations</title> - -<para><userinput>patch -Np1 -i -../sh-utils-&sh-utils-version;.patch</userinput>This -patch is needed to avoid a conflict of variable names with certain Glibc -verions (depending on the way your distributio has patched Glibc) when -compiling sh-utils statically.</para> - -</sect2> - 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 &&</userinput> -<userinput>./configure --prefix=$LFS/usr --disable-nls &&</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 &&</userinput> <userinput>make LDFLAGS=-static &&</userinput> <userinput>make install &&</userinput> <userinput>cd $LFS/usr/bin &&</userinput> <userinput>mv date echo false pwd stty $LFS/bin &&</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> diff --git a/chapter05/shellutils.xml b/chapter05/shellutils.xml index df2cf3500..b9c9beb9a 100644 --- a/chapter05/shellutils.xml +++ b/chapter05/shellutils.xml @@ -5,7 +5,6 @@ Estimated required disk space: &sh-utils-compsize-static;</screen> &c5-shellutils-inst; -&c5-shellutils-exp; &aa-shellutils-desc; &ab-sh-utils-dep; |