Changeset 8f5efb62
- Timestamp:
- 08/15/2001 12:50:02 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:
- 811364d7
- Parents:
- 2bcd771
- Location:
- chapter06
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/glibc-exp.xml
r2bcd771 r8f5efb62 17 17 right now).</para> 18 18 19 <para><userinput>sed s/"\$(PERL)"/"\/usr\/bin\/perl"/19 <para><userinput>sed 's|$(PERL)|/usr/bin/perl|' 20 20 ../glibc-2.2.3/malloc/Makefile > tmp~:</userinput> This sed command 21 21 searches through <filename>../glibc-2.2.3/malloc/Makefile</filename> and … … 32 32 use a temporary file in between.</para> 33 33 34 <para><userinput>sed "s/root/0"../glibc-2.2.3/login/Makefile >34 <para><userinput>sed 's/root/0' ../glibc-2.2.3/login/Makefile > 35 35 tmp~:</userinput> This sed command replaces all occurances of 36 36 <filename>root</filename> in … … 47 47 we install with Glibc: linuxthreads</para> 48 48 49 <para><userinput>sed s/"cross-compiling = yes"/"cross-compiling = no"/49 <para><userinput>sed 's/cross-compiling = yes/cross-compiling = no/' 50 50 config.make > config.make~:</userinput> This time, we're replacing 51 51 <filename>cross-compiling = yes</filename> with -
chapter06/glibc-inst.xml
r2bcd771 r8f5efb62 16 16 <userinput>mkdir ../glibc-build &&</userinput> 17 17 <userinput>cd ../glibc-build &&</userinput> 18 <userinput>sed s/"\$(PERL)"/"\/usr\/bin\/perl"/\</userinput>18 <userinput>sed 's|$(PERL)|/usr/bin/perl|' \</userinput> 19 19 <userinput> ../glibc-&glibc-version;/malloc/Makefile > tmp~ &&</userinput> 20 20 <userinput>mv tmp~ ../glibc-&glibc-version;/malloc/Makefile &&</userinput> 21 <userinput>sed "s/root/0/"../glibc-&glibc-version;/login/Makefile > tmp~ &&</userinput>21 <userinput>sed 's/root/0/' ../glibc-&glibc-version;/login/Makefile > tmp~ &&</userinput> 22 22 <userinput>mv tmp~ ../glibc-&glibc-version;/login/Makefile &&</userinput> 23 23 <userinput>../glibc-&glibc-version;/configure \</userinput> 24 24 <userinput> --prefix=/usr --enable-add-ons \</userinput> 25 25 <userinput> --libexecdir=/usr/bin &&</userinput> 26 <userinput>sed s/"cross-compiling = yes"/"cross-compiling = no"/\</userinput>26 <userinput>sed 's/cross-compiling = yes/cross-compiling = no/' \</userinput> 27 27 <userinput> config.make > config.make~ &&</userinput> 28 28 <userinput>mv config.make~ config.make &&</userinput> -
chapter06/procinfo-exp.xml
r2bcd771 r8f5efb62 2 2 <title>Command explanations</title> 3 3 4 <para><userinput>sed "s/-ltermcap/-lncurses/"Makefile | make -f -:</userinput>4 <para><userinput>sed 's/-ltermcap/-lncurses/' Makefile | make -f -:</userinput> 5 5 This will replace -ltermcap with -lncurses in the Makefile and pipe the 6 6 output of sed (the modified Makefile) directly to the make program. This -
chapter06/procinfo-inst.xml
r2bcd771 r8f5efb62 4 4 <para>Install Procinfo by running the following commands:</para> 5 5 6 <para><screen><userinput>sed "s/-ltermcap/-lncurses/"Makefile | make -f - &&</userinput>6 <para><screen><userinput>sed 's/-ltermcap/-lncurses/' Makefile | make -f - &&</userinput> 7 7 <userinput>make install</userinput></screen></para> 8 8 -
chapter06/utillinux-inst.xml
r2bcd771 r8f5efb62 6 6 util-linux package, FHS-compliant, run the following.</para> 7 7 8 <para><screen><userinput>sed "s|etc/adjtime\"\$|var/lib/hwclock/adjtime\"|"\</userinput>8 <para><screen><userinput>sed 's|etc/adjtime|var/lib/hwclock/adjtime|' \</userinput> 9 9 <userinput> hwclock/hwclock.c > hwclock~ &&</userinput> 10 10 <userinput>mv hwclock~ hwclock/hwclock.c &&</userinput>
Note:
See TracChangeset
for help on using the changeset viewer.