source: clfs-sysroot/BOOK/final-system/common/findutils.xml@ fa6113f

Last change on this file since fa6113f was f3a1e98, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Change BLFS references to CBLFS.
Fix Findutils compilation issue by adding config.cache entriers.
Remove unneeded config.h modification from the gawk page.

  • Property mode set to 100644
File size: 6.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-findutils" role="wrap">
9 <?dbhtml filename="findutils.html"?>
10
11 <title>Findutils-&findutils-version;</title>
12
13 <indexterm zone="ch-system-findutils">
14 <primary sortas="a-Findutils">Findutils</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Findutils package contains programs to find files. These programs
21 are provided to recursively search through a directory tree and to
22 create, maintain, and search a database (often faster than the recursive
23 find, but unreliable if the database has not been recently updated).</para>
24
25 </sect2>
26
27 <sect2 role="installation">
28 <title>Installation of Findutils</title>
29
30 <para os="c1">When Cross Compiling the configure script does not
31 run a select few tests, Set the values manually:</para>
32
33<screen os="c2"><userinput>echo "gl_cv_func_wcwidth_works=yes" &gt; config.cache
34echo "gl_cv_header_working_fcntl_h=yes" &gt;&gt; config.cache
35echo "ac_cv_func_fnmatch_gnu=yes" &gt;&gt; config.cache</userinput></screen>
36
37 <para os="a">Prepare Findutils for compilation:</para>
38
39<screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
40 --prefix=/usr --cache-file=config.cache \
41 --libexecdir=/usr/lib/locate \
42 --localstatedir=/var/lib/locate</userinput></screen>
43
44 <variablelist os="c">
45 <title>The meaning of the configure options:</title>
46
47 <varlistentry>
48 <term><parameter>--localstatedir</parameter></term>
49 <listitem>
50 <para>This option changes the location of the <command>locate</command>
51 database to be in <filename class="directory">/var/lib/locate</filename>,
52 which is FHS-compliant.</para>
53 </listitem>
54 </varlistentry>
55
56 </variablelist>
57
58 <para os="d">Compile the package:</para>
59
60<screen os="e"><userinput>make</userinput></screen>
61
62 <para os="f">Install the package:</para>
63
64<screen os="g"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
65
66 <para os="h">The <command>find</command> program is used by some of the
67 scripts in the CLFS-Bootscripts package. As <filename
68 class="directory">/usr</filename> may not be available during the early
69 stages of booting, the <command>find</command> binary needs to be on
70 the root partition:</para>
71
72<screen os="i"><userinput>mv -v ${CLFS}/usr/bin/find ${CLFS}/bin</userinput></screen>
73
74 <para os="j">The <command>updatedb</command> script needs to be modified
75 to point to the new location for <command>find</command>:</para>
76
77<screen os="k"><userinput>cp ${CLFS}/usr/bin/updatedb{,.orig}
78sed 's@find:=${BINDIR}@find:=/bin@' ${CLFS}/usr/bin/updatedb.orig &gt; \
79 ${CLFS}/usr/bin/updatedb
80rm ${CLFS}/usr/bin/updatedb.orig</userinput></screen>
81
82 </sect2>
83
84 <sect2 id="contents-findutils" role="content">
85 <title>Contents of Findutils</title>
86
87 <segmentedlist>
88 <segtitle>Installed programs</segtitle>
89
90 <seglistitem>
91 <seg>bigram, code, find, frcode, locate, updatedb, and xargs</seg>
92 </seglistitem>
93 </segmentedlist>
94
95 <variablelist>
96 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
97 <?dbfo list-presentation="list"?>
98 <?dbhtml list-presentation="table"?>
99
100 <varlistentry id="bigram">
101 <term><command>bigram</command></term>
102 <listitem>
103 <para>Was formerly used to produce <command>locate</command>
104 databases</para>
105 <indexterm zone="ch-system-findutils bigram">
106 <primary sortas="b-bigram">bigram</primary>
107 </indexterm>
108 </listitem>
109 </varlistentry>
110
111 <varlistentry id="code">
112 <term><command>code</command></term>
113 <listitem>
114 <para>Was formerly used to produce <command>locate</command>
115 databases; it is the ancestor of <command>frcode</command>.</para>
116 <indexterm zone="ch-system-findutils code">
117 <primary sortas="b-code">code</primary>
118 </indexterm>
119 </listitem>
120 </varlistentry>
121
122 <varlistentry id="find">
123 <term><command>find</command></term>
124 <listitem>
125 <para>Searches given directory trees for files matching the specified
126 criteria</para>
127 <indexterm zone="ch-system-findutils find">
128 <primary sortas="b-find">find</primary>
129 </indexterm>
130 </listitem>
131 </varlistentry>
132
133 <varlistentry id="frcode">
134 <term><command>frcode</command></term>
135 <listitem>
136 <para>Is called by <command>updatedb</command> to compress the list
137 of file names; it uses front-compression, reducing the database size
138 by a factor of four to five.</para>
139 <indexterm zone="ch-system-findutils frcode">
140 <primary sortas="b-frcode">frcode</primary>
141 </indexterm>
142 </listitem>
143 </varlistentry>
144
145 <varlistentry id="locate">
146 <term><command>locate</command></term>
147 <listitem>
148 <para>Searches through a database of file names and reports the names
149 that contain a given string or match a given pattern</para>
150 <indexterm zone="ch-system-findutils locate">
151 <primary sortas="b-locate">locate</primary>
152 </indexterm>
153 </listitem>
154 </varlistentry>
155
156 <varlistentry id="updatedb">
157 <term><command>updatedb</command></term>
158 <listitem>
159 <para>Updates the <command>locate</command> database; it scans the
160 entire file system (including other file systems that are currently
161 mounted, unless told not to) and puts every file name it finds into
162 the database</para>
163 <indexterm zone="ch-system-findutils updatedb">
164 <primary sortas="b-updatedb">updatedb</primary>
165 </indexterm>
166 </listitem>
167 </varlistentry>
168
169 <varlistentry id="xargs">
170 <term><command>xargs</command></term>
171 <listitem>
172 <para>Can be used to apply a given command to a list of files</para>
173 <indexterm zone="ch-system-findutils xargs">
174 <primary sortas="b-xargs">xargs</primary>
175 </indexterm>
176 </listitem>
177 </varlistentry>
178
179 </variablelist>
180
181 </sect2>
182
183</sect1>
Note: See TracBrowser for help on using the repository browser.