Changeset 3f12743 for chapter05


Ignore:
Timestamp:
05/02/2002 08:15:02 PM (22 years ago)
Author:
Gerard Beekmans <gerard@…>
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, 12.2, 12.2-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, 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/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
f109c01
Parents:
9ef08736
Message:

fix bugs #335 and #342 plus various touch ups, layout fixed (line wrapping mostly)

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1864 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Location:
chapter05
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • chapter05/bash-exp.xml

    r9ef08736 r3f12743  
    2929there.</para>
    3030
    31 <para><userinput>ln -sf bash sh:</userinput> This command creates the sh
    32 symlink that points to bash. Most scripts run themselves via 'sh'
    33 (invoked by the #!/bin/sh as the first line in the scripts) which
    34 invokes a special bash mode. Bash will then behave (as closely as
    35 possible) as the original Bourne shell.</para>
     31<para><userinput>ln -sf bash $LFS/bin/sh:</userinput> This command creates
     32the <filename class="symlink">sh</filename> symlink that points to bash. Most
     33scripts run themselves via 'sh' (invoked by the #!/bin/sh as the first line
     34in the scripts) which invokes a special bash mode. Bash will then behave
     35(as closely as possible) as the original Bourne shell.</para>
    3636
    3737<para>The <userinput>&amp;&amp;</userinput>'s at the end of every line cause
  • chapter05/bash-inst.xml

    r9ef08736 r3f12743  
    1616following commands as user root:</para>
    1717
    18 <para><screen><userinput>cd /usr/lib &amp;&amp;
    19 ln -s libncurses.a libcurses.a</userinput></screen></para>
     18<para><screen><userinput>ln -s libncurses.a /usr/lib/libcurses.a</userinput></screen></para>
    2019
    2120<para>Now we can continue. Install Bash by running the following
    2221commands:</para>
    2322
    24 <para><screen><userinput>./configure --enable-static-link --prefix=$LFS/usr \
    25 &nbsp;&nbsp;&nbsp;--bindir=$LFS/bin --with-curses &amp;&amp;
     23<para><screen><userinput>./configure --enable-static-link \
     24&nbsp;&nbsp;&nbsp;&nbsp;--prefix=$LFS/usr --bindir=$LFS/bin --with-curses &amp;&amp;
    2625make &amp;&amp;
    2726make install &amp;&amp;
    28 cd $LFS/bin &amp;&amp;
    29 ln -sf bash sh</userinput></screen></para>
     27ln -sf bash $LFS/bin/sh</userinput></screen></para>
    3028
    3129<para>If the make install phase ends with something along the lines of</para>
  • chapter05/bzip2-inst.xml

    r9ef08736 r3f12743  
    66<para><screen><userinput>make CC="gcc -static" &amp;&amp;
    77make PREFIX=$LFS/usr install &amp;&amp;
    8 cd $LFS/usr/bin &amp;&amp;
    9 mv bzcat bunzip2 bzip2 bzip2recover bzless bzmore $LFS/bin</userinput></screen></para>
     8mv $LFS/usr/bin/{bzcat,bunzip2,bzip2,bzip2recover,bzless,bzmore} $LFS/bin</userinput></screen></para>
    109
    1110<para>Although it's not strictly a part of a basic LFS system it's worth
  • chapter05/creatingdirs.xml

    r9ef08736 r3f12743  
    1111mkdir -p bin boot dev/pts etc/opt home lib mnt proc root sbin tmp var opt &amp;&amp;
    1212for dirname in $LFS/usr $LFS/usr/local
    13 &nbsp;&nbsp;&nbsp;do
    14 &nbsp;&nbsp;&nbsp;mkdir $dirname
    15 &nbsp;&nbsp;&nbsp;cd $dirname
    16 &nbsp;&nbsp;&nbsp;mkdir bin etc include lib sbin share src
    17 &nbsp;&nbsp;&nbsp;ln -s share/man
    18 &nbsp;&nbsp;&nbsp;ln -s share/doc
    19 &nbsp;&nbsp;&nbsp;ln -s share/info
    20 &nbsp;&nbsp;&nbsp;cd $dirname/share
    21 &nbsp;&nbsp;&nbsp;mkdir dict doc info locale man nls misc terminfo zoneinfo
    22 &nbsp;&nbsp;&nbsp;cd $dirname/share/man
    23 &nbsp;&nbsp;&nbsp;mkdir man{1,2,3,4,5,6,7,8}
     13&nbsp;&nbsp;&nbsp;&nbsp;do
     14&nbsp;&nbsp;&nbsp;&nbsp;mkdir $dirname
     15&nbsp;&nbsp;&nbsp;&nbsp;cd $dirname
     16&nbsp;&nbsp;&nbsp;&nbsp;mkdir bin etc include lib sbin share src
     17&nbsp;&nbsp;&nbsp;&nbsp;ln -s share/man
     18&nbsp;&nbsp;&nbsp;&nbsp;ln -s share/doc
     19&nbsp;&nbsp;&nbsp;&nbsp;ln -s share/info
     20&nbsp;&nbsp;&nbsp;&nbsp;cd $dirname/share
     21&nbsp;&nbsp;&nbsp;&nbsp;mkdir dict doc info locale man nls misc terminfo zoneinfo
     22&nbsp;&nbsp;&nbsp;&nbsp;cd $dirname/share/man
     23&nbsp;&nbsp;&nbsp;&nbsp;mkdir man{1,2,3,4,5,6,7,8}
    2424done &amp;&amp;
    2525cd $LFS/var &amp;&amp;
  • chapter05/fileutils-exp.xml

    r9ef08736 r3f12743  
    88<para><userinput>cp lib/Makefile.in lib/Makefile.in.backup &amp;&amp;
    99sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \
    10 &nbsp;&nbsp;&nbsp;-e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \
    11 &nbsp;&nbsp;&nbsp;lib/Makefile.in.backup &gt; lib/Makefile.in:</userinput>
     10&nbsp;&nbsp;&nbsp;&nbsp;-e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \
     11&nbsp;&nbsp;&nbsp;&nbsp;lib/Makefile.in.backup &gt; lib/Makefile.in:</userinput>
    1212This is used to fix a problem with building fileutils statically on glibc 2.2.3
    1313systems.  If this isn't done, then there is the possibility of all of the
  • chapter05/fileutils-inst.xml

    r9ef08736 r3f12743  
    2424<para><screen><userinput>cp lib/Makefile.in lib/Makefile.in.backup &amp;&amp;
    2525sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \
    26 &nbsp;&nbsp;&nbsp;-e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \
    27 &nbsp;&nbsp;&nbsp;lib/Makefile.in.backup &gt; lib/Makefile.in</userinput></screen></para>
     26&nbsp;&nbsp;&nbsp;&nbsp;-e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \
     27&nbsp;&nbsp;&nbsp;&nbsp;lib/Makefile.in.backup &gt; lib/Makefile.in</userinput></screen></para>
    2828
    2929<para>Install Fileutils by running the following commands:</para>
    3030
    3131<para><screen><userinput>./configure --disable-nls \
    32 &nbsp;&nbsp;&nbsp;--prefix=$LFS/usr --bindir=$LFS/bin &amp;&amp;
     32&nbsp;&nbsp;&nbsp;&nbsp;--prefix=$LFS/usr --bindir=$LFS/bin &amp;&amp;
    3333make LDFLAGS=-static &amp;&amp;
    3434make install &amp;&amp;
    35 cd $LFS/usr/bin &amp;&amp;
    36 ln -sf ../../bin/install</userinput></screen></para>
     35ln -sf ../../bin/install $LFS/usr/bin</userinput></screen></para>
    3736
    3837<para>Once you have installed Fileutils, you can test whether the
  • chapter05/gawk-inst.xml

    r9ef08736 r3f12743  
    1717sed -e '/^datadir/s/awk/gawk/' \
    1818-e '/^libexecdir/s%/awk%%' awklib/Makefile.in.backup \
    19 &nbsp;&nbsp;&nbsp;&gt; awklib/Makefile.in &amp;&amp;
     19&nbsp;&nbsp;&nbsp;&nbsp;&gt; awklib/Makefile.in &amp;&amp;
    2020CPPFLAGS=-Dre_max_failures=re_max_failures2 \
    2121./configure --prefix=$LFS/usr --disable-nls \
    22 &nbsp;&nbsp;&nbsp;--libexecdir=$LFS/usr/bin &amp;&amp;
     22&nbsp;&nbsp;&nbsp;&nbsp;--libexecdir=$LFS/usr/bin &amp;&amp;
    2323make LDFLAGS=-static &amp;&amp;
    2424make install</userinput></screen></para>
  • chapter05/gcc-inst.xml

    r9ef08736 r3f12743  
    2222make BOOT_LDFLAGS=-static bootstrap &amp;&amp;
    2323make prefix=$LFS/usr install &amp;&amp;
    24 cd $LFS/lib &amp;&amp;
    25 ln -sf ../usr/bin/cpp &amp;&amp;
    26 cd $LFS/usr/lib &amp;&amp;
    27 ln -sf ../bin/cpp &amp;&amp;
    28 cd $LFS/usr/bin &amp;&amp;
    29 ln -sf gcc cc &amp;&amp;
     24ln -sf ../usr/bin/cpp $LFS/lib &amp;&amp;
     25ln -sf ../bin/cpp $LFS/usr/lib &amp;&amp;
     26ln -sf gcc $LFS/usr/bin/cc &amp;&amp;
    3027rmdir $LFS/usr/*-gnu/include &amp;&amp;
    3128rmdir $LFS/usr/*-gnu</userinput></screen></para>
  • chapter05/grep-inst.xml

    r9ef08736 r3f12743  
    66<para><screen><userinput>CPPFLAGS=-Dre_max_failures=re_max_failures2 \
    77./configure --prefix=$LFS/usr --bindir=$LFS/bin \
    8 &nbsp;&nbsp;&nbsp;--disable-nls --disable-perl-regexp &amp;&amp;
     8&nbsp;&nbsp;&nbsp;&nbsp;--disable-nls --disable-perl-regexp &amp;&amp;
    99make LDFLAGS=-static &amp;&amp;
    1010make install</userinput></screen></para>
  • chapter05/shellutils-inst.xml

    r9ef08736 r3f12743  
    44<para>Install Sh-utils by running the following commands:</para>
    55
    6 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &amp;&amp;
     6<para><screen><userinput>./configure --prefix=$LFS/usr \
     7&nbsp;&nbsp;&nbsp;&nbsp;--disable-nls &amp;&amp;
    78make LDFLAGS=-static &amp;&amp;
    89make install &amp;&amp;
    9 cd $LFS/usr/bin &amp;&amp;
    10 mv basename date echo false hostname $LFS/bin &amp;&amp;
    11 mv pwd sleep stty test true uname $LFS/bin &amp;&amp;
    12 mv chroot ../sbin</userinput></screen></para>
     10mv $LFS/usr/bin/{basename,date,echo,false,hostname} $LFS/bin &amp;&amp;
     11mv $LFS/usr/bin/{pwd,sleep,stty,test,true,uname} $LFS/bin &amp;&amp;
     12mv $LFS/usr/bin/chroot $LFS/usr/sbin</userinput></screen></para>
    1313
    1414<para>During the make install stage you will see the following warning:</para>
  • chapter05/tar-inst.xml

    r9ef08736 r3f12743  
    1313<para>Install Tar by running the following commands:</para>
    1414
    15 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls \
    16 &nbsp;&nbsp;&nbsp;--libexecdir=$LFS/usr/bin --bindir=$LFS/bin &amp;&amp;
     15<para><screen><userinput>./configure --prefix=$LFS/usr \
     16&nbsp;&nbsp;&nbsp;&nbsp;--disable-nls --libexecdir=$LFS/usr/bin \
     17&nbsp;&nbsp;&nbsp;&nbsp;--bindir=$LFS/bin &amp;&amp;
    1718make LDFLAGS=-static &amp;&amp;
    1819make install</userinput></screen></para>
  • chapter05/texinfo-inst.xml

    r9ef08736 r3f12743  
    44<para>Install Texinfo by running the following commands:</para>
    55
    6 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &amp;&amp;
     6<para><screen><userinput>./configure --prefix=$LFS/usr \
     7&nbsp;&nbsp;&nbsp;&nbsp;--disable-nls &amp;&amp;
    78make LDFLAGS=-static &amp;&amp;
    89make install</userinput></screen></para>
  • chapter05/textutils-inst.xml

    r9ef08736 r3f12743  
    44<para>Install Textutils by running the following commands:</para>
    55
    6 <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &amp;&amp;
     6<para><screen><userinput>./configure --prefix=$LFS/usr \
     7&nbsp;&nbsp;&nbsp;&nbsp;--disable-nls &amp;&amp;
    78make LDFLAGS=-static &amp;&amp;
    89make install &amp;&amp;
    9 mv $LFS/usr/bin/cat $LFS/usr/bin/head $LFS/bin</userinput></screen></para>
     10mv $LFS/usr/bin/{cat,head} $LFS/bin</userinput></screen></para>
    1011
    1112</sect2>
Note: See TracChangeset for help on using the changeset viewer.