findutils-inst.xml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installing Findutils</title>
  4. <para>A patch must be applied in order to prevent compilation
  5. errors. The patch fixes a variable conflict and some bad syntax.
  6. Issue the following command to apply this patch:</para>
  7. <para><screen><userinput>patch -Np1 -i ../findutils-&findutils-patch-version;.patch</userinput></screen></para>
  8. <para>The <userinput>locate</userinput> program from Findutils may
  9. segfault if it encounters a long path name. To correct this, apply
  10. the second patch:</para>
  11. <para><screen><userinput>patch -Np1 -i ../findutils-&findutils-segfault-patch-version;-segfault.patch</userinput></screen></para>
  12. <para>Prepare Findutils to be compiled:</para>
  13. <para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
  14. <para>By default, the location of the updatedb database is in /usr/var.
  15. To make the location of <filename>/var/lib/misc/locatedb</filename> file
  16. FHS compliant, pass the <emphasis>localstatedir=/var/lib/misc</emphasis>
  17. option to both <userinput>make</userinput> commands below.</para>
  18. <para>Continue with compiling the package:</para>
  19. <para><screen><userinput>make libexecdir=/usr/bin</userinput></screen></para>
  20. <para>Finish installing the package:</para>
  21. <para><screen><userinput>make libexecdir=/usr/bin install</userinput></screen></para>
  22. </sect2>