cvs commit: LFS/BOOK/entities bash.ent chapter05.ent chapter06.ent findutils.ent kernel.ent man.ent utillinux.ent

gerard at linuxfromscratch.org gerard at linuxfromscratch.org
Fri May 24 17:19:47 PDT 2002


gerard      02/05/24 17:19:47

  Modified:    BOOK/chapter01 changelog.xml
               BOOK/chapter05 bash-inst.xml binutils-inst.xml
                        bzip2-inst.xml chapter05.xml diffutils-inst.xml
                        fileutils-inst.xml gawk-inst.xml gcc-inst.xml
                        grep-inst.xml gzip-inst.xml installasuser.xml
                        introduction.xml make-inst.xml patch-inst.xml
                        sed-inst.xml shellutils-inst.xml tar-inst.xml
                        texinfo-inst.xml textutils-inst.xml
               BOOK/chapter06 bzip2-inst.xml changingowner.xml
                        chapter06.xml chroot.xml chrootcmd.xml
                        glibc-exp.xml glibc-inst.xml grep-inst.xml
                        introduction.xml makedev-inst.xml man-inst.xml
                        man.xml psmisc-inst.xml
               BOOK/entities bash.ent chapter05.ent chapter06.ent
                        findutils.ent kernel.ent man.ent utillinux.ent
  Log:
  first set of commits for keep-chap5-chap6-seperate
  
  Revision  Changes    Path
  1.288     +7 -0      LFS/BOOK/chapter01/changelog.xml
  
  Index: changelog.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter01/changelog.xml,v
  retrieving revision 1.287
  retrieving revision 1.288
  diff -u -r1.287 -r1.288
  --- changelog.xml	23 May 2002 19:57:14 -0000	1.287
  +++ changelog.xml	25 May 2002 00:19:46 -0000	1.288
  @@ -27,6 +27,13 @@
   
   </para></listitem>
   
  +<listitem><para>May 23rd, 2002 [gerard]: Implemented the
  +keep_chap5_and_chap6_sep lfs-hint. Highlights of the change: added
  +findutils and util-linux to chapter 5, installed everything from chapter 5
  +into <filename class="directory">$LFS/static</filename> and re-ordered the
  +installation of packages in chapter 6 to prevent hard-wiring the wrong path
  +(files from <filename class="directory">$LFS/static</filename>).</para></listitem>
  +
   <listitem><para>May 23rd, 2002 [gerard]: Appendix A - E2fsprogs: Added some
   more descriptions.</para></listitem>
   
  
  
  
  1.28      +3 -6      LFS/BOOK/chapter05/bash-inst.xml
  
  Index: bash-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/bash-inst.xml,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- bash-inst.xml	23 May 2002 17:01:15 -0000	1.27
  +++ bash-inst.xml	25 May 2002 00:19:46 -0000	1.28
  @@ -21,10 +21,9 @@
   commands:</para>
   
   <para><screen><userinput>./configure --enable-static-link \
  -    --prefix=$LFS/usr --bindir=$LFS/bin --with-curses &&
  +    --prefix=$LFS/static --with-curses &&
   make &&
  -make install &&
  -ln -sf bash $LFS/bin/sh</userinput></screen></para>
  +make install</userinput></screen></para>
   
   <para>If the make install phase ends with something along the lines of</para>
   
  @@ -46,9 +45,7 @@
   
   <para>When we tested it with the latest Debian version, the last two
   commands were executed because the install process didn't return with a
  -value larger than 0. But you would do good to check if you have the
  -<filename class="symlink">$LFS/bin/sh</filename> symlink on your LFS
  -partition. If not, run the last two commands manually now.</para>
  +value larger than 0.</para>
   
   </sect2>
   
  
  
  
  1.12      +3 -3      LFS/BOOK/chapter05/binutils-inst.xml
  
  Index: binutils-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/binutils-inst.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- binutils-inst.xml	8 May 2002 23:25:04 -0000	1.11
  +++ binutils-inst.xml	25 May 2002 00:19:46 -0000	1.12
  @@ -13,9 +13,9 @@
   
   <para><screen><userinput>mkdir ../binutils-build &&
   cd ../binutils-build &&
  -../binutils-&binutils-version;/configure --prefix=$LFS/usr --disable-nls &&
  -make tooldir=$LFS/usr LDFLAGS=-all-static &&
  -make tooldir=$LFS/usr install</userinput></screen></para>
  +../binutils-&binutils-version;/configure --prefix=$LFS/static --disable-nls &&
  +make tooldir=$LFS/static LDFLAGS=-all-static &&
  +make tooldir=$LFS/static install</userinput></screen></para>
   
   </sect2>
   
  
  
  
  1.18      +1 -4      LFS/BOOK/chapter05/bzip2-inst.xml
  
  Index: bzip2-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/bzip2-inst.xml,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- bzip2-inst.xml	15 May 2002 21:36:01 -0000	1.17
  +++ bzip2-inst.xml	25 May 2002 00:19:46 -0000	1.18
  @@ -4,10 +4,7 @@
   <para>Install Bzip2 by running the following commands:</para>
   
   <para><screen><userinput>make CC="gcc -static" &&
  -make PREFIX=$LFS/usr install &&
  -mv $LFS/usr/bin/{bzcat,bunzip2,bzip2,bzip2recover} $LFS/bin &&
  -cp $LFS/usr/bin/{bzless,bzmore} $LFS/bin &&
  -rm $LFS/usr/bin/{bzless,bzmore}</userinput></screen></para>
  +make PREFIX=$LFS/static install</userinput></screen></para>
   
   <para>Although it's not strictly a part of a basic LFS system it's worth
   mentioning that a patch for Tar can be downloaded which enables the tar
  
  
  
  1.15      +3 -4      LFS/BOOK/chapter05/chapter05.xml
  
  Index: chapter05.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/chapter05.xml,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- chapter05.xml	1 May 2002 19:10:45 -0000	1.14
  +++ chapter05.xml	25 May 2002 00:19:46 -0000	1.15
  @@ -4,18 +4,18 @@
   
   &c5-introduction;
   &c5-whystatic;
  +&c5-creatingstaticdir;
   &c5-installasuser;
  -&c5-creatingdirs;
   &c5-bash;
   &c5-binutils;
   &c5-bzip2;
   &c5-diffutils;
   &c5-fileutils;
  +&c5-findutils;
   &c5-gawk;
   &c5-gcc;
   &c5-grep;
   &c5-gzip;
  -&c5-kernel;
   &c5-make;
   &c5-patch;
   &c5-sed;
  @@ -23,8 +23,7 @@
   &c5-tar;
   &c5-texinfo;
   &c5-textutils;
  -&c5-pwdgroup;
  -&c5-proc;
  +&c5-utillinux;
   
   </chapter>
   
  
  
  
  1.14      +1 -1      LFS/BOOK/chapter05/diffutils-inst.xml
  
  Index: diffutils-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/diffutils-inst.xml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- diffutils-inst.xml	1 May 2002 19:10:45 -0000	1.13
  +++ diffutils-inst.xml	25 May 2002 00:19:46 -0000	1.14
  @@ -4,7 +4,7 @@
   <para>Install Diffutils by running the following commands:</para>
   
   <para><screen><userinput>CPPFLAGS=-Dre_max_failures=re_max_failures2 \
  -./configure --prefix=$LFS/usr --disable-nls &&
  +./configure --prefix=$LFS/static --disable-nls &&
   make LDFLAGS=-static &&
   make install</userinput></screen></para>
   
  
  
  
  1.35      +2 -4      LFS/BOOK/chapter05/fileutils-inst.xml
  
  Index: fileutils-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/fileutils-inst.xml,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- fileutils-inst.xml	2 May 2002 20:15:00 -0000	1.34
  +++ fileutils-inst.xml	25 May 2002 00:19:46 -0000	1.35
  @@ -28,11 +28,9 @@
   
   <para>Install Fileutils by running the following commands:</para>
   
  -<para><screen><userinput>./configure --disable-nls \
  -    --prefix=$LFS/usr --bindir=$LFS/bin &&
  +<para><screen><userinput>./configure --disable-nls --prefix=$LFS/static &&
   make LDFLAGS=-static &&
  -make install &&
  -ln -sf ../../bin/install $LFS/usr/bin</userinput></screen></para>
  +make install</userinput></screen></para>
   
   <para>Once you have installed Fileutils, you can test whether the
   segmentation fault problem has been avoided by running
  
  
  
  1.10      +2 -2      LFS/BOOK/chapter05/gawk-inst.xml
  
  Index: gawk-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/gawk-inst.xml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- gawk-inst.xml	2 May 2002 20:15:01 -0000	1.9
  +++ gawk-inst.xml	25 May 2002 00:19:46 -0000	1.10
  @@ -18,8 +18,8 @@
   -e '/^libexecdir/s%/awk%%' awklib/Makefile.in.backup \
       > awklib/Makefile.in &&
   CPPFLAGS=-Dre_max_failures=re_max_failures2 \
  -./configure --prefix=$LFS/usr --disable-nls \
  -    --libexecdir=$LFS/usr/bin &&
  +./configure --prefix=$LFS/static --disable-nls \
  +    --libexecdir=$LFS/static/bin &&
   make LDFLAGS=-static &&
   make install</userinput></screen></para>
   
  
  
  
  1.28      +5 -7      LFS/BOOK/chapter05/gcc-inst.xml
  
  Index: gcc-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/gcc-inst.xml,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- gcc-inst.xml	8 May 2002 23:25:04 -0000	1.27
  +++ gcc-inst.xml	25 May 2002 00:19:46 -0000	1.28
  @@ -17,15 +17,13 @@
   <para><screen><userinput>patch -Np1 -i ../gcc-&gcc-patch-version;.patch &&
   mkdir ../gcc-build &&
   cd ../gcc-build &&
  -../gcc-&gcc-version;/configure --prefix=/usr --enable-languages=c,c++ \
  +../gcc-&gcc-version;/configure --prefix=/static --enable-languages=c,c++ \
      --disable-nls --disable-shared --enable-threads=posix &&
   make BOOT_LDFLAGS=-static bootstrap &&
  -make prefix=$LFS/usr install &&
  -ln -sf ../usr/bin/cpp $LFS/lib &&
  -ln -sf ../bin/cpp $LFS/usr/lib &&
  -ln -sf gcc $LFS/usr/bin/cc &&
  -rmdir $LFS/usr/*-gnu/include &&
  -rmdir $LFS/usr/*-gnu</userinput></screen></para>
  +make prefix=$LFS/static install &&
  +ln -s gcc $LFS/static/bin/cc &&
  +rmdir $LFS/static/*-gnu/include &&
  +rmdir $LFS/static/*-gnu</userinput></screen></para>
   
   </sect2>
   
  
  
  
  1.12      +2 -2      LFS/BOOK/chapter05/grep-inst.xml
  
  Index: grep-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/grep-inst.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- grep-inst.xml	2 May 2002 20:15:01 -0000	1.11
  +++ grep-inst.xml	25 May 2002 00:19:46 -0000	1.12
  @@ -4,8 +4,8 @@
   <para>Install Grep by running the following commands:</para>
   
   <para><screen><userinput>CPPFLAGS=-Dre_max_failures=re_max_failures2 \
  -./configure --prefix=$LFS/usr --bindir=$LFS/bin \
  -    --disable-nls --disable-perl-regexp &&
  +./configure --prefix=$LFS/static --disable-nls \
  +    --disable-perl-regexp &&
   make LDFLAGS=-static &&
   make install</userinput></screen></para>
   
  
  
  
  1.18      +2 -4      LFS/BOOK/chapter05/gzip-inst.xml
  
  Index: gzip-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/gzip-inst.xml,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- gzip-inst.xml	9 May 2002 14:54:17 -0000	1.17
  +++ gzip-inst.xml	25 May 2002 00:19:46 -0000	1.18
  @@ -3,11 +3,9 @@
   
   <para>Install Gzip by running the following commands:</para>
   
  -<para><screen><userinput>./configure --prefix=$LFS/usr &&
  +<para><screen><userinput>./configure --prefix=$LFS/static &&
   make LDFLAGS=-static &&
  -make install &&
  -cp $LFS/usr/bin/{gunzip,gzip} $LFS/bin &&
  -rm $LFS/usr/bin/{gunzip,gzip}</userinput></screen></para>
  +make install</userinput></screen></para>
   
   </sect2>
   
  
  
  
  1.10      +4 -4      LFS/BOOK/chapter05/installasuser.xml
  
  Index: installasuser.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/installasuser.xml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- installasuser.xml	16 May 2002 18:40:04 -0000	1.9
  +++ installasuser.xml	25 May 2002 00:19:46 -0000	1.10
  @@ -16,11 +16,11 @@
   <para><screen><userinput>useradd -s /bin/bash -m lfs &&
   passwd lfs</userinput></screen></para>
   
  -<para>Now it's time to change the permissions on your LFS partitions
  -so user "lfs" will have write access to it. Run the following command
  -as root to change the ownership of the LFS partition to user "lfs":</para>
  +<para>Now we need to give proper permissions to the <filename
  +class="directory">$LFS/static</filename> directory so user "lfs" can write
  +to it:</para>
   
  -<para><screen><userinput>chown -R lfs $LFS</userinput></screen></para>
  +<para><screen><userinput>chown -R lfs $LFS/static</userinput></screen></para>
   
   <para>Now you can login as user "lfs". You can do this two ways: either
   the normal way through the console or the display manager, or with
  
  
  
  1.13      +6 -0      LFS/BOOK/chapter05/introduction.xml
  
  Index: introduction.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/introduction.xml,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- introduction.xml	16 May 2002 18:40:04 -0000	1.12
  +++ introduction.xml	25 May 2002 00:19:46 -0000	1.13
  @@ -19,6 +19,12 @@
   compiler, and you're going to need a shell to install a shell and that
   compiler.</para>
   
  +<para>All the files from this chapter will be installed under the <filename
  +class="directory">$LFS/static</filename> directory. By doing it this way,
  +we keep the installation from this chapter seperate from the final
  +installation in the next chapter. Everything done here is only temporarily
  +so we don't want it to pollute the to-be LFS system.</para>
  +
   <para>The key to learning what makes Linux tick is to know exactly what packages
   are used for and why a user or the system needs them. Descriptions
   of the package content are provided after the Installation subsection of each
  
  
  
  1.7       +4 -4      LFS/BOOK/chapter05/make-inst.xml
  
  Index: make-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/make-inst.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- make-inst.xml	6 Mar 2002 22:50:02 -0000	1.6
  +++ make-inst.xml	25 May 2002 00:19:46 -0000	1.7
  @@ -3,16 +3,16 @@
   
   <para>Install Make by running the following commands:</para>
   
  -<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &&
  +<para><screen><userinput>./configure --prefix=$LFS/static --disable-nls &&
   make LDFLAGS=-static &&
   make install</userinput></screen></para>
   
   <para>During the make install phase you will see this warning:</para>
   
  -<blockquote><screen>chgrp: changing group of `/mnt/lfs/usr/bin/make': Operation not permitted
  -/mnt/lfs/usr/bin/make needs to be owned by group kmem and setgid;
  +<blockquote><screen>chgrp: changing group of `/mnt/lfs/static/bin/make': Operation not permitted
  +/mnt/lfs/static/bin/make needs to be owned by group kmem and setgid;
   otherwise the `-l' option will probably not work. You may need special
  -privileges to complete the installation of /mnt/lfs/usr/bin/make.</screen></blockquote>
  +privileges to complete the installation of /mnt/lfs/static/bin/make.</screen></blockquote>
   
   <para>You can safely ignore this warning. make doesn't need to be owned by
   group kmem and setgid for the <emphasis>-l</emphasis> option to work (which
  
  
  
  1.9       +1 -1      LFS/BOOK/chapter05/patch-inst.xml
  
  Index: patch-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/patch-inst.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- patch-inst.xml	1 May 2002 19:10:45 -0000	1.8
  +++ patch-inst.xml	25 May 2002 00:19:46 -0000	1.9
  @@ -4,7 +4,7 @@
   <para>Install Patch by running the following commands:</para>
   
   <para><screen><userinput>CPPFLAGS=-D_GNU_SOURCE \
  -./configure --prefix=$LFS/usr &&
  +./configure --prefix=$LFS/static &&
   make LDFLAGS=-static &&
   make install</userinput></screen></para>
   
  
  
  
  1.9       +1 -1      LFS/BOOK/chapter05/sed-inst.xml
  
  Index: sed-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/sed-inst.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- sed-inst.xml	1 May 2002 19:10:45 -0000	1.8
  +++ sed-inst.xml	25 May 2002 00:19:46 -0000	1.9
  @@ -4,7 +4,7 @@
   <para>Install Sed by running the following commands:</para>
   
   <para><screen><userinput>CPPFLAGS=-Dre_max_failures=re_max_failures2 \
  -./configure --prefix=$LFS/usr --bindir=$LFS/bin &&
  +./configure --prefix=$LFS/static &&
   make LDFLAGS=-static &&
   make install</userinput></screen></para>
   
  
  
  
  1.24      +2 -5      LFS/BOOK/chapter05/shellutils-inst.xml
  
  Index: shellutils-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/shellutils-inst.xml,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- shellutils-inst.xml	2 May 2002 20:15:01 -0000	1.23
  +++ shellutils-inst.xml	25 May 2002 00:19:46 -0000	1.24
  @@ -3,13 +3,10 @@
   
   <para>Install Sh-utils by running the following commands:</para>
   
  -<para><screen><userinput>./configure --prefix=$LFS/usr \
  +<para><screen><userinput>./configure --prefix=$LFS/static \
       --disable-nls &&
   make LDFLAGS=-static &&
  -make install &&
  -mv $LFS/usr/bin/{basename,date,echo,false,hostname} $LFS/bin &&
  -mv $LFS/usr/bin/{pwd,sleep,stty,test,true,uname} $LFS/bin &&
  -mv $LFS/usr/bin/chroot $LFS/usr/sbin</userinput></screen></para>
  +make install</userinput></screen></para>
   
   <para>During the make install stage you will see the following warning:</para>
   
  
  
  
  1.12      +2 -3      LFS/BOOK/chapter05/tar-inst.xml
  
  Index: tar-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/tar-inst.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- tar-inst.xml	2 May 2002 20:15:01 -0000	1.11
  +++ tar-inst.xml	25 May 2002 00:19:46 -0000	1.12
  @@ -12,9 +12,8 @@
   
   <para>Install Tar by running the following commands:</para>
   
  -<para><screen><userinput>./configure --prefix=$LFS/usr \
  -    --disable-nls --libexecdir=$LFS/usr/bin \
  -    --bindir=$LFS/bin && 
  +<para><screen><userinput>./configure --prefix=$LFS/static \
  +    --disable-nls --libexecdir=$LFS/static/bin && 
   make LDFLAGS=-static &&
   make install</userinput></screen></para>
   
  
  
  
  1.10      +1 -1      LFS/BOOK/chapter05/texinfo-inst.xml
  
  Index: texinfo-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/texinfo-inst.xml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- texinfo-inst.xml	2 May 2002 20:15:01 -0000	1.9
  +++ texinfo-inst.xml	25 May 2002 00:19:46 -0000	1.10
  @@ -3,7 +3,7 @@
   
   <para>Install Texinfo by running the following commands:</para>
   
  -<para><screen><userinput>./configure --prefix=$LFS/usr \
  +<para><screen><userinput>./configure --prefix=$LFS/static \
       --disable-nls &&
   make LDFLAGS=-static &&
   make install</userinput></screen></para>
  
  
  
  1.10      +2 -3      LFS/BOOK/chapter05/textutils-inst.xml
  
  Index: textutils-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/textutils-inst.xml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- textutils-inst.xml	2 May 2002 20:15:01 -0000	1.9
  +++ textutils-inst.xml	25 May 2002 00:19:46 -0000	1.10
  @@ -3,11 +3,10 @@
   
   <para>Install Textutils by running the following commands:</para>
   
  -<para><screen><userinput>./configure --prefix=$LFS/usr \
  +<para><screen><userinput>./configure --prefix=$LFS/static \
       --disable-nls &&
   make LDFLAGS=-static &&
  -make install &&
  -mv $LFS/usr/bin/{cat,head} $LFS/bin</userinput></screen></para>
  +make install</userinput></screen></para>
   
   </sect2>
   
  
  
  
  1.24      +0 -2      LFS/BOOK/chapter06/bzip2-inst.xml
  
  Index: bzip2-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/bzip2-inst.xml,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- bzip2-inst.xml	9 May 2002 17:43:48 -0000	1.23
  +++ bzip2-inst.xml	25 May 2002 00:19:47 -0000	1.24
  @@ -5,14 +5,12 @@
   
   <para><screen><userinput>make -f Makefile-libbz2_so &&
   make &&
  -rm /usr/bin/bz* &&
   make PREFIX=/usr install &&
   cp bzip2-shared /bin/bzip2 &&
   ln -s libbz2.so.1.0 libbz2.so &&
   cp -a libbz2.so* /lib &&
   ln -sf ../../lib/libbz2.so /usr/lib&&
   rm /usr/bin/{bunzip2,bzcat,bzip2} &&
  -rm /bin/{bzless,bzmore} &&
   mv /usr/bin/{bzip2recover,bzless,bzmore} /bin &&
   ln -sf bzip2 /bin/bunzip2 &&
   ln -sf bzip2 /bin/bzcat</userinput></screen></para>
  
  
  
  1.6       +4 -7      LFS/BOOK/chapter06/changingowner.xml
  
  Index: changingowner.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/changingowner.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- changingowner.xml	17 May 2002 23:04:26 -0000	1.5
  +++ changingowner.xml	25 May 2002 00:19:47 -0000	1.6
  @@ -6,19 +6,16 @@
   all files and directories that were installed in chapter 5 back to root.
   Run the following commands to do so:</para>
   
  -<para><screen><userinput>chown 0:0 / /proc &&
  -chown -R 0:0 /{bin,boot,dev,etc,home,lib,mnt,opt,root,sbin,tmp,usr,var}</userinput></screen></para>
  +<para><screen><userinput>chown -R 0:0 /</userinput></screen></para>
   
   <para>Depending on the filesystem you created on the LFS partition, you may
   have a /lost+found directory. If so, run:</para>
   
   <para><screen><userinput>chown 0:0 /lost+found</userinput></screen></para>
   
  -<para>These commands will change the ownership of the root partition and
  -the <filename>/proc</filename> directory to root, plus everything under
  -the directories mentioned in the second line. In these commands, 0:0 is
  -used instead of the usual root:root, because the username root can't be
  -resolved because glibc is not yet installed.</para>
  +<para>These commands will change the ownership of the root partition to
  +root. In these commands, 0:0 is used instead of the usual root:root, because
  +the username root can't be resolved because glibc is not yet installed.</para>
   
   </sect1>
   
  
  
  
  1.18      +15 -11    LFS/BOOK/chapter06/chapter06.xml
  
  Index: chapter06.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/chapter06.xml,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- chapter06.xml	2 May 2002 18:50:00 -0000	1.17
  +++ chapter06.xml	25 May 2002 00:19:47 -0000	1.18
  @@ -4,42 +4,50 @@
   
   &c6-introduction;
   &c6-aboutdebug;
  -&c6-bashprofile;
   &c6-chroot;
   &c6-changingowner;
  +&c6-creatingdirs;
  +&c6-pwdgroup;
   &c6-mtablink;
  +&c6-mountproc;
  +&c6-createfiles;
  +&c6-kernel;
   &c6-glibc;
   &c6-makedev;
  +&c6-gcc;
   &c6-manpages;
   &c6-findutils;
   &c6-gawk;
   &c6-ncurses;
   &c6-vim;
  -&c6-gcc;
   &c6-bison;
   &c6-less;
   &c6-groff;
  -&c6-man;
  +&c6-textutils;
  +&c6-sed;
  +&c6-flex;
  +&c6-binutils;
  +&c6-fileutils;
  +&c6-shellutils;
  +&c6-gettext;
  +&c6-nettools;
   &c6-perl;
   &c6-m4;
   &c6-texinfo;
   &c6-autoconf;
   &c6-automake;
   &c6-bash;
  -&c6-flex;
   &c6-file;
   &c6-libtool;
   &c6-bin86;
  -&c6-binutils;
   &c6-bzip2;
   &c6-ed;
  -&c6-gettext;
   &c6-kbd;
   &c6-diffutils;
   &c6-e2fsprogs;
  -&c6-fileutils;
   &c6-grep;
   &c6-gzip;
  +&c6-man;
   &c6-lilo;
   &c6-make;
   &c6-modutils;
  @@ -49,14 +57,10 @@
   &c6-procps;
   &c6-psmisc;
   &c6-reiserfs;
  -&c6-sed;
  -&c6-shellutils;
  -&c6-nettools;
   &c6-shadowpwd;
   &c6-sysklogd;
   &c6-sysvinit;
   &c6-tar;
  -&c6-textutils;
   &c6-utillinux;
   &c6-bootscripts;
   &c6-configure;
  
  
  
  1.22      +4 -4      LFS/BOOK/chapter06/chroot.xml
  
  Index: chroot.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/chroot.xml,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- chroot.xml	11 May 2002 13:26:21 -0000	1.21
  +++ chroot.xml	25 May 2002 00:19:47 -0000	1.22
  @@ -13,10 +13,10 @@
   <para><screen>&c6-chrootcmd;</screen></para>
   
   <para>The -i option will clear all environment variables for as long as you
  -are in the chroot'ed environment and only the HOME and TERM variables
  -are set. The TERM=$TERM construction will set the TERM variable inside
  -chroot to the same value as outside chroot which is needed for programs
  -like vim and less to operate properly. If you need other variables
  +are in the chroot'ed environment and only the HOME, TERM, PS1 and PATH
  +variables are set. The TERM=$TERM construction will set the TERM variable
  +inside chroot to the same value as outside chroot which is needed for
  +programs like vim and less to operate properly. If you need other variables
   present, such as CFLAGS or CXXFLAGS, you need to set them again.</para>
   
   <para>Now that we are inside a chroot'ed environment, we can continue to
  
  
  
  1.7       +4 -2      LFS/BOOK/chapter06/chrootcmd.xml
  
  Index: chrootcmd.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/chrootcmd.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- chrootcmd.xml	2 May 2002 20:15:02 -0000	1.6
  +++ chrootcmd.xml	25 May 2002 00:19:47 -0000	1.7
  @@ -1,2 +1,4 @@
  -<userinput>chroot $LFS /usr/bin/env -i HOME=/root \
  -    TERM=$TERM /bin/bash --login</userinput>
  +<userinput>chroot $LFS /static/bin/env -i HOME=/root TERM=$TERM \
  +    PS1='\u:\w\$ ' \
  +    PATH=/bin:/usr/bin:/sbin:/usr/sbin:/static/bin \
  +    /static/bin/bash --login</userinput>
  
  
  
  1.28      +0 -10     LFS/BOOK/chapter06/glibc-exp.xml
  
  Index: glibc-exp.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/glibc-exp.xml,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- glibc-exp.xml	14 Feb 2002 14:58:00 -0000	1.27
  +++ glibc-exp.xml	25 May 2002 00:19:47 -0000	1.28
  @@ -1,16 +1,6 @@
   <sect2>
   <title>Command explanations</title>
   
  -<para><userinput>mknod -m 0666 /dev/null c 1 3:</userinput> Glibc needs a
  -null device to compile properly. All other devices will be created in the
  -next section.</para>
  -
  -<para><userinput>touch /etc/ld.so.conf</userinput> One of the final steps 
  -of the Glibc installation is running ldconfig to update the dynamic loader 
  -cache.  If this file doesn't exist, the installation will abort with an error 
  -that it can't read the file, so we simply create an empty file (the empty file 
  -will have Glibc default to using /lib and /usr/lib which is fine).</para>
  -
   <para><userinput>sed 's%\$(PERL)%/usr/bin/perl%' 
   malloc/Makefile.backup > malloc/Makefile:</userinput> This sed command
   searches through <filename>malloc/Makefile.backup</filename> and
  
  
  
  1.61      +2 -4      LFS/BOOK/chapter06/glibc-inst.xml
  
  Index: glibc-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/glibc-inst.xml,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- glibc-inst.xml	9 May 2002 01:02:31 -0000	1.60
  +++ glibc-inst.xml	25 May 2002 00:19:47 -0000	1.61
  @@ -22,9 +22,7 @@
   
   <para>Install Glibc by running the following commands:</para>
   
  -<para><screen><userinput>mknod -m 0666 /dev/null c 1 3 &&
  -touch /etc/ld.so.conf &&
  -cp malloc/Makefile malloc/Makefile.backup &&
  +<para><screen><userinput>cp malloc/Makefile malloc/Makefile.backup &&
   sed 's%\$(PERL)%/usr/bin/perl%' \
       malloc/Makefile.backup > malloc/Makefile &&
   cp login/Makefile login/Makefile.backup &&
  @@ -37,7 +35,7 @@
   make &&
   make install &&
   make localedata/install-locales &&
  -exec /bin/bash --login</userinput></screen></para>
  +exec /static/bin/bash --login</userinput></screen></para>
   
   <para>An alternative to running <userinput>make
   localedata/install-locales</userinput> is to only install those locales
  
  
  
  1.8       +0 -1      LFS/BOOK/chapter06/grep-inst.xml
  
  Index: grep-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/grep-inst.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- grep-inst.xml	15 Mar 2002 00:35:20 -0000	1.7
  +++ grep-inst.xml	25 May 2002 00:19:47 -0000	1.8
  @@ -5,7 +5,6 @@
   
   <para><screen><userinput>./configure --prefix=/usr --bindir=/bin &&
   make &&
  -rm /bin/egrep /bin/fgrep &&
   make install</userinput></screen></para>
   
   </sect2>
  
  
  
  1.12      +8 -0      LFS/BOOK/chapter06/introduction.xml
  
  Index: introduction.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/introduction.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- introduction.xml	11 May 2002 13:26:21 -0000	1.11
  +++ introduction.xml	25 May 2002 00:19:47 -0000	1.12
  @@ -18,5 +18,13 @@
   after having used optimization, always try it without optimizing to see if 
   the problem persists.</para>
   
  +<para>Please refrain from installing more than one package at a time, even
  +if it may safe you time (especially with dual CPU machines). If you install
  +the wrong package at the wrong time, it may hard-wire program paths to
  +<filename class="directory">$LFS/static</filename> which will cause the
  +programs to stop working once the static directory is removed. The order
  +packages are installed in this chapter have to be followed exactly to be
  +sure nothing is hard-wiring the static paths.</para>
  +
   </sect1>
   
  
  
  
  1.19      +2 -1      LFS/BOOK/chapter06/makedev-inst.xml
  
  Index: makedev-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/makedev-inst.xml,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- makedev-inst.xml	3 Dec 2001 17:57:08 -0000	1.18
  +++ makedev-inst.xml	25 May 2002 00:19:47 -0000	1.19
  @@ -6,7 +6,8 @@
   
   <para>Create the device files by running the following commands:</para>
   
  -<para><screen><userinput>cp MAKEDEV-&makedev-version; /dev/MAKEDEV &&
  +<para><screen><userinput>rm /dev/null &&
  +cp MAKEDEV-&makedev-version; /dev/MAKEDEV &&
   cd /dev &&
   chmod 754 MAKEDEV</userinput></screen></para>
   
  
  
  
  1.22      +2 -1      LFS/BOOK/chapter06/man-inst.xml
  
  Index: man-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/man-inst.xml,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- man-inst.xml	11 May 2002 13:26:21 -0000	1.21
  +++ man-inst.xml	25 May 2002 00:19:47 -0000	1.22
  @@ -3,7 +3,8 @@
   
   <para>Run the following commands to install man:</para>
   
  -<para><screen><userinput>./configure -default &&
  +<para><screen><userinput>PATH=$PATH:/usr/bin:/bin \
  +    ./configure -default &&
   make &&
   make install &&
   mv /usr/share/misc/man.conf /etc</userinput></screen></para>
  
  
  
  1.12      +1 -0      LFS/BOOK/chapter06/man.xml
  
  Index: man.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/man.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- man.xml	14 Dec 2001 23:04:46 -0000	1.11
  +++ man.xml	25 May 2002 00:19:47 -0000	1.12
  @@ -6,6 +6,7 @@
   Estimated required disk space:  &man-compsize;</screen>
   
   &c6-man-inst;
  +&c6-man-exp;
   &aa-man-desc;
   &aa-man-dep;
   
  
  
  
  1.10      +1 -2      LFS/BOOK/chapter06/psmisc-inst.xml
  
  Index: psmisc-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/psmisc-inst.xml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- psmisc-inst.xml	2 May 2002 20:15:02 -0000	1.9
  +++ psmisc-inst.xml	25 May 2002 00:19:47 -0000	1.10
  @@ -3,8 +3,7 @@
   
   <para>Install Psmisc by running the following commands:</para>
   
  -<para><screen><userinput>./configure --prefix=/usr \
  -    --exec-prefix=/ &&
  +<para><screen><userinput>./configure --prefix=/usr --exec-prefix=/ &&
   make &&
   make install</userinput></screen></para>
   
  
  
  
  1.2       +0 -1      LFS/BOOK/entities/bash.ent
  
  Index: bash.ent
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/entities/bash.ent,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- bash.ent	12 Apr 2002 16:14:30 -0000	1.1
  +++ bash.ent	25 May 2002 00:19:47 -0000	1.2
  @@ -4,7 +4,6 @@
   <!ENTITY c5-bash-inst SYSTEM "../chapter05/bash-inst.xml">
   <!ENTITY c5-bash-exp SYSTEM "../chapter05/bash-exp.xml">
   
  -<!ENTITY c6-bashprofile SYSTEM "../chapter06/bashprofile.xml">
   <!ENTITY c6-bash SYSTEM "../chapter06/bash.xml">
   <!ENTITY c6-bash-inst SYSTEM "../chapter06/bash-inst.xml">
   
  
  
  
  1.4       +1 -3      LFS/BOOK/entities/chapter05.ent
  
  Index: chapter05.ent
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/entities/chapter05.ent,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- chapter05.ent	1 May 2002 19:10:46 -0000	1.3
  +++ chapter05.ent	25 May 2002 00:19:47 -0000	1.4
  @@ -1,7 +1,5 @@
   <!ENTITY chapter05 SYSTEM "../chapter05/chapter05.xml">
   <!ENTITY c5-introduction SYSTEM "../chapter05/introduction.xml">
   <!ENTITY c5-whystatic SYSTEM "../chapter05/whystatic.xml">
  +<!ENTITY c5-creatingstaticdir SYSTEM "../chapter05/creatingstaticdir.xml">
   <!ENTITY c5-installasuser SYSTEM "../chapter05/installasuser.xml">
  -<!ENTITY c5-creatingdirs SYSTEM "../chapter05/creatingdirs.xml">
  -<!ENTITY c5-pwdgroup SYSTEM "../chapter05/pwdgroup.xml">
  -<!ENTITY c5-proc SYSTEM "../chapter05/proc.xml">
  
  
  
  1.4       +4 -0      LFS/BOOK/entities/chapter06.ent
  
  Index: chapter06.ent
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/entities/chapter06.ent,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- chapter06.ent	2 May 2002 18:50:00 -0000	1.3
  +++ chapter06.ent	25 May 2002 00:19:47 -0000	1.4
  @@ -4,7 +4,11 @@
   <!ENTITY c6-chrootcmd SYSTEM "../chapter06/chrootcmd.xml">
   <!ENTITY c6-chroot SYSTEM "../chapter06/chroot.xml">
   <!ENTITY c6-changingowner SYSTEM "../chapter06/changingowner.xml">
  +<!ENTITY c6-creatingdirs SYSTEM "../chapter06/creatingdirs.xml">
  +<!ENTITY c6-pwdgroup SYSTEM "../chapter06/pwdgroup.xml">
   <!ENTITY c6-mtablink SYSTEM "../chapter06/mtablink.xml">
  +<!ENTITY c6-mountproc SYSTEM "../chapter06/mountproc.xml">
  +<!ENTITY c6-createfiles SYSTEM "../chapter06/createfiles.xml">
   <!ENTITY c6-configure SYSTEM "../chapter06/configure.xml">
   <!ENTITY c6-cf-ldso SYSTEM "../chapter06/config-ldso.xml">
   <!ENTITY c6-cf-keyboard SYSTEM "../chapter06/config-keyboard.xml">
  
  
  
  1.2       +4 -0      LFS/BOOK/entities/findutils.ent
  
  Index: findutils.ent
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/entities/findutils.ent,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- findutils.ent	12 Apr 2002 16:14:30 -0000	1.1
  +++ findutils.ent	25 May 2002 00:19:47 -0000	1.2
  @@ -1,6 +1,10 @@
   <!ENTITY c3-findutils SYSTEM "../chapter03/findutils.xml">
   <!ENTITY c3-findutils-patch SYSTEM "../chapter03/findutils-patch.xml">
   
  +<!ENTITY c5-findutils SYSTEM "../chapter05/findutils.xml">
  +<!ENTITY c5-findutils-exp SYSTEM "../chapter05/findutils-exp.xml">
  +<!ENTITY c5-findutils-inst SYSTEM "../chapter05/findutils-inst.xml">
  +
   <!ENTITY c6-findutils SYSTEM "../chapter06/findutils.xml">
   <!ENTITY c6-findutils-exp SYSTEM "../chapter06/findutils-exp.xml">
   <!ENTITY c6-findutils-inst SYSTEM "../chapter06/findutils-inst.xml">
  
  
  
  1.2       +4 -4      LFS/BOOK/entities/kernel.ent
  
  Index: kernel.ent
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/entities/kernel.ent,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- kernel.ent	12 Apr 2002 16:14:30 -0000	1.1
  +++ kernel.ent	25 May 2002 00:19:47 -0000	1.2
  @@ -1,9 +1,9 @@
   <!ENTITY c3-kernel SYSTEM "../chapter03/kernel.xml">
   
  -<!ENTITY c5-kernel SYSTEM "../chapter05/kernel.xml">
  -<!ENTITY c5-kernel-inst SYSTEM "../chapter05/kernel-inst.xml">
  -<!ENTITY c5-kernel-exp SYSTEM "../chapter05/kernel-exp.xml">
  -<!ENTITY c5-kernel-exp-headers SYSTEM "../chapter05/kernel-exp-headers.xml">
  +<!ENTITY c6-kernel SYSTEM "../chapter06/kernel.xml">
  +<!ENTITY c6-kernel-inst SYSTEM "../chapter06/kernel-inst.xml">
  +<!ENTITY c6-kernel-exp SYSTEM "../chapter06/kernel-exp.xml">
  +<!ENTITY c6-kernel-exp-headers SYSTEM "../chapter06/kernel-exp-headers.xml">
   
   <!ENTITY c8-kernel SYSTEM "../chapter08/kernel.xml">
   
  
  
  
  1.2       +1 -0      LFS/BOOK/entities/man.ent
  
  Index: man.ent
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/entities/man.ent,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- man.ent	12 Apr 2002 16:14:30 -0000	1.1
  +++ man.ent	25 May 2002 00:19:47 -0000	1.2
  @@ -2,6 +2,7 @@
   
   <!ENTITY c6-man SYSTEM "../chapter06/man.xml">
   <!ENTITY c6-man-inst SYSTEM "../chapter06/man-inst.xml">
  +<!ENTITY c6-man-exp SYSTEM "../chapter06/man-exp.xml">
   
   <!ENTITY aa-man SYSTEM "../appendixa/man.xml">
   <!ENTITY aa-man-desc SYSTEM "../appendixa/man-desc.xml">
  
  
  
  1.2       +3 -0      LFS/BOOK/entities/utillinux.ent
  
  Index: utillinux.ent
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/entities/utillinux.ent,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- utillinux.ent	12 Apr 2002 16:14:31 -0000	1.1
  +++ utillinux.ent	25 May 2002 00:19:47 -0000	1.2
  @@ -1,5 +1,8 @@
   <!ENTITY c3-utillinux SYSTEM "../chapter03/utillinux.xml">
   
  +<!ENTITY c5-utillinux SYSTEM "../chapter05/utillinux.xml">
  +<!ENTITY c5-utillinux-inst SYSTEM "../chapter05/utillinux-inst.xml">
  +
   <!ENTITY c6-utillinux SYSTEM "../chapter06/utillinux.xml">
   <!ENTITY c6-utillinux-inst SYSTEM "../chapter06/utillinux-inst.xml">
   <!ENTITY c6-utillinux-exp SYSTEM "../chapter06/utillinux-exp.xml">
  
  
  
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-book' in the subject header of the message



More information about the lfs-book mailing list