source: general/genlib/glib2.xml@ 2e4d847e

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 2e4d847e was 2e4d847e, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Update to glib-2.64.1.

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

  • Property mode set to 100644
File size: 16.7 KB
RevLine 
[52d29f7]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[52d29f7]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[6489da7]7 <!ENTITY glib2-download-http "&gnome-download-http;/glib/&glib2-minor;/glib-&glib2-version;.tar.xz">
8 <!ENTITY glib2-download-ftp "&gnome-download-ftp;/glib/&glib2-minor;/glib-&glib2-version;.tar.xz">
[2e4d847e]9 <!ENTITY glib2-md5sum "8dec46be3e4fa349b733ef6d4fbeaa3e">
[8a3feaa]10 <!ENTITY glib2-size "4.5 MB">
[182cdea]11 <!ENTITY glib2-buildsize "176 MB (add 6 MB for tests)">
[b5dc1cf]12 <!ENTITY glib2-time "0.5 SBU (add 0.5 SBU for tests; both using parallelism=4)">
[52d29f7]13]>
14
[7c461b3]15<sect1 id="glib2" xreflabel="GLib-&glib2-version;">
[7c18102]16 <?dbhtml filename="glib2.html"?>
[4c3474fe]17
[7c18102]18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
[4c3474fe]22
[7c18102]23 <title>GLib-&glib2-version;</title>
[4c3474fe]24
[7c18102]25 <indexterm zone="glib2">
26 <primary sortas="a-GLib2">GLib2</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to GLib</title>
[4c3474fe]31
[b84342d6]32 <para>
[2c38e951]33 The <application>GLib</application> package contains low-level
[0d7900a]34 libraries useful for providing data structure handling for C, portability
[b84342d6]35 wrappers and interfaces for such runtime functionality as an
36 event loop, threads, dynamic loading and an object system.
37 </para>
[4c3474fe]38
[62a5037e]39 &lfs91_checked;
[08f1ff7]40
[7c18102]41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
[b84342d6]44 <para>
45 Download (HTTP): <ulink url="&glib2-download-http;"/>
46 </para>
[7c18102]47 </listitem>
48 <listitem>
[b84342d6]49 <para>
50 Download (FTP): <ulink url="&glib2-download-ftp;"/>
51 </para>
[7c18102]52 </listitem>
53 <listitem>
[b84342d6]54 <para>
55 Download MD5 sum: &glib2-md5sum;
56 </para>
[7c18102]57 </listitem>
58 <listitem>
[b84342d6]59 <para>
60 Download size: &glib2-size;
61 </para>
[7c18102]62 </listitem>
63 <listitem>
[b84342d6]64 <para>
65 Estimated disk space required: &glib2-buildsize;
66 </para>
[7c18102]67 </listitem>
68 <listitem>
[b84342d6]69 <para>
70 Estimated build time: &glib2-time;
71 </para>
[7c18102]72 </listitem>
73 </itemizedlist>
[4c3474fe]74
[a9c0e8d]75 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
76 <itemizedlist spacing="compact">
77 <listitem>
78 <para>
79 Optional patch:
80 <ulink url="&patch-root;/glib-&glib2-version;-skip_warnings-1.patch"/>
81 </para>
82 </listitem>
83 </itemizedlist>
[4c3474fe]84
[a9c0e8d]85 <bridgehead renderas="sect3">GLib Dependencies</bridgehead>
[0a4eeb6]86
[1b9e36e]87 <bridgehead renderas="sect4">Recommended</bridgehead>
[b8a081c]88 <para role="recommended">
[7da16bf]89 <xref linkend="libxslt"/> and
[d3e019dc]90 <xref linkend="pcre"/> (built with Unicode properties)
[b8a081c]91 </para>
[1b9e36e]92
[7c18102]93 <bridgehead renderas="sect4">Optional</bridgehead>
[b8a081c]94 <para role="optional">
[57a7172]95 <xref linkend="dbus"/> and
96 <ulink url="https://bindfs.org/">bindfs</ulink>
97 (both may be used in some tests),
[cd0c5a70]98 <xref linkend="gdb"/> (for bindings),
[57a7172]99 <xref linkend="DocBook"/>,
[d04e883]100 <xref linkend="docbook-xsl"/>, and
101 <xref linkend="gtk-doc"/>
[cd0c5a70]102 (to build API documentation)
[b8a081c]103 </para>
[b31b493]104
[75103a06]105 <bridgehead renderas="sect4">Additional Runtime Dependencies</bridgehead>
[86ceb63]106 <para role="recommended">
[572553b]107 <xref role="runtime" linkend="gobject-introspection"/>
108 (should be installed before gtk+, atk, etc.)
[86ceb63]109 </para>
[b84342d6]110 <para role="optional">
[70b674f2]111 Quoted directly from the <filename>INSTALL</filename> file:
[b84342d6]112 <quote>Some of the mimetype-related functionality in GIO requires the
113 <command>update-mime-database</command> and
[0d7900a]114 <command>update-desktop-database</command> utilities</quote>,
[b84342d6]115 which are part of
[572553b]116 <xref role="runtime" linkend="shared-mime-info"/> and
117 <xref role="runtime" linkend="desktop-file-utils"/>, respectively.
[57a7172]118 These two utilities are also needed for some tests.
[b84342d6]119 </para>
[75103a06]120
[1039de3]121 <para condition="html" role="usernotes">User Notes:
[7ded7e3]122 <ulink url="&blfs-wiki;/glib2"/>
123 </para>
[7c18102]124 </sect2>
[4c3474fe]125
[7c18102]126 <sect2 role="installation">
127 <title>Installation of GLib</title>
128
[d56e7df]129 <para>
130 If desired, apply the optional patch. In many cases, applications that
131 use this library, either directly or indirectly via other libraries such
132 as <xref linkend="gtk3"/>, output numerous warnings when run from the
133 command line. This patch enables the use of an environment variable,
134 <envar>GLIB_LOG_LEVEL</envar>, that supresses unwanted messages. The
135 value of the variable is a digit that corresponds to:
136 </para>
[a9c0e8d]137
138 <simplelist>
139 <member>1 Alert</member>
140 <member>2 Critical</member>
141 <member>3 Error</member>
142 <member>4 Warning</member>
143 <member>5 Notice</member>
144 </simplelist>
145
[d56e7df]146 <para>
147 For instance <userinput>export GLIB_LOG_LEVEL=4</userinput> will skip
148 output of Warning and Notice messages (and Info/Debug messages if they
149 are turned on). If <envar>GLIB_LOG_LEVEL</envar> is not defined, normal
150 message output will not be affected.
151 </para>
[a9c0e8d]152
153<screen><userinput>patch -Np1 -i ../glib-&glib2-version;-skip_warnings-1.patch</userinput></screen>
154
[aee85523]155 <warning>
[ca041f6]156 <para>
[aee85523]157
[ca041f6]158 If upgrading from a previous version of GLib that was built using
[aee85523]159 autotools, and the <application>libtool</application> archives (.la
160 files) were installed, you will need to adjust all installed libtool
161 archives,
[ca041f6]162 <filename>/usr/lib/libg{io,lib,module,object,thread}-2.0.la</filename>,
[aee85523]163 to replace references to the libtool archives for this package with the
164 appropriate linker library flag (-l),
165 <command>-lg{io,lib,module,object,thread}</command>. 600+ files must be
[3ab0b56]166 modified on a complete gnome desktop.
[aee85523]167
168 </para>
169
170 <para>
171 Alternatively, you can just remove the unneeded .la files
172 with the script at <xref linkend="la-files"/>.
[ca041f6]173 </para>
174 </warning>
[aee85523]175
[b84342d6]176 <para>
177 Install <application>GLib</application> by running the following
178 commands:
179 </para>
[b31b493]180
[2cc9305]181<screen><userinput>mkdir build &amp;&amp;
182cd build &amp;&amp;
[0a4eeb6]183
[2cc9305]184meson --prefix=/usr \
185 -Dman=true \
186 -Dselinux=disabled \
187 .. &amp;&amp;
[0a4eeb6]188ninja</userinput></screen>
[3a802b2]189
[6489da7]190 <note><para>
191 If <xref linkend="libxslt"/> is installed, the above command may
192 indicate several (about 33) errors that start with "Error: no ID for
193 constraint linkend:" when gnerating the man pages. These are harmless.
194 </para></note>
195
[b84342d6]196 <para>
197 The <application>GLib</application> test suite requires
[2c38e951]198 <application>desktop-file-utils</application> for some tests. However,
[b84342d6]199 <application>desktop-file-utils</application> requires
200 <application>GLib</application> in order to compile; therefore, you must
201 first install <application>GLib</application> and then run the test
202 suite.
203 </para>
[4c3474fe]204
[b84342d6]205 <para>
206 Now, as the <systemitem class="username">root</systemitem> user:
207 </para>
[4c3474fe]208
[aee85523]209<screen role="root"><userinput>ninja install &amp;&amp;
210
211mkdir -p /usr/share/doc/glib-&glib2-version; &amp;&amp;
[4509c956]212cp -r ../docs/reference/{NEWS,gio,glib,gobject} /usr/share/doc/glib-&glib2-version;</userinput></screen>
[7da16bf]213
[b84342d6]214 <para>
[d1a5310]215 You should now install <xref linkend="desktop-file-utils"/> and
216 <xref linkend="shared-mime-info"/> and proceed to
[b84342d6]217 run the test suite.
218 </para>
[c0e1d87]219
[b84342d6]220 <para>
[2c38e951]221 To test the results, after having installed the package, issue:
[4979e5c]222 <command>ninja test</command>.
[f11d372a]223 <!-- glib issue #1954: -->
[2e4d847e]224 <!-- One test named gdbus-server-auth sometimes fails.-->
[4979e5c]225 <!-- SysV has the symlink now, so gdatetime no longer fails.-->
[7da16bf]226 <!-- Needs /etc/localtime to be a symbolic link. In addition
227 the link must be to some place like /usr/share/zoneinfo/...
228
229 This can be overcome if the line below in glib/tests/gdatetime.c
230 is removed or commented out.
231 g_assert_true (*g_time_zone_get_identifier (tz) != '/');
[3ab0b56]232
[2e4d847e]233 NOTE: systemd implements this as a hard requirement. -->
[d1a5310]234 <!-- with 2.60.4 on systemd, all tests pass. -->
[2e4d847e]235 <!-- with 2.64.1 on sysV, all tests pass. -->
[b84342d6]236 </para>
[c0e1d87]237
[7c18102]238 </sect2>
[4c3474fe]239
[7c18102]240 <sect2 role="commands">
241 <title>Command Explanations</title>
[864b24de]242
[90ae149]243 <para>
[7da16bf]244 <parameter>-Dman=true</parameter>: This switch causes the
245 build to create and install the package man pages.
[b84342d6]246 </para>
[7147513]247
[860b8f3]248 <para>
[2e456fd]249 <parameter>-Dselinux=disabled</parameter>: This switch disables
[3ab0b56]250 support for selinux which is not supported in BLFS.
[860b8f3]251 </para>
252
[7da16bf]253 <para>
[aa41434]254 <option>-Ddoc=true</option>: This switch causes the
[7da16bf]255 build to create and install the API documentation.
256 </para>
[eb954a8]257
[7c18102]258 </sect2>
[4c3474fe]259
[7c18102]260 <sect2 role="content">
261 <title>Contents</title>
262
263 <segmentedlist>
264 <segtitle>Installed Programs</segtitle>
265 <segtitle>Installed Libraries</segtitle>
266 <segtitle>Installed Directories</segtitle>
[4c3474fe]267
[7c18102]268 <seglistitem>
[0913f48]269 <seg>
[0a4eeb6]270 gapplication, gdbus, gdbus-codegen,
[cd0c5a70]271 gio, gio-launch-desktop, gio-querymodules,
[0913f48]272 glib-compile-resources, glib-compile-schemas,
[0a4eeb6]273 glib-genmarshal, glib-gettextize,
274 glib-mkenums, gobject-query,
275 gresource, gsettings,
276 gtester, and gtester-report
[0913f48]277 </seg>
278 <seg>
[0a4eeb6]279 libgio-2.0.so,
280 libglib-2.0.so,
281 libgmodule-2.0.so,
282 libgobject-2.0.so, and
283 libgthread-2.0.so
[0913f48]284 </seg>
285 <seg>
[d3e019dc]286 /usr/include/gio-unix-2.0,
[0a4eeb6]287 /usr/include/glib-2.0,
[eb954a8]288 /usr/lib/glib-2.0,
289 /usr/share/glib-2.0, and
290 /usr/share/gtk-doc/html/{gio,glib,gobject}
[0913f48]291 </seg>
[7c18102]292 </seglistitem>
293 </segmentedlist>
[4c3474fe]294
[7c18102]295 <variablelist>
296 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
297 <?dbfo list-presentation="list"?>
298 <?dbhtml list-presentation="table"?>
[4c3474fe]299
[837e96ed]300 <varlistentry id="gapplication">
301 <term><command>gapplication</command></term>
302 <listitem>
303 <para>
[c5ebc8ac]304 can be used to start applications and to send
[f3429309]305 messages to already-running instances of other applications.
[837e96ed]306 </para>
307 <indexterm zone="glib2 gapplication">
308 <primary sortas="b-gapplication">application</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
[b31b493]312 <varlistentry id="gdbus">
313 <term><command>gdbus</command></term>
314 <listitem>
[b84342d6]315 <para>
[d3e019dc]316 is a simple tool used for working with
317 <application>D-Bus</application> objects.
[b84342d6]318 </para>
[b31b493]319 <indexterm zone="glib2 gdbus">
320 <primary sortas="b-gdbus">gdbus</primary>
321 </indexterm>
322 </listitem>
323 </varlistentry>
324
325 <varlistentry id="gdbus-codegen">
326 <term><command>gdbus-codegen</command></term>
327 <listitem>
[b84342d6]328 <para>
[0d7900a]329 is used to generate code and/or documentation for one or
[b84342d6]330 more <application>D-Bus</application> interfaces.
331 </para>
[b31b493]332 <indexterm zone="glib2 gdbus-codegen">
333 <primary sortas="b-gdbus-codegen">gdbus-codegen</primary>
334 </indexterm>
335 </listitem>
336 </varlistentry>
337
[0797528]338 <varlistentry id="gio">
339 <term><command>gio</command></term>
340 <listitem>
341 <para>
342 is a utility that makes many <application>GIO</application>
343 features available from the command line.
344 </para>
345 <indexterm zone="glib2 gio">
346 <primary sortas="b-gio">gio</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
350
[b31b493]351 <varlistentry id="gio-querymodules">
352 <term><command>gio-querymodules</command></term>
353 <listitem>
[b84342d6]354 <para>
[c5ebc8ac]355 is used to create a <filename>giomodule.cache</filename> file in
356 the listed directories. This file lists the implemented extension
357 points for each module that has been found.
[b84342d6]358 </para>
[b31b493]359 <indexterm zone="glib2 gio-querymodules">
360 <primary sortas="b-gio-querymodules">gio-querymodules</primary>
361 </indexterm>
362 </listitem>
363 </varlistentry>
364
365 <varlistentry id="glib-compile-resources">
366 <term><command>glib-compile-resources</command></term>
367 <listitem>
[b84342d6]368 <para>
[0797528]369 is used to read the resource description from a file and
[0d7900a]370 the files that it references to create a binary resource
[b84342d6]371 bundle that is suitable for use with the GResource API.
372 </para>
[b31b493]373 <indexterm zone="glib2 glib-compile-resources">
374 <primary sortas="b-glib-compile-resources">glib-compile-resources</primary>
375 </indexterm>
376 </listitem>
377 </varlistentry>
378
379 <varlistentry id="glib-compile-schemas">
380 <term><command>glib-compile-schemas</command></term>
381 <listitem>
[b84342d6]382 <para>
[0d7900a]383 is used to compile all the GSettings XML schema files
[3ab0b56]384 in a directory into a binary file with the name
[c5ebc8ac]385 <filename>gschemas.compiled</filename> that can be used by GSettings.
[b84342d6]386 </para>
[b31b493]387 <indexterm zone="glib2 glib-compile-schemas">
388 <primary sortas="b-glib-compile-resources">glib-compile-schemas</primary>
389 </indexterm>
390 </listitem>
391 </varlistentry>
392
[7c18102]393 <varlistentry id="glib-genmarshal">
394 <term><command>glib-genmarshal</command></term>
395 <listitem>
[b84342d6]396 <para>
397 is a C code marshaller generation utility for GLib closures.
398 </para>
[7c18102]399 <indexterm zone="glib2 glib-genmarshal">
400 <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
401 </indexterm>
402 </listitem>
403 </varlistentry>
[4c3474fe]404
[7c18102]405 <varlistentry id="glib-gettextize">
406 <term><command>glib-gettextize</command></term>
407 <listitem>
[b84342d6]408 <para>
409 is a variant of the <application>gettext</application>
410 internationalization utility.
411 </para>
[7c18102]412 <indexterm zone="glib2 glib-gettextize">
413 <primary sortas="b-glib-gettextize">glib-gettextize</primary>
414 </indexterm>
415 </listitem>
416 </varlistentry>
[4c3474fe]417
[7c18102]418 <varlistentry id="glib-mkenums">
419 <term><command>glib-mkenums</command></term>
420 <listitem>
[b84342d6]421 <para>
422 is a C language enum description generation utility.
423 </para>
[7c18102]424 <indexterm zone="glib2 glib-mkenums">
425 <primary sortas="b-glib-mkenums">glib-mkenums</primary>
426 </indexterm>
427 </listitem>
428 </varlistentry>
[4c3474fe]429
[7c18102]430 <varlistentry id="gobject-query">
431 <term><command>gobject-query</command></term>
432 <listitem>
[b84342d6]433 <para>
434 is a small utility that draws a tree of types.
435 </para>
[7c18102]436 <indexterm zone="glib2 gobject-query">
437 <primary sortas="b-gobject-query">gobject-query</primary>
438 </indexterm>
439 </listitem>
440 </varlistentry>
[4c3474fe]441
[b31b493]442 <varlistentry id="gresource">
443 <term><command>gresource</command></term>
444 <listitem>
[b84342d6]445 <para>
[0797528]446 offers a simple command line interface to GResource.
[b84342d6]447 </para>
[b31b493]448 <indexterm zone="glib2 gresource">
449 <primary sortas="b-gresource">gresource</primary>
450 </indexterm>
451 </listitem>
452 </varlistentry>
453
454 <varlistentry id="gsettings">
455 <term><command>gsettings</command></term>
456 <listitem>
[b84342d6]457 <para>
[0797528]458 offers a simple command line interface to GSettings.
[b84342d6]459 </para>
[b31b493]460 <indexterm zone="glib2 gsettings">
461 <primary sortas="b-gsettings">gsettings</primary>
462 </indexterm>
463 </listitem>
464 </varlistentry>
465
[e103708b]466 <varlistentry id="gtester">
467 <term><command>gtester</command></term>
468 <listitem>
[b84342d6]469 <para>
470 is a test running utility.
471 </para>
[e103708b]472 <indexterm zone="glib2 gtester">
473 <primary sortas="b-gtester">gtester</primary>
474 </indexterm>
475 </listitem>
476 </varlistentry>
477
478 <varlistentry id="gtester-report">
479 <term><command>gtester-report</command></term>
480 <listitem>
[b84342d6]481 <para>
482 is a test report formatting utility.
483 </para>
[e103708b]484 <indexterm zone="glib2 gtester-report">
485 <primary sortas="b-gtester-report">gtester-report</primary>
486 </indexterm>
487 </listitem>
488 </varlistentry>
489
[7c18102]490 <varlistentry id="GLib-libraries">
491 <term>GLib libraries</term>
492 <listitem>
[b84342d6]493 <para>
[2c38e951]494 contain low-level core libraries for the
[b84342d6]495 <application>GIMP</application> Toolkit.
496 </para>
[7c18102]497 <indexterm zone="glib2 GLib-libraries">
498 <primary sortas="c-GLib-libraries">Glib libraries</primary>
499 </indexterm>
500 </listitem>
501 </varlistentry>
[4c3474fe]502
[7c18102]503 </variablelist>
504
505 </sect2>
[d4340990]506
507</sect1>
Note: See TracBrowser for help on using the repository browser.