source: gnome/platform/localsearch.xml

trunk
Last change on this file was 8dd1b0d, checked in by Douglas R. Reno <renodr@…>, 36 hours ago

Replace tracker and tracker-miners with tinysparql and localsearch

Also upgrade them to 3.8.0.

I expect breakage with this but need to take a step back for the rest of
the day

  • Property mode set to 100644
File size: 10.6 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 <!ENTITY localsearch-download-http "&gnome-download-http;/localsearch/3.8/localsearch-&localsearch-version;.tar.xz">
8 <!ENTITY localsearch-download-ftp " ">
9 <!ENTITY localsearch-md5sum "b9aa37c729509b6abc94fc6dedc99058">
10 <!ENTITY localsearch-size "4.3 MB">
11 <!ENTITY localsearch-buildsize "43 MB (with tests)">
12 <!ENTITY localsearch-time "0.4 SBU (with parallelism=4; add as much as 1.0 SBU for tests, dependent on disk speed)">
13]>
14
15<sect1 id="localsearch" xreflabel="localsearch-&localsearch-version;">
16 <?dbhtml filename="localsearch.html"?>
17
18
19 <title>localsearch-&localsearch-version;</title>
20
21 <indexterm zone="localsearch">
22 <primary sortas="a-localsearch">localsearch</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to Localsearch</title>
27
28 <para>
29 The <application>Localsearch</application> package contains a filesystem
30 indexer as well as a metadata extractor.
31 </para>
32
33 &lfs122_checked;
34
35 <bridgehead renderas="sect3">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>
39 Download (HTTP): <ulink url="&localsearch-download-http;"/>
40 </para>
41 </listitem>
42 <listitem>
43 <para>
44 Download (FTP): <ulink url="&localsearch-download-ftp;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download MD5 sum: &localsearch-md5sum;
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download size: &localsearch-size;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Estimated disk space required: &localsearch-buildsize;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated build time: &localsearch-time;
65 </para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect3">Localsearch Dependencies</bridgehead>
70
71 <bridgehead renderas="sect4">Required</bridgehead>
72 <para role="required">
73 <xref linkend="gst10-plugins-base"/>,
74 <xref linkend="tinysparql"/>,
75 <xref linkend="exempi"/>, and
76 <xref linkend="gexiv2"/>
77 </para>
78
79 <bridgehead renderas="sect4">Recommended</bridgehead>
80 <para role="recommended">
81 <xref linkend="giflib"/>,
82 <xref role='runtime' linkend="gst10-plugins-good"/> (runtime),
83 <xref role='runtime' linkend="gst10-libav"/> (runtime),
84 <xref linkend="icu"/>,
85 <xref linkend="libexif"/>,
86 <xref linkend="libgxps"/>,
87 <xref linkend="libseccomp"/>,
88 <xref linkend="poppler"/>, and
89 <xref linkend="upower"/>
90 </para>
91
92 <bridgehead renderas="sect4">Optional</bridgehead>
93 <para role="optional">
94 <xref linkend="asciidoc"/>,
95 <xref linkend="cmake"/>,
96 <xref linkend="dconf"/>,
97 <xref linkend="ffmpeg"/>,
98 <xref linkend="libgsf"/>,
99 <xref linkend="NetworkManager"/>,
100 <xref linkend="taglib"/>,
101 <xref linkend="totem-pl-parser"/>,
102 <ulink url="https://github.com/lipnitsk/libcue">libcue</ulink>,
103 <ulink url="https://gitlab.gnome.org/GNOME/libgrss">libgrss</ulink>,
104 <ulink url="https://libiptcdata.sourceforge.net/">libitpcdata</ulink>,
105 <ulink url="https://libosinfo.org">libosinfo</ulink>, and
106 <ulink url="https://gitlab.gnome.org/GNOME/gupnp">gupnp</ulink>
107 </para>
108
109 </sect2>
110
111 <sect2 role="kernel" id="localsearch-kernel">
112 <title>Kernel Configuration</title>
113
114 <para>
115 Enable the following options in the kernel configuration, then recompile
116 the kernel and reboot if necessary:
117 </para>
118
119 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
120 href="localsearch-kernel.xml"/>
121
122 <indexterm zone="localsearch localsearch-kernel">
123 <primary sortas="d-localsearch">localsearch</primary>
124 </indexterm>
125 </sect2>
126
127 <sect2 role="installation">
128 <title>Installation of Localsearch</title>
129
130 <warning>
131 <para>
132 If you are upgrading this package from a version where it was known as
133 <application>tracker-miners</application>, there are several files
134 which will cause conflicts. Before installing this package, remove
135 these files as the &root; user:
136 </para>
137 </warning>
138
139<screen role="root"><userinput remap="pre">rm -fv /etc/xdg/autostart/tracker-miner-fs-3.desktop &amp;&amp;
140rm -fv /usr/lib/systemd/user/tracker-miner-fs-3.service &amp;&amp;
141rm -fv /usr/lib/systemd/user/tracker-miner-fs-control-3.service &amp;&amp;
142rm -fv /usr/share/dbus-1/services/org.freedesktop.Tracker3.Miner.Files.service &amp;&amp;
143rm -fv /usr/share/dbus-1/services/org.freedesktop.Tracker3.Writeback.service &amp;&amp;
144rm -fv /usr/share/dbus-1/services/org.freedesktop.Tracker3.Miner.Files.Control.service</userinput></screen>
145
146 <note>
147 <para>
148 If you plan to run the tests, some timeouts are too short when
149 using spinning disks. There are two places where timeouts are
150 used: first, individual tests inside a group of tests have a
151 default timeout of 10s. This can be changed by setting the environment
152 variable <envar>TRACKER_TESTS_AWAIT_TIMEOUT</envar> to the desired
153 value when running the tests (see below). Second, a global timeout
154 for a group of tests is fixed at configuration time. The default value
155 in the <filename class="directory">functional-tests</filename>
156 directory (other directories have only short lived tests) may be
157 increased with the following command (replace 200 with a value
158 suitable for your machine):
159 </para>
160
161<screen remap="test"><userinput>sed -i s/120/<replaceable>200</replaceable>/ tests/functional-tests/meson.build</userinput></screen>
162 </note>
163
164 <para>
165 Install <application>Localsearch</application> by running the following
166 commands:
167 </para>
168
169
170<screen revision="systemd"><userinput>mkdir build &amp;&amp;
171cd build &amp;&amp;
172
173meson setup --prefix=/usr \
174 --buildtype=release \
175 -D man=false \
176 -D miner_rss=false \
177 .. &amp;&amp;
178ninja</userinput></screen>
179
180<screen revision="sysv"><userinput>mkdir build &amp;&amp;
181cd build &amp;&amp;
182
183meson setup --prefix=/usr \
184 --buildtype=release \
185 -D systemd_user_services=false \
186 -D man=false \
187 -D miner_rss=false \
188 .. &amp;&amp;
189ninja</userinput></screen>
190
191
192 <para>
193 Now, as the <systemitem class="username">root</systemitem> user:
194 </para>
195
196 <screen role="root"><userinput>ninja install</userinput></screen>
197
198 <para>
199 To test the results, issue (adjust the individual test timeout to a
200 value suitable for your machine, see the note above):
201 </para>
202
203<screen remap="test"><userinput>meson configure -D debug=true &amp;&amp;
204dbus-run-session env LC_ALL=C.UTF-8 TRACKER_TESTS_AWAIT_TIMEOUT=<replaceable>20</replaceable> \
205 ninja test &amp;&amp;
206rm -rf ~/tracker-tests</userinput></screen>
207
208 <note>
209 <para>
210 The tests create files in the user directory (up to 24 MB), so
211 they have to be removed afterwards.
212 </para>
213 </note>
214 </sect2>
215
216 <sect2 role="commands">
217 <title>Command Explanations</title>
218
219 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
220 href="../../xincludes/meson-buildtype-release.xml"/>
221
222 <para>
223 <parameter>-D man=false</parameter>: This switch prevents the build process
224 from generating man pages. Omit this switch if you have
225 <xref linkend="asciidoc" role="nodep"/> installed and wish to generate and
226 install the man pages.
227 </para>
228
229 <para>
230 <parameter>-D miner_rss=false</parameter>: This switch prevents using
231 libgrss for indexing RSS feeds because libgrss is insecure and no longer
232 in BLFS.
233 </para>
234
235 <para revision="sysv">
236 <parameter>-D systemd_user_services=false</parameter>: This switch prevents
237 the build process from installing systemd units since they are useless
238 on SysV systems.
239 </para>
240
241 <para>
242 <option>-D seccomp=false</option>: This option disables the seccomp system
243 call filter. On some architectures, such as i686 and ARM, the functions
244 that tracker-miners uses are not guarded properly, and tracker-miners
245 will get killed with a SIGSYS as a result. Note that disabling
246 seccomp may cause the system to be compromised worse in the event that a
247 security vulnerability in localsearch or its dependencies is
248 exploited.
249 </para>
250
251 <para>
252 <option>-D landlock=disabled</option>: This switch disables the
253 Landlock file access sandbox. Use it if you don't want to build the
254 kernel with Landlock support. Note that disabling Landlock may
255 cause the system to be compromised worse in the event that a security
256 vulnerability in localsearch or its dependencies is exploited.
257 </para>
258
259 <para>
260 <option>-D battery_detection=none</option>: Use this option if you have
261 not installed the recommended dependency upower. Do not use this
262 option if your system has a battery (laptop battery or UPS), or
263 localsearch may waste the battery power and lifespan when the A/C
264 power is unavailable.
265 </para>
266
267 </sect2>
268
269 <sect2 role="content">
270 <title>Contents</title>
271
272 <segmentedlist>
273 <segtitle>Installed Programs</segtitle>
274 <segtitle>Installed Libraries</segtitle>
275 <segtitle>Installed Directories</segtitle>
276
277 <seglistitem>
278 <seg>
279 localsearch
280 </seg>
281 <seg>
282 Several modules under /usr/lib/localsearch-3.0
283 </seg>
284 <seg>
285 /usr/lib/localsearch-3.0 and
286 /usr/share/localsearch
287 </seg>
288 </seglistitem>
289 </segmentedlist>
290
291 <variablelist>
292 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
293 <?dbfo list-presnetation="list"?>
294 <?dbhtml list-presentation="table"?>
295
296 <varlistentry id="localsearch-prog">
297 <term><command>localsearch</command></term>
298 <listitem>
299 <para>
300 starts, stops, restarts, and lists daemons responsible for indexing
301 content
302 </para>
303 <indexterm zone="localsearch localsearch-prog">
304 <primary sortas="b-localsearch">localsearch</primary>
305 </indexterm>
306 </listitem>
307 </varlistentry>
308 </variablelist>
309
310 </sect2>
311
312</sect1>
Note: See TracBrowser for help on using the repository browser.