aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/findutils-inst.xml
diff options
context:
space:
mode:
authorTimothy Bauscher <timothy@linuxfromscratch.org>2003-01-16 01:57:16 +0000
committerTimothy Bauscher <timothy@linuxfromscratch.org>2003-01-16 01:57:16 +0000
commite7d9fb40a3ce06036d6b0af5d8e04d070143d6e1 (patch)
tree1cc9ef44d11a42fa178711164605f9ef767c3fe8 /chapter06/findutils-inst.xml
parent90e77c7b8580b06d59cef50e4b98e5c947f7c2fa (diff)
Converted findutils to new layout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2347 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/findutils-inst.xml')
-rw-r--r--chapter06/findutils-inst.xml45
1 files changed, 25 insertions, 20 deletions
diff --git a/chapter06/findutils-inst.xml b/chapter06/findutils-inst.xml
index 9eeef3da0..b186dcb38 100644
--- a/chapter06/findutils-inst.xml
+++ b/chapter06/findutils-inst.xml
@@ -1,30 +1,35 @@
+<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
+
<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 &amp;&amp;
-patch -Np1 -i ../findutils-&findutils-segfault-patch-version;-segfault.patch &amp;&amp;
-CPPFLAGS="-D_GNU_SOURCE" ./configure --prefix=/usr &amp;&amp;
-make libexecdir=/usr/bin &amp;&amp;
-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>
-</sect2>
-<sect2>
-<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 &amp;&amp;
-patch -Np1 -i ../findutils-&findutils-segfault-patch-version;-segfault.patch &amp;&amp;
-./configure --prefix=/usr &amp;&amp;
-make localstatedir=/var/lib/misc libexecdir=/usr/bin &amp;&amp;
-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>
</sect2>