cvs commit: LFS/BOOK/chapter06 findutils-inst.xml findutils.xml findutils-exp.xml

timothy at timothy at
Wed Jan 15 17:57:16 PST 2003

timothy     03/01/15 20:57:16

  Modified:    BOOK/chapter06 findutils-inst.xml findutils.xml
  Removed:     BOOK/chapter06 findutils-exp.xml
  Converted findutils to new layout.
  Revision  Changes    Path
  1.20      +25 -20    LFS/BOOK/chapter06/findutils-inst.xml
  Index: findutils-inst.xml
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/findutils-inst.xml,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- findutils-inst.xml	8 Jan 2003 20:09:53 -0000	1.19
  +++ findutils-inst.xml	16 Jan 2003 01:57:16 -0000	1.20
  @@ -1,30 +1,35 @@
  +<sect2><title> </title><para> </para></sect2>
   <title>Installing Findutils</title>
  -<para>This package requires its patch to be applied before you can
  -install it.</para>
  +<para>A patch must be applied in order to prevent compilation
  +errors. The patch fixes a variable conflict and some bad syntax.
  +Issue the following command to apply this patch:</para>
  -<para>Install Findutils by running the following commands:</para>
  +<para><screen><userinput>patch -Np1 -i ../findutils-&findutils-patch-version;.patch</userinput></screen></para>
  -<para><screen><userinput>patch -Np1 -i ../findutils-&findutils-patch-version;.patch &&
  -patch -Np1 -i ../findutils-&findutils-segfault-patch-version;-segfault.patch &&
  -CPPFLAGS="-D_GNU_SOURCE" ./configure --prefix=/usr &&
  -make libexecdir=/usr/bin &&
  -make libexecdir=/usr/bin install</userinput></screen></para>
  +<para>The <userinput>locate</userinput> program from Findutils may
  +segfault if it encounters a long path name. To correct this, apply
  +the second patch:</para>
  -<title>FHS compliance notes</title>
  +<para><screen><userinput>patch -Np1 -i ../findutils-&findutils-segfault-patch-version;-segfault.patch</userinput></screen></para>
  +<para>Prepare Findutils to be compiled:</para>
  +<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
   <para>By default, the location of the updatedb database is in /usr/var.
  -If you would rather be FHS compliant, you may wish to use another
  -location. The following commands use the database file 
  -<filename>/var/lib/misc/locatedb</filename> which is FHS compliant.</para>
  -<para><screen><userinput>patch -Np1 -i ../findutils-&findutils-patch-version;.patch &&
  -patch -Np1 -i ../findutils-&findutils-segfault-patch-version;-segfault.patch &&
  -./configure --prefix=/usr &&
  -make localstatedir=/var/lib/misc libexecdir=/usr/bin &&
  -make localstatedir=/var/lib/misc libexecdir=/usr/bin install</userinput></screen></para>
  +To make the location of <filename>/var/lib/misc/locatedb</filename> file
  +FHS compliant, pass the <emphasis>localstatedir=/var/lib/misc</emphasis>
  +option to both <userinput>make</userinput> commands below.</para>
  +<para>Continue with compiling the package:</para>
  +<para><screen><userinput>make libexecdir=/usr/bin</userinput></screen></para>
  +<para>Finish installing the package:</para>
  +<para><screen><userinput>make libexecdir=/usr/bin install</userinput></screen></para>
  1.10      +2 -3      LFS/BOOK/chapter06/findutils.xml
  Index: findutils.xml
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/findutils.xml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- findutils.xml	14 Dec 2001 23:04:46 -0000	1.9
  +++ findutils.xml	16 Jan 2003 01:57:16 -0000	1.10
  @@ -5,10 +5,9 @@
   <screen>Estimated build time:           &findutils-time;
   Estimated required disk space:  &findutils-compsize;</screen>
Unsubscribe: send email to listar at
and put 'unsubscribe lfs-book' in the subject header of the message

More information about the lfs-book mailing list