Changeset 2ec4b60
- Timestamp:
- 06/07/2004 07:16:21 PM (20 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, 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:
- be8296f6
- Parents:
- 9109cd4
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter01/changelog.xml
r9109cd4 r2ec4b60 105 105 </listitem> 106 106 107 <listitem><para>June 7, 2004 [winkie]: Normalized <quote>sed</quote> usage 108 throughout the book.</para></listitem> 109 107 110 <listitem><para>June 7, 2004 [winkie]: Use the 108 111 <quote>gcc --print-file specs</quote> command to determine the location of the -
chapter05/adjusting.xml
r9109cd4 r2ec4b60 41 41 42 42 <screen><userinput>SPECFILE=`gcc --print-file specs` && 43 sed -e's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g' \43 sed 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g' \ 44 44 $SPECFILE > tempspecfile && 45 45 mv -f tempspecfile $SPECFILE && -
chapter05/udev.xml
r9109cd4 r2ec4b60 43 43 running the following:</para> 44 44 45 <screen><userinput>sed -i 's :\/sbin\/udev:/tools&:' udevstart.c</userinput></screen>45 <screen><userinput>sed -i 's@/sbin/udev@/tools/sbin/udev@g' udevstart.c</userinput></screen> 46 46 47 47 <para>Also assure that udev knows the correct location to look for its 48 48 configuration files:</para> 49 49 50 <screen><userinput>sed -i 's :\/etc:/tools&:' etc/udev/udev.conf.in</userinput></screen>50 <screen><userinput>sed -i 's@/etc@/tools/etc@g' etc/udev/udev.conf.in</userinput></screen> 51 51 52 52 <para>Now compile Udev:</para> -
chapter05/util-linux.xml
r9109cd4 r2ec4b60 37 37 script:</para> 38 38 39 <screen><userinput>sed -i "s@/usr/include@/tools/include@g"configure</userinput></screen>39 <screen><userinput>sed -i 's@/usr/include@/tools/include@g' configure</userinput></screen> 40 40 41 41 <para>Prepare Util-linux for compilation:</para> -
chapter06/gzip.xml
r9109cd4 r2ec4b60 39 39 location gets placed into the script:</para> 40 40 41 <screen><userinput>sed -i 's %"BINDIR"%/bin%' gzexe.in</userinput></screen>41 <screen><userinput>sed -i 's@"BINDIR"@/bin@g' gzexe.in</userinput></screen> 42 42 43 43 <para>Compile the package:</para> -
chapter06/man.xml
r9109cd4 r2ec4b60 41 41 properly handled by Less:</para> 42 42 43 <screen><userinput>sed -i 's /-is/&R/' configure</userinput></screen>43 <screen><userinput>sed -i 's@-is@&R@g' configure</userinput></screen> 44 44 45 45 <para>The third is also a sed substitution to comment out the <quote>MANPATH … … 47 47 redundant results when using programs such as <command>whatis</command>:</para> 48 48 49 <screen><userinput>sed -i 's %MANPATH./usr/man%#&%' src/man.conf.in</userinput></screen>49 <screen><userinput>sed -i 's@MANPATH./usr/man@#&@g' src/man.conf.in</userinput></screen> 50 50 51 51 <para>Now prepare Man for compilation:</para> -
chapter06/readjusting.xml
r9109cd4 r2ec4b60 53 53 <!-- Ampersands are needed to allow cut and paste --> 54 54 55 <screen><userinput>SPECFILE=`gcc --print-file specs` && 56 sed -e 's@ /tools/lib/ld-linux.so.2@ /lib/ld-linux.so.2@g' \ 57 $SPECFILE > newspecfile && 58 mv -f newspecfile $SPECFILE && 59 unset SPECFILE</userinput></screen> 55 <screen><userinput>sed -i 's@ /tools/lib/ld-linux.so.2@ /lib/ld-linux.so.2@g' \ 56 `gcc --print-file specs`</userinput></screen> 60 57 61 58 <para>Again, cutting and pasting the above is recommended. And just like -
chapter06/shadow.xml
r9109cd4 r2ec4b60 67 67 and type it all in):</para> 68 68 69 <screen><userinput> sed -e 's%#MD5_CRYPT_ENAB.no%MD5_CRYPT_ENAB yes%' \70 -e 's%/var/spool/mail%/var/mail%' \71 etc/login.defs.linux >/etc/login.defs</userinput></screen>69 <screen><userinput>cp etc/login.defs.linux /etc/login.defs 70 sed -i -e 's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \ 71 -e 's@/var/spool/mail@/var/mail@' /etc/login.defs</userinput></screen> 72 72 73 73 <para>Move some misplaced symlinks/programs to their proper locations:</para> -
chapter06/sysvinit.xml
r9109cd4 r2ec4b60 37 37 <quote>Sending processes started by init the TERM signal</quote> instead:</para> 38 38 39 <screen><userinput>cp src/init.c{,.backup} 40 sed 's/Sending processes/& started by init/g' \ 41 src/init.c.backup > src/init.c</userinput></screen> 39 <screen><userinput>sed -i 's@Sending processes@& started by init@g' \ 40 src/init.c</userinput></screen> 42 41 43 42 <para>Compile Sysvinit:</para> -
chapter06/util-linux.xml
r9109cd4 r2ec4b60 36 36 program FHS-compliant, run the following:</para> 37 37 38 <screen><userinput>cp hwclock/hwclock.c{,.backup} 39 sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \ 40 hwclock/hwclock.c.backup > hwclock/hwclock.c 38 <screen><userinput>sed -i 's@etc/adjtime@var/lib/hwclock/adjtime@g' hwclock/hwclock.c 41 39 mkdir -p /var/lib/hwclock</userinput></screen> 42 40
Note:
See TracChangeset
for help on using the changeset viewer.