source: general/genlib/glib2.xml@ 633a3ef

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 633a3ef was 633a3ef, checked in by DJ Lucas <dj@…>, 6 years ago

Update to highlight-3.40. Fixes #9931.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@19411 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 15.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 <!ENTITY glib2-download-http "&gnome-download-http;/glib/2.54/glib-&glib2-version;.tar.xz">
8 <!ENTITY glib2-download-ftp "&gnome-download-ftp;/glib/2.54/glib-&glib2-version;.tar.xz">
9 <!ENTITY glib2-md5sum "50f83e08f080f99b1e2f0ad2b760fb81">
10 <!ENTITY glib2-size "7.5 MB">
11 <!ENTITY glib2-buildsize "166 MB (add 1 MB for tests)">
12 <!ENTITY glib2-time "0.2 SBU (using parallelism=4; add 0.5 SBU for tests)">
13]>
14
15<sect1 id="glib2" xreflabel="GLib-&glib2-version;">
16 <?dbhtml filename="glib2.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>GLib-&glib2-version;</title>
24
25 <indexterm zone="glib2">
26 <primary sortas="a-GLib2">GLib2</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to GLib</title>
31
32 <para>
33 The <application>GLib</application> package contains low-level
34 libraries useful for providing data structure handling for C, portability
35 wrappers and interfaces for such runtime functionality as an
36 event loop, threads, dynamic loading and an object system.
37 </para>
38
39 &lfs81_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&glib2-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download (FTP): <ulink url="&glib2-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download MD5 sum: &glib2-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download size: &glib2-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &glib2-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &glib2-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74
75 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
76 <itemizedlist spacing="compact">
77 <listitem>
78 <para>
79 Required file:
80 <ulink url=
81"https://raw.githubusercontent.com/GNOME/glib/master/gio/tests/gengiotypefuncs.py"/>
82 </para>
83 </listitem>
84 <listitem>
85 <para>
86 Optional patch:
87 <ulink url="&patch-root;/glib-&glib2-version;-skip_warnings-1.patch"/>
88 </para>
89 </listitem>
90 </itemizedlist>
91
92 <bridgehead renderas="sect3">GLib Dependencies</bridgehead>
93
94 <bridgehead renderas="sect4">Recommended</bridgehead>
95 <para role="recommended">
96 <xref linkend="pcre"/> (built with Unicode properties)
97 </para>
98
99 <bridgehead renderas="sect4">Optional</bridgehead>
100 <para role="optional">
101 <xref linkend="dbus"/> (required for some tests),
102 <xref linkend="elfutils"/> and
103 <xref linkend="DocBook"/>,
104 <xref linkend="docbook-xsl"/>, and
105 <xref linkend="libxslt"/> (to build manual pages)
106
107 <!-- <xref linkend="gtk-doc"/> cound not find a reference to this
108 in the meson build -->
109 </para>
110
111 <bridgehead renderas="sect4">Additional Runtime Dependencies</bridgehead>
112 <para role="recommended">
113 <xref role="runtime" linkend="gobject-introspection"/>
114 (should be installed before gtk+, atk, etc.)
115 </para>
116 <para role="optional">
117 Quoted directly from the <filename>INSTALL</filename> file:
118 <quote>Some of the mimetype-related functionality in GIO requires the
119 <command>update-mime-database</command> and
120 <command>update-desktop-database</command> utilities</quote>,
121 which are part of
122 <xref role="runtime" linkend="shared-mime-info"/> and
123 <xref role="runtime" linkend="desktop-file-utils"/>, respectively.
124 </para>
125
126 <para condition="html" role="usernotes">User Notes:
127 <ulink url="&blfs-wiki;/glib2"/>
128 </para>
129 </sect2>
130
131 <sect2 role="installation">
132 <title>Installation of GLib</title>
133
134 <para>If desired, appy the optional patch. In many cases, applications that
135 use this library, either directly or indirectly via other libraries such
136 as <xref linkend="gtk3"/>, output numerous warnings when run from the
137 command line. This patch enables the use of an environment variable,
138 GLIB_LOG_LEVEL, that supresses unwanted messages. The value of the
139 variable is a digit that corresponds to:</para>
140
141 <simplelist>
142 <member>1 Alert</member>
143 <member>2 Critical</member>
144 <member>3 Error</member>
145 <member>4 Warning</member>
146 <member>5 Notice</member>
147 </simplelist>
148
149 <para>For instance GLIB_LOG_LEVEL=4 will skip output of Warning and
150 Notice messages (and Info/Debug messages if they are turned on).
151 If GLIB_LOG_LEVEL is not defined, normal message output will not
152 be affected.</para>
153
154<screen><userinput>patch -Np1 -i ../glib-&glib2-version;-skip_warnings-1.patch</userinput></screen>
155
156 <para>
157 Install <application>GLib</application> by running the following
158 commands:
159 </para>
160
161<screen><userinput>cp ../gengiotypefuncs.py gio/tests &amp;&amp;
162
163mkdir build-glib &amp;&amp;
164cd build-glib &amp;&amp;
165
166meson --prefix=/usr -Dwith-pcre=system -Dwith-docs=no .. &amp;&amp;
167ninja</userinput></screen>
168
169 <para>
170 The <application>GLib</application> test suite requires
171 <application>desktop-file-utils</application> for some tests. However,
172 <application>desktop-file-utils</application> requires
173 <application>GLib</application> in order to compile; therefore, you must
174 first install <application>GLib</application> and then run the test
175 suite.
176 </para>
177
178 <para>
179 Now, as the <systemitem class="username">root</systemitem> user:
180 </para>
181
182 <note><para>
183 If <xref linkend="libxslt"/> is installed, the following command may
184 indicate several (about 33) errors that start with "Error: no ID for
185 constraint linkend:" when installing the man pages. These are harmless.
186 </para></note>
187
188<screen role="root"><userinput>ninja install &amp;&amp;
189
190mkdir -p /usr/share/doc/glib-&glib2-version; &amp;&amp;
191cp -r ../docs/reference/{NEWS,README,gio,glib,gobject} /usr/share/doc/glib-&glib2-version;</userinput></screen>
192
193 <para>
194 You should now install <xref linkend="desktop-file-utils"/> and proceed to
195 run the test suite.
196 </para>
197
198 <para>
199 To test the results, after having installed the package, issue:
200 <command>ninja test</command>. When run in a graphical environment,
201 one test, appinfo, fails if <xref linkend='gnome-terminal'/> is not
202 installed.
203 </para>
204
205 </sect2>
206
207 <sect2 role="commands">
208 <title>Command Explanations</title>
209
210 <para>
211 <parameter>-Dwith-pcre=system</parameter>: This switch causes the
212 build to use a system-provided version of the
213 <application>PCRE</application> library instead of an internal
214 version.
215 </para>
216
217 <para>
218 <parameter>-Dwith-docs=no</parameter>: This switch prevents
219 rebuilding the package documentation.
220 </para>
221
222 </sect2>
223
224 <sect2 role="content">
225 <title>Contents</title>
226
227 <segmentedlist>
228 <segtitle>Installed Programs</segtitle>
229 <segtitle>Installed Libraries</segtitle>
230 <segtitle>Installed Directories</segtitle>
231
232 <seglistitem>
233 <seg>
234 gapplication, gdbus, gdbus-codegen,
235 gio, gio-querymodules,
236 glib-compile-resources, glib-compile-schemas,
237 glib-genmarshal, glib-gettextize,
238 glib-mkenums, gobject-query,
239 gresource, gsettings,
240 gtester, and gtester-report
241 </seg>
242 <seg>
243 libgio-2.0.so,
244 libglib-2.0.so,
245 libgmodule-2.0.so,
246 libgobject-2.0.so, and
247 libgthread-2.0.so
248 </seg>
249 <seg>
250 /usr/include/gio-unix-2.0,
251 /usr/include/glib-2.0,
252 /usr/lib/gio,
253 /usr/lib/glib-2.0, and
254 /usr/share/glib-2.0
255 </seg>
256 </seglistitem>
257 </segmentedlist>
258
259 <variablelist>
260 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
261 <?dbfo list-presentation="list"?>
262 <?dbhtml list-presentation="table"?>
263
264 <varlistentry id="gapplication">
265 <term><command>gapplication</command></term>
266 <listitem>
267 <para>
268 can be used to start applications and to send
269 messages to already-running instances of other applications.
270 </para>
271 <indexterm zone="glib2 gapplication">
272 <primary sortas="b-gapplication">application</primary>
273 </indexterm>
274 </listitem>
275 </varlistentry>
276 <varlistentry id="gdbus">
277 <term><command>gdbus</command></term>
278 <listitem>
279 <para>
280 is a simple tool used for working with
281 <application>D-Bus</application> objects.
282 </para>
283 <indexterm zone="glib2 gdbus">
284 <primary sortas="b-gdbus">gdbus</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288
289 <varlistentry id="gdbus-codegen">
290 <term><command>gdbus-codegen</command></term>
291 <listitem>
292 <para>
293 is used to generate code and/or documentation for one or
294 more <application>D-Bus</application> interfaces.
295 </para>
296 <indexterm zone="glib2 gdbus-codegen">
297 <primary sortas="b-gdbus-codegen">gdbus-codegen</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
301
302 <varlistentry id="gio">
303 <term><command>gio</command></term>
304 <listitem>
305 <para>
306 is a utility that makes many <application>GIO</application>
307 features available from the command line.
308 </para>
309 <indexterm zone="glib2 gio">
310 <primary sortas="b-gio">gio</primary>
311 </indexterm>
312 </listitem>
313 </varlistentry>
314
315 <varlistentry id="gio-querymodules">
316 <term><command>gio-querymodules</command></term>
317 <listitem>
318 <para>
319 is used to create a <filename>giomodule.cache</filename> file in
320 the listed directories. This file lists the implemented extension
321 points for each module that has been found.
322 </para>
323 <indexterm zone="glib2 gio-querymodules">
324 <primary sortas="b-gio-querymodules">gio-querymodules</primary>
325 </indexterm>
326 </listitem>
327 </varlistentry>
328
329 <varlistentry id="glib-compile-resources">
330 <term><command>glib-compile-resources</command></term>
331 <listitem>
332 <para>
333 is used to read the resource description from a file and
334 the files that it references to create a binary resource
335 bundle that is suitable for use with the GResource API.
336 </para>
337 <indexterm zone="glib2 glib-compile-resources">
338 <primary sortas="b-glib-compile-resources">glib-compile-resources</primary>
339 </indexterm>
340 </listitem>
341 </varlistentry>
342
343 <varlistentry id="glib-compile-schemas">
344 <term><command>glib-compile-schemas</command></term>
345 <listitem>
346 <para>
347 is used to compile all the GSettings XML schema files
348 in directory into a binary file with the name
349 <filename>gschemas.compiled</filename> that can be used by GSettings.
350 </para>
351 <indexterm zone="glib2 glib-compile-schemas">
352 <primary sortas="b-glib-compile-resources">glib-compile-schemas</primary>
353 </indexterm>
354 </listitem>
355 </varlistentry>
356
357 <varlistentry id="glib-genmarshal">
358 <term><command>glib-genmarshal</command></term>
359 <listitem>
360 <para>
361 is a C code marshaller generation utility for GLib closures.
362 </para>
363 <indexterm zone="glib2 glib-genmarshal">
364 <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
365 </indexterm>
366 </listitem>
367 </varlistentry>
368
369 <varlistentry id="glib-gettextize">
370 <term><command>glib-gettextize</command></term>
371 <listitem>
372 <para>
373 is a variant of the <application>gettext</application>
374 internationalization utility.
375 </para>
376 <indexterm zone="glib2 glib-gettextize">
377 <primary sortas="b-glib-gettextize">glib-gettextize</primary>
378 </indexterm>
379 </listitem>
380 </varlistentry>
381
382 <varlistentry id="glib-mkenums">
383 <term><command>glib-mkenums</command></term>
384 <listitem>
385 <para>
386 is a C language enum description generation utility.
387 </para>
388 <indexterm zone="glib2 glib-mkenums">
389 <primary sortas="b-glib-mkenums">glib-mkenums</primary>
390 </indexterm>
391 </listitem>
392 </varlistentry>
393
394 <varlistentry id="gobject-query">
395 <term><command>gobject-query</command></term>
396 <listitem>
397 <para>
398 is a small utility that draws a tree of types.
399 </para>
400 <indexterm zone="glib2 gobject-query">
401 <primary sortas="b-gobject-query">gobject-query</primary>
402 </indexterm>
403 </listitem>
404 </varlistentry>
405
406 <varlistentry id="gresource">
407 <term><command>gresource</command></term>
408 <listitem>
409 <para>
410 offers a simple command line interface to GResource.
411 </para>
412 <indexterm zone="glib2 gresource">
413 <primary sortas="b-gresource">gresource</primary>
414 </indexterm>
415 </listitem>
416 </varlistentry>
417
418 <varlistentry id="gsettings">
419 <term><command>gsettings</command></term>
420 <listitem>
421 <para>
422 offers a simple command line interface to GSettings.
423 </para>
424 <indexterm zone="glib2 gsettings">
425 <primary sortas="b-gsettings">gsettings</primary>
426 </indexterm>
427 </listitem>
428 </varlistentry>
429
430 <varlistentry id="gtester">
431 <term><command>gtester</command></term>
432 <listitem>
433 <para>
434 is a test running utility.
435 </para>
436 <indexterm zone="glib2 gtester">
437 <primary sortas="b-gtester">gtester</primary>
438 </indexterm>
439 </listitem>
440 </varlistentry>
441
442 <varlistentry id="gtester-report">
443 <term><command>gtester-report</command></term>
444 <listitem>
445 <para>
446 is a test report formatting utility.
447 </para>
448 <indexterm zone="glib2 gtester-report">
449 <primary sortas="b-gtester-report">gtester-report</primary>
450 </indexterm>
451 </listitem>
452 </varlistentry>
453
454 <varlistentry id="GLib-libraries">
455 <term>GLib libraries</term>
456 <listitem>
457 <para>
458 contain low-level core libraries for the
459 <application>GIMP</application> Toolkit.
460 </para>
461 <indexterm zone="glib2 GLib-libraries">
462 <primary sortas="c-GLib-libraries">Glib libraries</primary>
463 </indexterm>
464 </listitem>
465 </varlistentry>
466
467 </variablelist>
468
469 </sect2>
470
471</sect1>
Note: See TracBrowser for help on using the repository browser.