Changeset 5e2cb65 for chapter05


Ignore:
Timestamp:
05/25/2002 12:19:47 AM (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:
1987d72
Parents:
1f61f42
Message:

first set of commits for keep-chap5-chap6-seperate

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

Location:
chapter05
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • chapter05/bash-inst.xml

    r1f61f42 r5e2cb65  
    2222
    2323<para><screen><userinput>./configure --enable-static-link \
    24 &nbsp;&nbsp;&nbsp;&nbsp;--prefix=$LFS/usr --bindir=$LFS/bin --with-curses &amp;&amp;
     24&nbsp;&nbsp;&nbsp;&nbsp;--prefix=$LFS/static --with-curses &amp;&amp;
    2525make &amp;&amp;
    26 make install &amp;&amp;
    27 ln -sf bash $LFS/bin/sh</userinput></screen></para>
     26make install</userinput></screen></para>
    2827
    2928<para>If the make install phase ends with something along the lines of</para>
     
    4746<para>When we tested it with the latest Debian version, the last two
    4847commands were executed because the install process didn't return with a
    49 value larger than 0. But you would do good to check if you have the
    50 <filename class="symlink">$LFS/bin/sh</filename> symlink on your LFS
    51 partition. If not, run the last two commands manually now.</para>
     48value larger than 0.</para>
    5249
    5350</sect2>
  • chapter05/binutils-inst.xml

    r1f61f42 r5e2cb65  
    1414<para><screen><userinput>mkdir ../binutils-build &amp;&amp;
    1515cd ../binutils-build &amp;&amp;
    16 ../binutils-&binutils-version;/configure --prefix=$LFS/usr --disable-nls &amp;&amp;
    17 make tooldir=$LFS/usr LDFLAGS=-all-static &amp;&amp;
    18 make tooldir=$LFS/usr install</userinput></screen></para>
     16../binutils-&binutils-version;/configure --prefix=$LFS/static --disable-nls &amp;&amp;
     17make tooldir=$LFS/static LDFLAGS=-all-static &amp;&amp;
     18make tooldir=$LFS/static install</userinput></screen></para>
    1919
    2020</sect2>
  • chapter05/bzip2-inst.xml

    r1f61f42 r5e2cb65  
    55
    66<para><screen><userinput>make CC="gcc -static" &amp;&amp;
    7 make PREFIX=$LFS/usr install &amp;&amp;
    8 mv $LFS/usr/bin/{bzcat,bunzip2,bzip2,bzip2recover} $LFS/bin &amp;&amp;
    9 cp $LFS/usr/bin/{bzless,bzmore} $LFS/bin &amp;&amp;
    10 rm $LFS/usr/bin/{bzless,bzmore}</userinput></screen></para>
     7make PREFIX=$LFS/static install</userinput></screen></para>
    118
    129<para>Although it's not strictly a part of a basic LFS system it's worth
  • chapter05/chapter05.xml

    r1f61f42 r5e2cb65  
    55&c5-introduction;
    66&c5-whystatic;
     7&c5-creatingstaticdir;
    78&c5-installasuser;
    8 &c5-creatingdirs;
    99&c5-bash;
    1010&c5-binutils;
     
    1212&c5-diffutils;
    1313&c5-fileutils;
     14&c5-findutils;
    1415&c5-gawk;
    1516&c5-gcc;
    1617&c5-grep;
    1718&c5-gzip;
    18 &c5-kernel;
    1919&c5-make;
    2020&c5-patch;
     
    2424&c5-texinfo;
    2525&c5-textutils;
    26 &c5-pwdgroup;
    27 &c5-proc;
     26&c5-utillinux;
    2827
    2928</chapter>
  • chapter05/diffutils-inst.xml

    r1f61f42 r5e2cb65  
    55
    66<para><screen><userinput>CPPFLAGS=-Dre_max_failures=re_max_failures2 \
    7 ./configure --prefix=$LFS/usr --disable-nls &amp;&amp;
     7./configure --prefix=$LFS/static --disable-nls &amp;&amp;
    88make LDFLAGS=-static &amp;&amp;
    99make install</userinput></screen></para>
  • chapter05/fileutils-inst.xml

    r1f61f42 r5e2cb65  
    2929<para>Install Fileutils by running the following commands:</para>
    3030
    31 <para><screen><userinput>./configure --disable-nls \
    32 &nbsp;&nbsp;&nbsp;&nbsp;--prefix=$LFS/usr --bindir=$LFS/bin &amp;&amp;
     31<para><screen><userinput>./configure --disable-nls --prefix=$LFS/static &amp;&amp;
    3332make LDFLAGS=-static &amp;&amp;
    34 make install &amp;&amp;
    35 ln -sf ../../bin/install $LFS/usr/bin</userinput></screen></para>
     33make install</userinput></screen></para>
    3634
    3735<para>Once you have installed Fileutils, you can test whether the
  • chapter05/gawk-inst.xml

    r1f61f42 r5e2cb65  
    1919&nbsp;&nbsp;&nbsp;&nbsp;&gt; awklib/Makefile.in &amp;&amp;
    2020CPPFLAGS=-Dre_max_failures=re_max_failures2 \
    21 ./configure --prefix=$LFS/usr --disable-nls \
    22 &nbsp;&nbsp;&nbsp;&nbsp;--libexecdir=$LFS/usr/bin &amp;&amp;
     21./configure --prefix=$LFS/static --disable-nls \
     22&nbsp;&nbsp;&nbsp;&nbsp;--libexecdir=$LFS/static/bin &amp;&amp;
    2323make LDFLAGS=-static &amp;&amp;
    2424make install</userinput></screen></para>
  • chapter05/gcc-inst.xml

    r1f61f42 r5e2cb65  
    1818mkdir ../gcc-build &amp;&amp;
    1919cd ../gcc-build &amp;&amp;
    20 ../gcc-&gcc-version;/configure --prefix=/usr --enable-languages=c,c++ \
     20../gcc-&gcc-version;/configure --prefix=/static --enable-languages=c,c++ \
    2121&nbsp;&nbsp;&nbsp;--disable-nls --disable-shared --enable-threads=posix &amp;&amp;
    2222make BOOT_LDFLAGS=-static bootstrap &amp;&amp;
    23 make prefix=$LFS/usr install &amp;&amp;
    24 ln -sf ../usr/bin/cpp $LFS/lib &amp;&amp;
    25 ln -sf ../bin/cpp $LFS/usr/lib &amp;&amp;
    26 ln -sf gcc $LFS/usr/bin/cc &amp;&amp;
    27 rmdir $LFS/usr/*-gnu/include &amp;&amp;
    28 rmdir $LFS/usr/*-gnu</userinput></screen></para>
     23make prefix=$LFS/static install &amp;&amp;
     24ln -s gcc $LFS/static/bin/cc &amp;&amp;
     25rmdir $LFS/static/*-gnu/include &amp;&amp;
     26rmdir $LFS/static/*-gnu</userinput></screen></para>
    2927
    3028</sect2>
  • chapter05/grep-inst.xml

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

    r1f61f42 r5e2cb65  
    44<para>Install Gzip by running the following commands:</para>
    55
    6 <para><screen><userinput>./configure --prefix=$LFS/usr &amp;&amp;
     6<para><screen><userinput>./configure --prefix=$LFS/static &amp;&amp;
    77make LDFLAGS=-static &amp;&amp;
    8 make install &amp;&amp;
    9 cp $LFS/usr/bin/{gunzip,gzip} $LFS/bin &amp;&amp;
    10 rm $LFS/usr/bin/{gunzip,gzip}</userinput></screen></para>
     8make install</userinput></screen></para>
    119
    1210</sect2>
  • chapter05/installasuser.xml

    r1f61f42 r5e2cb65  
    1717passwd lfs</userinput></screen></para>
    1818
    19 <para>Now it's time to change the permissions on your LFS partitions
    20 so user "lfs" will have write access to it. Run the following command
    21 as root to change the ownership of the LFS partition to user "lfs":</para>
     19<para>Now we need to give proper permissions to the <filename
     20class="directory">$LFS/static</filename> directory so user "lfs" can write
     21to it:</para>
    2222
    23 <para><screen><userinput>chown -R lfs $LFS</userinput></screen></para>
     23<para><screen><userinput>chown -R lfs $LFS/static</userinput></screen></para>
    2424
    2525<para>Now you can login as user "lfs". You can do this two ways: either
  • chapter05/introduction.xml

    r1f61f42 r5e2cb65  
    1919compiler, and you're going to need a shell to install a shell and that
    2020compiler.</para>
     21
     22<para>All the files from this chapter will be installed under the <filename
     23class="directory">$LFS/static</filename> directory. By doing it this way,
     24we keep the installation from this chapter seperate from the final
     25installation in the next chapter. Everything done here is only temporarily
     26so we don't want it to pollute the to-be LFS system.</para>
    2127
    2228<para>The key to learning what makes Linux tick is to know exactly what packages
  • chapter05/make-inst.xml

    r1f61f42 r5e2cb65  
    44<para>Install Make 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/static --disable-nls &amp;&amp;
    77make LDFLAGS=-static &amp;&amp;
    88make install</userinput></screen></para>
     
    1010<para>During the make install phase you will see this warning:</para>
    1111
    12 <blockquote><screen>chgrp: changing group of `/mnt/lfs/usr/bin/make': Operation not permitted
    13 /mnt/lfs/usr/bin/make needs to be owned by group kmem and setgid;
     12<blockquote><screen>chgrp: changing group of `/mnt/lfs/static/bin/make': Operation not permitted
     13/mnt/lfs/static/bin/make needs to be owned by group kmem and setgid;
    1414otherwise the `-l' option will probably not work. You may need special
    15 privileges to complete the installation of /mnt/lfs/usr/bin/make.</screen></blockquote>
     15privileges to complete the installation of /mnt/lfs/static/bin/make.</screen></blockquote>
    1616
    1717<para>You can safely ignore this warning. make doesn't need to be owned by
  • chapter05/patch-inst.xml

    r1f61f42 r5e2cb65  
    55
    66<para><screen><userinput>CPPFLAGS=-D_GNU_SOURCE \
    7 ./configure --prefix=$LFS/usr &amp;&amp;
     7./configure --prefix=$LFS/static &amp;&amp;
    88make LDFLAGS=-static &amp;&amp;
    99make install</userinput></screen></para>
  • chapter05/sed-inst.xml

    r1f61f42 r5e2cb65  
    55
    66<para><screen><userinput>CPPFLAGS=-Dre_max_failures=re_max_failures2 \
    7 ./configure --prefix=$LFS/usr --bindir=$LFS/bin &amp;&amp;
     7./configure --prefix=$LFS/static &amp;&amp;
    88make LDFLAGS=-static &amp;&amp;
    99make install</userinput></screen></para>
  • chapter05/shellutils-inst.xml

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

    r1f61f42 r5e2cb65  
    1313<para>Install Tar by running the following commands:</para>
    1414
    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;
     15<para><screen><userinput>./configure --prefix=$LFS/static \
     16&nbsp;&nbsp;&nbsp;&nbsp;--disable-nls --libexecdir=$LFS/static/bin &amp;&amp;
    1817make LDFLAGS=-static &amp;&amp;
    1918make install</userinput></screen></para>
  • chapter05/texinfo-inst.xml

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

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