- Timestamp:
- 08/16/2001 09:16:55 PM (23 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v3_0, v3_1, v3_2, v3_3, v4_0, v4_1, v5_0, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 987aa00
- Parents:
- 1fda654
- Location:
- chapter06
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/glibc-exp.xml
r1fda654 rea57e1b 1 1 <sect2> 2 2 <title>Command explanations</title> 3 4 <para><userinput>patch -Np0 -i ../glibc-2.2.3-nss.diff</userinput>: This5 patch is needed to fix a couple of nasty nis bugs in glibc which can6 cause problems.</para>7 3 8 4 <para><userinput>mknod -m 0666 /dev/null c 1 3:</userinput> Glibc needs a … … 18 14 19 15 <para><userinput>sed 's|$(PERL)|/usr/bin/perl|' 20 ../glibc- 2.2.3/malloc/Makefile > tmp~:</userinput> This sed command21 searches through <filename>../glibc- 2.2.3/malloc/Makefile</filename> and16 ../glibc-&glibc-version;/malloc/Makefile > tmp~:</userinput> This sed command 17 searches through <filename>../glibc-&glibc-version;/malloc/Makefile</filename> and 22 18 converts all occurances of <filename>$(PERL)</filename> to 23 19 <filename>/usr/bin/perl</filename>. The output is then written to the … … 26 22 Glibc.</para> 27 23 28 <para><userinput>mv tmp~ ../glibc- 2.2.3/malloc/Makefile:</userinput> The file24 <para><userinput>mv tmp~ ../glibc-&glibc-version;/malloc/Makefile:</userinput> The file 29 25 <filename>tmp~</filename> is now moved back to 30 <filename>../glibc- 2.2.3/malloc/Makefile</filename>. We do this because26 <filename>../glibc-&glibc-version;/malloc/Makefile</filename>. We do this because 31 27 when using sed, we can't write straight back to this file so we need to 32 28 use a temporary file in between.</para> 33 29 34 <para><userinput>sed 's/root/0' ../glibc- 2.2.3/login/Makefile >30 <para><userinput>sed 's/root/0' ../glibc-&glibc-version;/login/Makefile > 35 31 tmp~:</userinput> This sed command replaces all occurances of 36 32 <filename>root</filename> in 37 <filename>../glibc- 2.2.3/login/Makefile</filename> with 0. This is33 <filename>../glibc-&glibc-version;/login/Makefile</filename> with 0. This is 38 34 because as we don't have glibc on the LFS system yet, usernames can't 39 35 be resolved to their user id's. Therefore, we replace the username 40 36 root with the id 0. </para> 41 37 42 <para><userinput>mv tmp~ ../glibc-2.2.3/login/Makefile:</userinput> As above, 43 we are using a temporary file (<filename>tmp~</filename>) to store the 38 <para><userinput>mv tmp~ ../glibc-&glibc-version;/login/Makefile:</userinput> Asabove, we are using a temporary file (<filename>tmp~</filename>) to store the 44 39 edited Makefile and then copying it back over the original.</para> 45 40 -
chapter06/glibc-inst.xml
r1fda654 rea57e1b 2 2 <title>Installation of Glibc</title> 3 3 4 <para>Before starting to install glibc, unpack the glibc-2.2.3-nss.diff 5 file in the $LFS/usr/src tree. Then, once glibc has been unpacked as usual 6 and you have cd'ed into the 7 glibc-&glibc-version; directory, unpack glibc-linuxthreads inside 4 <para>Before starting to install glibc, you must cd into the 5 glibc-&glibc-version; directory and unpack glibc-linuxthreads inside 8 6 the glibc-&glibc-version; directory, not in /usr/src as you normally 9 7 would do.</para> … … 11 9 <para>Install Glibc by running the following commands:</para> 12 10 13 <para><screen><userinput>patch -Np0 -i ../glibc-2.2.3-nss.diff &&</userinput> 14 <userinput>mknod -m 0666 /dev/null c 1 3 &&</userinput> 11 <para><screen><userinput>mknod -m 0666 /dev/null c 1 3 &&</userinput> 15 12 <userinput>touch /etc/ld.so.conf &&</userinput> 16 13 <userinput>mkdir ../glibc-build &&</userinput>
Note:
See TracChangeset
for help on using the changeset viewer.