cvs commit: LFS/BOOK/chapter06 coreutils.xml

winkie at linuxfromscratch.org winkie at linuxfromscratch.org
Wed May 12 12:58:35 PDT 2004


winkie      04/05/12 13:58:35

  Modified:    BOOK/chapter01 Tag: b6_0 changelog.xml
               BOOK/chapter03 Tag: b6_0 patches.xml
               BOOK/chapter06 Tag: b6_0 coreutils.xml
  Log:
  Fixed bug #307
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.741.2.17 +5 -0      LFS/BOOK/chapter01/changelog.xml
  
  Index: changelog.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter01/changelog.xml,v
  retrieving revision 1.741.2.16
  retrieving revision 1.741.2.17
  diff -u -r1.741.2.16 -r1.741.2.17
  --- changelog.xml	12 May 2004 17:04:11 -0000	1.741.2.16
  +++ changelog.xml	12 May 2004 19:58:35 -0000	1.741.2.17
  @@ -53,6 +53,7 @@
   
   <listitem><para>Added:</para>
   <itemizedlist>
  +<listitem><para>coreutils-5.2.1-dupes-1.patch</para></listitem>
   <listitem><para>flex-2.5.31-debian-fixes-2.patch</para></listitem>
   <listitem><para>iana-etc-1.00</para></listitem>
   <listitem><para>inetutils-1.4.2-kernel-headers-1.patch</para></listitem>
  @@ -72,6 +73,7 @@
   <listitem><para>Removed:</para>
   <itemizedlist>
   <listitem><para>bison-1.875-attribute.patch</para></listitem>
  +<listitem><para>coreutils-5.2.1-hostname-1.patch</para></listitem>
   <listitem><para>ed-0.2</para></listitem>
   <listitem><para>gcc-2.95.3</para></listitem>
   <listitem><para>gcc-3.3.1-suppress-libiberty.patch</para></listitem>
  @@ -89,6 +91,9 @@
   <listitem><para>zlib-1.1.4-vsnprintf.patch</para></listitem>
   </itemizedlist>
   </listitem>
  +
  +<listitem><para>May 12th, 2004 [winkie]: Apply patch to assure Coreutils doesn't
  +install any binaries that we don't need/want.</para></listitem>
   
   <listitem><para>May 12th, 2004 [winkie]: Chapter 6 - Fixed Coreutils testsuite
   execution.</para></listitem>
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.2.2.7   +2 -2      LFS/BOOK/chapter03/patches.xml
  
  Index: patches.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter03/patches.xml,v
  retrieving revision 1.2.2.6
  retrieving revision 1.2.2.7
  diff -u -r1.2.2.6 -r1.2.2.7
  --- patches.xml	12 May 2004 02:27:21 -0000	1.2.2.6
  +++ patches.xml	12 May 2004 19:58:35 -0000	1.2.2.7
  @@ -22,9 +22,9 @@
   </varlistentry>
   
   <varlistentry>
  -<term>Coreutils Hostname Patch - 1 KB:</term>
  +<term>Coreutils Dupes Patch - 16 KB:</term>
   <listitem>
  -<para><ulink url="&patches-root;coreutils-&coreutils-version;-hostname-1.patch"/></para>
  +<para><ulink url="&patches-root;coreutils-&coreutils-version;-dupes-1.patch"/></para>
   </listitem>
   </varlistentry>
   
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.20.2.2  +5 -19     LFS/BOOK/chapter06/coreutils.xml
  
  Index: coreutils.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/coreutils.xml,v
  retrieving revision 1.20.2.1
  retrieving revision 1.20.2.2
  diff -u -r1.20.2.1 -r1.20.2.2
  --- coreutils.xml	12 May 2004 17:04:12 -0000	1.20.2.1
  +++ coreutils.xml	12 May 2004 19:58:35 -0000	1.20.2.2
  @@ -30,11 +30,10 @@
   
   <screen><userinput>patch -Np1 -i ../coreutils-&coreutils-version;-uname-1.patch</userinput></screen>
   
  -<para>We do not want Coreutils to install its version of the
  -<command>hostname</command> program, because it is inferior to the version
  -provided by Net-tools. Prevent its installation by applying a patch:</para>
  +<para>Prevent Coreutils from installing binaries that will be later be installed
  +by other programs:</para>
   
  -<screen><userinput>patch -Np1 -i ../coreutils-&coreutils-version;-hostname-1.patch</userinput></screen>
  +<screen><userinput>patch -Np1 -i ../coreutils-&coreutils-version;-dupes-1.patch</userinput></screen>
   
   <para>Now prepare Coreutils for compilation:</para>
   
  @@ -50,13 +49,6 @@
   you choose not to run these tests, skip down to <quote>Install the
   package</quote>.</para>
   
  -<para>To be able to run the full test suite, the <command>su</command> program
  -needs to be installed. We didn't bother to install this little program in
  -<xref linkend="chapter-temporary-tools"/> because it requires root privileges,
  -so do it now:</para>
  -
  -<screen><userinput>make install-root</userinput></screen>
  -
   <para>Create two dummy groups and a dummy user name:</para>
   
   <screen><userinput>echo "dummy1:x:1000" >> /etc/group
  @@ -71,7 +63,7 @@
   <para>Then run the remainder of the tests as the <emphasis>dummy</emphasis>
   user:</para>
   
  -<screen><userinput>su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
  +<screen><userinput>src/su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
   
   <para>When you're done testing, remove the dummy user and groups:</para>
   
  @@ -86,14 +78,8 @@
   <screen><userinput>mv /usr/bin/{[,basename,cat,chgrp,chmod,chown,cp,dd,df} /bin
   mv /usr/bin/{date,echo,false,head,install,ln,ls} /bin
   mv /usr/bin/{mkdir,mknod,mv,pwd,rm,rmdir,sync} /bin
  -mv /usr/bin/{sleep,stty,su,test,touch,true,uname} /bin
  +mv /usr/bin/{sleep,stty,test,touch,true,uname} /bin
   mv /usr/bin/chroot /usr/sbin</userinput></screen>
  -
  -<para>We'll be using the <filename>kill</filename> program from the Procps
  -package (installed as <filename>/bin/kill</filename> later in the chapter).
  -Remove the one installed by Coreutils:</para>
  -
  -<screen><userinput>rm /usr/bin/kill</userinput></screen>
   
   <para>Finally, create a symlink to be FHS-compliant:</para>
   
  
  
  



More information about the lfs-book mailing list