aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05')
-rw-r--r--chapter05/chapter05.xml1
-rw-r--r--chapter05/diffutils-inst.xml16
-rw-r--r--chapter05/gawk-inst.xml21
-rw-r--r--chapter05/grep-inst.xml17
-rw-r--r--chapter05/gzip-inst.xml11
-rw-r--r--chapter05/oldnsslib.xml20
-rw-r--r--chapter05/patch-inst.xml3
-rw-r--r--chapter05/sed-inst.xml16
-rw-r--r--chapter05/shellutils-inst.xml11
9 files changed, 9 insertions, 107 deletions
diff --git a/chapter05/chapter05.xml b/chapter05/chapter05.xml
index 406678adf..efe68d07a 100644
--- a/chapter05/chapter05.xml
+++ b/chapter05/chapter05.xml
@@ -24,7 +24,6 @@
&c5-texinfo;
&c5-textutils;
&c5-pwdgroup;
-&c5-oldnsslib;
&c5-proc;
</chapter>
diff --git a/chapter05/diffutils-inst.xml b/chapter05/diffutils-inst.xml
index c606e0db9..a4af5074d 100644
--- a/chapter05/diffutils-inst.xml
+++ b/chapter05/diffutils-inst.xml
@@ -1,22 +1,10 @@
<sect2>
<title>Installation of Diffutils</title>
-<para>When installing Diffutils using glibc-2.1.x on your base system, it may
-be necessary to use a fix to prevent a variable name conflict. The
-following commands can be used in this case. Note that these commands
-can also be used for other glibc versions so if you aren't sure, then
-use the first version.</para>
+<para>Install Diffutils by running the following commands:</para>
-<para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 &amp;&amp;
+<para><screen><userinput>CPPFLAGS=-Dre_max_failures=re_max_failures2 \
./configure --prefix=$LFS/usr --disable-nls &amp;&amp;
-unset CPPFLAGS &amp;&amp;
-make LDFLAGS=-static &amp;&amp;
-make install</userinput></screen></para>
-
-<para>If you are using a newer glibc version (2.2.x), you can use the following
-commands to install Diffutils:</para>
-
-<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &amp;&amp;
make LDFLAGS=-static &amp;&amp;
make install</userinput></screen></para>
diff --git a/chapter05/gawk-inst.xml b/chapter05/gawk-inst.xml
index 7d10b61cd..81c923fb3 100644
--- a/chapter05/gawk-inst.xml
+++ b/chapter05/gawk-inst.xml
@@ -11,30 +11,13 @@ class="directory">libexec</filename> directory to <filename
class="directory">/usr/bin</filename> it'll run <userinput>rm -rf
/usr/bin/*</userinput></para>
-<para>When installing Gawk using glibc-2.1.x on your base system,
-it may be necessary to use a fix to prevent a variable name conflict. The
-following commands can be used in this case. Note that these commands
-can also be used for other glibc versions so if you aren't sure, then
-use the first version.</para>
-
-<para><screen><userinput>cp awklib/Makefile.in awklib/Makefile.in.backup &amp;&amp;
-sed -e '/^datadir/s/awk/gawk/' \
--e '/^libexecdir/s%/awk%%' awklib/Makefile.in.backup \
-&nbsp;&nbsp;&nbsp;&gt; awklib/Makefile.in &amp;&amp;
-export CPPFLAGS=-Dre_max_failures=re_max_failures2 &amp;&amp;
-./configure --prefix=$LFS/usr --disable-nls \
-&nbsp;&nbsp;&nbsp;--libexecdir=$LFS/usr/bin &amp;&amp;
-unset CPPFLAGS &amp;&amp;
-make LDFLAGS=-static &amp;&amp;
-make install</userinput></screen></para>
-
-<para>If you are using a newer glibc version (2.2.x), you can use the
-following commands to install Gawk:</para>
+<para>Install Gawk by running the following commands:</para>
<para><screen><userinput>cp awklib/Makefile.in awklib/Makefile.in.backup &amp;&amp;
sed -e '/^datadir/s/awk/gawk/' \
-e '/^libexecdir/s%/awk%%' awklib/Makefile.in.backup \
&nbsp;&nbsp;&nbsp;&gt; awklib/Makefile.in &amp;&amp;
+CPPFLAGS=-Dre_max_failures=re_max_failures2 \
./configure --prefix=$LFS/usr --disable-nls \
&nbsp;&nbsp;&nbsp;--libexecdir=$LFS/usr/bin &amp;&amp;
make LDFLAGS=-static &amp;&amp;
diff --git a/chapter05/grep-inst.xml b/chapter05/grep-inst.xml
index 62244f357..305775029 100644
--- a/chapter05/grep-inst.xml
+++ b/chapter05/grep-inst.xml
@@ -1,24 +1,11 @@
<sect2>
<title>Installation of Grep</title>
-<para>When installing Grep using glibc-2.1.x on your base system,
-it may be necessary to use a fix to prevent a variable name conflict. The
-following commands can be used in this case. Note that these commands
-can also be used for other glibc versions so if you aren't sure, then
-use the first version.</para>
+<para>Install Grep by running the following commands:</para>
-<para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 &amp;&amp;
+<para><screen><userinput>CPPFLAGS=-Dre_max_failures=re_max_failures2 \
./configure --prefix=$LFS/usr --bindir=$LFS/bin \
&nbsp;&nbsp;&nbsp;--disable-nls --disable-perl-regexp &amp;&amp;
-unset CPPFLAGS &amp;&amp;
-make LDFLAGS=-static &amp;&amp;
-make install</userinput></screen></para>
-
-<para>If you are using a newer glibc version (2.2.x), you can use the
-following commands to install Grep:</para>
-
-<para><screen><userinput>./configure --prefix=$LFS/usr --bindir=$LFS/bin \
-&nbsp;&nbsp;&nbsp;--disable-nls --disable-perl-regexp &amp;&amp;
make LDFLAGS=-static &amp;&amp;
make install</userinput></screen></para>
diff --git a/chapter05/gzip-inst.xml b/chapter05/gzip-inst.xml
index d12031710..912af3ba3 100644
--- a/chapter05/gzip-inst.xml
+++ b/chapter05/gzip-inst.xml
@@ -1,17 +1,6 @@
<sect2>
<title>Installation of Gzip</title>
-<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>Apply the patch by running the following command:</para>
-
-<para><screen><userinput>patch -Np1 -i ../gzip-&gzip-version;.patch</userinput></screen></para>
-
<para>Install Gzip by running the following commands:</para>
<para><screen><userinput>./configure --prefix=$LFS/usr &amp;&amp;
diff --git a/chapter05/oldnsslib.xml b/chapter05/oldnsslib.xml
deleted file mode 100644
index 7fb17146b..000000000
--- a/chapter05/oldnsslib.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<sect1 id="ch05-oldnsslib">
-<title>Copying old NSS library files</title>
-<?dbhtml filename="oldnsslib.html" dir="chapter05"?>
-
-<para>If your normal Linux system runs Glibc-2.0, you need to copy the NSS
-library files to the LFS partition. Certain statically linked programs still
-depend on the NSS library, especially programs that need to lookup
-usernames, userid's and groupid's. You can check which C library version your
-normal Linux system uses by simply executing the library, like this:</para>
-
-<para><screen><userinput>/lib/libc.so.6</userinput></screen></para>
-
-<para>The first line will give you the release version. Following lines contain
-interesting information. If you have Glibc-2.0.x installed on your starting
-distribution, copy the NSS library files by running:</para>
-
-<para><screen><userinput>cp -av /lib/libnss* $LFS/lib</userinput></screen></para>
-
-</sect1>
-
diff --git a/chapter05/patch-inst.xml b/chapter05/patch-inst.xml
index 215ad9723..89512820a 100644
--- a/chapter05/patch-inst.xml
+++ b/chapter05/patch-inst.xml
@@ -3,9 +3,8 @@
<para>Install Patch by running the following commands:</para>
-<para><screen><userinput>export CPPFLAGS=-D_GNU_SOURCE &amp;&amp;
+<para><screen><userinput>CPPFLAGS=-D_GNU_SOURCE \
./configure --prefix=$LFS/usr &amp;&amp;
-unset CPPFLAGS &amp;&amp;
make LDFLAGS=-static &amp;&amp;
make install</userinput></screen></para>
diff --git a/chapter05/sed-inst.xml b/chapter05/sed-inst.xml
index 377fd3d6a..38ed00dc7 100644
--- a/chapter05/sed-inst.xml
+++ b/chapter05/sed-inst.xml
@@ -1,22 +1,10 @@
<sect2>
<title>Installation of Sed</title>
-<para>When installing Sed using glibc-2.1.x on your base system,
-it may be necessary to use a fix to prevent a variable name conflict. The
-following commands can be used in this case. Note that these commands
-can also be used for other glibc versions so if you aren't sure, then
-use the first version.</para>
+<para>Install Sed by running the following commands:</para>
-<para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 &amp;&amp;
+<para><screen><userinput>CPPFLAGS=-Dre_max_failures=re_max_failures2 \
./configure --prefix=$LFS/usr --bindir=$LFS/bin &amp;&amp;
-unset CPPFLAGS &amp;&amp;
-make LDFLAGS=-static &amp;&amp;
-make install</userinput></screen></para>
-
-<para>If you are using a newer glibc version (2.2.x), you can use the
-following commands to install Sed:</para>
-
-<para><screen><userinput>./configure --prefix=$LFS/usr --bindir=$LFS/bin &amp;&amp;
make LDFLAGS=-static &amp;&amp;
make install</userinput></screen></para>
diff --git a/chapter05/shellutils-inst.xml b/chapter05/shellutils-inst.xml
index 624964af8..74602382a 100644
--- a/chapter05/shellutils-inst.xml
+++ b/chapter05/shellutils-inst.xml
@@ -1,17 +1,6 @@
<sect2>
<title>Installation of Sh-utils</title>
-<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 versions (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>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;