aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/glibc-exp.xml
diff options
context:
space:
mode:
authorGerard Beekmans <gerard@linuxfromscratch.org>2002-05-30 11:51:27 +0000
committerGerard Beekmans <gerard@linuxfromscratch.org>2002-05-30 11:51:27 +0000
commit3b3e965d2933fadf3933216cbf53373f7cfa1b8a (patch)
treed4c5aad73b462158b2b9751fa306375c9c0e0f2b /chapter06/glibc-exp.xml
parentca6391e6590484cfb50a436acd844cd199b9e5d5 (diff)
Fix bug #316 - replace sed's with patches. Done for c5-fileutils, c6-glibc, c6-gawk and c6-ed
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1947 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/glibc-exp.xml')
-rw-r--r--chapter06/glibc-exp.xml28
1 files changed, 12 insertions, 16 deletions
diff --git a/chapter06/glibc-exp.xml b/chapter06/glibc-exp.xml
index bd2bab1d2..6efbae47a 100644
--- a/chapter06/glibc-exp.xml
+++ b/chapter06/glibc-exp.xml
@@ -1,28 +1,24 @@
<sect2>
<title>Command explanations</title>
+<para><userinput>patch -Np1 -i ../glibc-&glibc-version;.patch:</userinput>
+This patch converts all occurances of <filename>$(PERL)</filename> to
+<filename>/usr/bin/perl</filename> in the
+<filename>malloc/Makefile</filename> file. This is done because Glibc can't
+autodetect the location of perl because perl has yet to be installed. The
+patch also replaces all occurances of <emphasis>root</emphasis> with
+<emphasis>0</emphasis> in the <filename>login/Makefile</filename> file.
+This is done because Glibc itself isn't installed yet and therefore
+username to userid resolving isn't working yet, so a <userinput>chown root
+file</userinput> will fail, however it'll work fine if you use straight
+IDs.</para>
+
<para><userinput>touch /etc/ld.so.conf:</userinput> One of the final steps
of the Glibc installation is running ldconfig to update the dynamic loader
cache. If this file doesn't exist, the installation will abort with an error
that it can't read the file, so we simply create an empty file (the empty
file will have Glibc default to using /lib and /usr/lib which is fine).</para>
-<para><userinput>sed 's%\$(PERL)%/usr/bin/perl%'
-malloc/Makefile.backup &gt; malloc/Makefile:</userinput> This sed command
-searches through <filename>malloc/Makefile.backup</filename> and
-converts all occurrences of <filename>$(PERL)</filename> to
-<filename>/usr/bin/perl</filename>. The output is then written to the
-original <filename>malloc/Makefile.in</filename> which is used during
-configuration. This is done because Glibc can't autodetect perl since
-it hasn't been installed yet.</para>
-
-<para><userinput>sed 's/root/0' login/Makefile.backup &gt;
-login/Makefile:</userinput> This sed command replaces all occurrences of
-<filename>root</filename> in <filename>login/Makefile.backup</filename>
-with 0. This is necessary because we don't have glibc on the LFS system yet, so
-user names can't be resolved to their user IDs. Therefore, we replace
-the user name "root" with user ID 0.</para>
-
<para><userinput>--enable-add-ons:</userinput> This enables the add-on that
we install with Glibc: linuxthreads</para>