source: chapter06/findutils.xml@ 3944e7b

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 3944e7b was 3a1e22e8, checked in by Douglas R. Reno <renodr@…>, 4 years ago

findutils: For consistency purposes, move the test suite failures to before the installation text, not after.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11734 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 5.3 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[673b0d8]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
[54e422c1]7
[81fd230]8<sect1 id="ch-system-findutils" role="wrap">
[54e422c1]9 <?dbhtml filename="findutils.html"?>
10
[e747759]11 <sect1info condition="script">
12 <productname>findutils</productname>
13 <productnumber>&findutils-version;</productnumber>
14 <address>&findutils-url;</address>
15 </sect1info>
16
[54e422c1]17 <title>Findutils-&findutils-version;</title>
18
19 <indexterm zone="ch-system-findutils">
20 <primary sortas="a-Findutils">Findutils</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
[6370fa6]25
[54e422c1]26 <para>The Findutils package contains programs to find files. These programs
27 are provided to recursively search through a directory tree and to
28 create, maintain, and search a database (often faster than the recursive
29 find, but unreliable if the database has not been recently updated).</para>
[5888299]30
[54e422c1]31 <segmentedlist>
32 <segtitle>&buildtime;</segtitle>
33 <segtitle>&diskspace;</segtitle>
[673b0d8]34
[54e422c1]35 <seglistitem>
[e4a5635]36 <seg>&findutils-ch6-sbu;</seg>
37 <seg>&findutils-ch6-du;</seg>
[54e422c1]38 </seglistitem>
39 </segmentedlist>
[673b0d8]40
[54e422c1]41 </sect2>
42
43 <sect2 role="installation">
44 <title>Installation of Findutils</title>
45
46 <para>Prepare Findutils for compilation:</para>
[73aedd1d]47
[3dc9543]48<screen><userinput remap="configure">./configure --prefix=/usr --localstatedir=/var/lib/locate</userinput></screen>
[73aedd1d]49
[54e422c1]50 <variablelist>
51 <title>The meaning of the configure options:</title>
[06948c1]52
[54e422c1]53 <varlistentry>
54 <term><parameter>--localstatedir</parameter></term>
55 <listitem>
56 <para>This option changes the location of the <command>locate</command>
57 database to be in <filename class="directory">/var/lib/locate</filename>,
58 which is FHS-compliant.</para>
59 </listitem>
60 </varlistentry>
[81fd230]61
[54e422c1]62 </variablelist>
63
64 <para>Compile the package:</para>
[73aedd1d]65
[0445a3d]66<screen><userinput remap="make">make</userinput></screen>
[73aedd1d]67
[0445a3d]68 <para>To test the results, issue:</para>
69
70<screen><userinput remap="test">make check</userinput></screen>
[73aedd1d]71
[3a1e22e8]72 <para>Two tests are known to fail in the chroot environment:
73 sv-bug-54171.old-O3 and sv-bug-54171.new-O3.</para>
74
[54e422c1]75 <para>Install the package:</para>
[73aedd1d]76
[0445a3d]77<screen><userinput remap="install">make install</userinput></screen>
[73aedd1d]78
[1118b17]79 <para revision="sysv">Some of the scripts in the LFS-Bootscripts package
80 depend on <command>find</command>. As <filename
81 class="directory">/usr</filename> may not be available during the early
82 stages of booting, this program needs to be on the root partition. The
83 <command>updatedb</command> script also needs to be modified to correct an
84 explicit path:</para>
85
86 <para revision="systemd"> Some packages in BLFS and beyond expect the
87 <command>find</command> program in <filename
88 class="directory">/bin</filename>, so make sure it's placed there:</para>
[b540268]89
[0445a3d]90<screen><userinput remap="install">mv -v /usr/bin/find /bin
[a57d556]91sed -i 's|find:=${BINDIR}|find:=/bin|' /usr/bin/updatedb</userinput></screen>
[e1060de]92
[54e422c1]93 </sect2>
94
95 <sect2 id="contents-findutils" role="content">
96 <title>Contents of Findutils</title>
97
98 <segmentedlist>
99 <segtitle>Installed programs</segtitle>
[78cc3be]100 <segtitle>Installed directory</segtitle>
[54e422c1]101
102 <seglistitem>
[2b75e7e5]103 <seg>find, locate, updatedb, and xargs</seg>
[78cc3be]104 <seg>/var/lib/locate</seg>
[54e422c1]105 </seglistitem>
[78cc3be]106
[54e422c1]107 </segmentedlist>
108
109 <variablelist>
110 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
111 <?dbfo list-presentation="list"?>
112 <?dbhtml list-presentation="table"?>
113
114 <varlistentry id="find">
115 <term><command>find</command></term>
116 <listitem>
117 <para>Searches given directory trees for files matching the specified
118 criteria</para>
119 <indexterm zone="ch-system-findutils find">
120 <primary sortas="b-find">find</primary>
121 </indexterm>
122 </listitem>
123 </varlistentry>
124
125 <varlistentry id="locate">
126 <term><command>locate</command></term>
127 <listitem>
128 <para>Searches through a database of file names and reports the names
129 that contain a given string or match a given pattern</para>
130 <indexterm zone="ch-system-findutils locate">
131 <primary sortas="b-locate">locate</primary>
132 </indexterm>
133 </listitem>
134 </varlistentry>
135
136 <varlistentry id="updatedb">
137 <term><command>updatedb</command></term>
138 <listitem>
139 <para>Updates the <command>locate</command> database; it scans the
140 entire file system (including other file systems that are currently
141 mounted, unless told not to) and puts every file name it finds into
142 the database</para>
143 <indexterm zone="ch-system-findutils updatedb">
144 <primary sortas="b-updatedb">updatedb</primary>
145 </indexterm>
146 </listitem>
147 </varlistentry>
148
149 <varlistentry id="xargs">
150 <term><command>xargs</command></term>
151 <listitem>
152 <para>Can be used to apply a given command to a list of files</para>
153 <indexterm zone="ch-system-findutils xargs">
154 <primary sortas="b-xargs">xargs</primary>
155 </indexterm>
156 </listitem>
157 </varlistentry>
158
159 </variablelist>
160
161 </sect2>
[673b0d8]162
163</sect1>
Note: See TracBrowser for help on using the repository browser.