source: general/genlib/glib2.xml@ 4454113

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 xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 4454113 was 25ce227, checked in by Bruce Dubbs <bdubbs@…>, 20 months ago

Update to glib-2.74.0.

  • Property mode set to 100644
File size: 17.5 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">
[25ce227]9 <!ENTITY glib2-md5sum "06745709784eddb4a3860e1814f795e8">
10 <!ENTITY glib2-size "4.9 MB">
11 <!ENTITY glib2-buildsize "119 MB (add 7 MB for tests)">
12 <!ENTITY glib2-time "0.4 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 <date>$Date$</date>
20 </sect1info>
[4c3474fe]21
[7c18102]22 <title>GLib-&glib2-version;</title>
[4c3474fe]23
[7c18102]24 <indexterm zone="glib2">
25 <primary sortas="a-GLib2">GLib2</primary>
26 </indexterm>
27
28 <sect2 role="package">
29 <title>Introduction to GLib</title>
[4c3474fe]30
[b84342d6]31 <para>
[2c38e951]32 The <application>GLib</application> package contains low-level
[0d7900a]33 libraries useful for providing data structure handling for C, portability
[b84342d6]34 wrappers and interfaces for such runtime functionality as an
35 event loop, threads, dynamic loading and an object system.
36 </para>
[4c3474fe]37
[ce1dd9df]38 &lfs112_checked;
[08f1ff7]39
[7c18102]40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
[b84342d6]43 <para>
44 Download (HTTP): <ulink url="&glib2-download-http;"/>
45 </para>
[7c18102]46 </listitem>
47 <listitem>
[b84342d6]48 <para>
49 Download (FTP): <ulink url="&glib2-download-ftp;"/>
50 </para>
[7c18102]51 </listitem>
52 <listitem>
[b84342d6]53 <para>
54 Download MD5 sum: &glib2-md5sum;
55 </para>
[7c18102]56 </listitem>
57 <listitem>
[b84342d6]58 <para>
59 Download size: &glib2-size;
60 </para>
[7c18102]61 </listitem>
62 <listitem>
[b84342d6]63 <para>
64 Estimated disk space required: &glib2-buildsize;
65 </para>
[7c18102]66 </listitem>
67 <listitem>
[b84342d6]68 <para>
69 Estimated build time: &glib2-time;
70 </para>
[7c18102]71 </listitem>
72 </itemizedlist>
[4c3474fe]73
[a9c0e8d]74 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
75 <itemizedlist spacing="compact">
76 <listitem>
77 <para>
78 Optional patch:
79 <ulink url="&patch-root;/glib-&glib2-version;-skip_warnings-1.patch"/>
80 </para>
81 </listitem>
82 </itemizedlist>
[4c3474fe]83
[a9c0e8d]84 <bridgehead renderas="sect3">GLib Dependencies</bridgehead>
[0a4eeb6]85
[1b9e36e]86 <bridgehead renderas="sect4">Recommended</bridgehead>
[b8a081c]87 <para role="recommended">
[7da16bf]88 <xref linkend="libxslt"/> and
[25ce227]89 <xref linkend="pcre2"/>
[b8a081c]90 </para>
[1b9e36e]91
[7c18102]92 <bridgehead renderas="sect4">Optional</bridgehead>
[b8a081c]93 <para role="optional">
[57a7172]94 <xref linkend="dbus"/> and
95 <ulink url="https://bindfs.org/">bindfs</ulink>
96 (both may be used in some tests),
[cd0c5a70]97 <xref linkend="gdb"/> (for bindings),
[57a7172]98 <xref linkend="DocBook"/>,
[8558044]99 <xref linkend="docbook-xsl"/>,
[511f7c8f]100 <xref linkend="gtk-doc"/> (to build API documentation),
[f1fbb028]101 <xref linkend="glib-networking"/> (for some tests, but this is a circular
[511f7c8f]102 dependency), and
103 <xref linkend="sysprof"/>
[b8a081c]104 </para>
[b31b493]105
[75103a06]106 <bridgehead renderas="sect4">Additional Runtime Dependencies</bridgehead>
[86ceb63]107 <para role="recommended">
[572553b]108 <xref role="runtime" linkend="gobject-introspection"/>
109 (should be installed before gtk+, atk, etc.)
[86ceb63]110 </para>
[b84342d6]111 <para role="optional">
[70b674f2]112 Quoted directly from the <filename>INSTALL</filename> file:
[b84342d6]113 <quote>Some of the mimetype-related functionality in GIO requires the
114 <command>update-mime-database</command> and
[0d7900a]115 <command>update-desktop-database</command> utilities</quote>,
[b84342d6]116 which are part of
[572553b]117 <xref role="runtime" linkend="shared-mime-info"/> and
118 <xref role="runtime" linkend="desktop-file-utils"/>, respectively.
[57a7172]119 These two utilities are also needed for some tests.
[b84342d6]120 </para>
[75103a06]121
[1039de3]122 <para condition="html" role="usernotes">User Notes:
[7ded7e3]123 <ulink url="&blfs-wiki;/glib2"/>
124 </para>
[7c18102]125 </sect2>
[4c3474fe]126
[7c18102]127 <sect2 role="installation">
128 <title>Installation of GLib</title>
[c5ad78e]129 <!-- Remove the next para and screen for glib-2.72.3 or above
[42e002d]130 <para>
131 First, fix an issue in MIME file content lookup, which may prevent
132 displaying <command>file://</command> URL's in webkitgtk based browsers.
133 </para>
134
135<screen><userinput>patch -Np1 -i ../glib-&glib2-version;-fix_xdgmime-1.patch</userinput></screen>
[c5ad78e]136-->
[d56e7df]137 <para>
138 If desired, apply the optional patch. In many cases, applications that
139 use this library, either directly or indirectly via other libraries such
140 as <xref linkend="gtk3"/>, output numerous warnings when run from the
141 command line. This patch enables the use of an environment variable,
[2c87187]142 <envar>GLIB_LOG_LEVEL</envar>, that suppresses unwanted messages. The
[d56e7df]143 value of the variable is a digit that corresponds to:
144 </para>
[a9c0e8d]145
146 <simplelist>
147 <member>1 Alert</member>
148 <member>2 Critical</member>
149 <member>3 Error</member>
150 <member>4 Warning</member>
151 <member>5 Notice</member>
152 </simplelist>
153
[d56e7df]154 <para>
155 For instance <userinput>export GLIB_LOG_LEVEL=4</userinput> will skip
156 output of Warning and Notice messages (and Info/Debug messages if they
157 are turned on). If <envar>GLIB_LOG_LEVEL</envar> is not defined, normal
158 message output will not be affected.
159 </para>
[a9c0e8d]160
161<screen><userinput>patch -Np1 -i ../glib-&glib2-version;-skip_warnings-1.patch</userinput></screen>
162
[8b9cf4c]163 <warning>
164 <para>
165 If a previous version of glib is installed, move the headers out of the
166 way so that later packages do not encounter conflicts:
167 </para>
168
[1daf906e]169<screen role="root"><userinput remap="pre">if [ -e /usr/include/glib-2.0 ]; then
170 rm -rf /usr/include/glib-2.0.old &amp;&amp;
171 mv -vf /usr/include/glib-2.0{,.old}
172fi</userinput></screen>
[8b9cf4c]173
174 </warning>
[ddd5a70]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
[20f070d8]184meson --prefix=/usr \
185 --buildtype=release \
186 -Dman=true \
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
[14ff5ee0]193 constraint linkend:" when generating the man pages. These are harmless.
[6489da7]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;
[9ef5be6]212cp -r ../docs/reference/{gio,glib,gobject} /usr/share/doc/glib-&glib2-version;</userinput></screen>
[7da16bf]213
[b84342d6]214 <para>
[8558044]215 You should now install <xref linkend="desktop-file-utils"/> and
[d1a5310]216 <xref linkend="shared-mime-info"/> and proceed to
[b84342d6]217 run the test suite.
218 </para>
[c0e1d87]219
[16f7f0e]220 <warning>
221 <para>
[4e207bb]222 Do not run the test suite as &root; or some tests will fail
223 unexpectedly and leave some non-FHS-compliant directories in the
224 <filename class='directory'>/usr</filename> hierarchy.
[16f7f0e]225 </para>
226 </warning>
227
[b84342d6]228 <para>
[2c38e951]229 To test the results, after having installed the package, issue:
[25ce227]230 <command>LC_ALL=C ninja test</command> as a non-&root; user.
[f11d372a]231 <!-- glib issue #1954: -->
[2e4d847e]232 <!-- One test named gdbus-server-auth sometimes fails.-->
[4979e5c]233 <!-- SysV has the symlink now, so gdatetime no longer fails.-->
[7da16bf]234 <!-- Needs /etc/localtime to be a symbolic link. In addition
235 the link must be to some place like /usr/share/zoneinfo/...
236
237 This can be overcome if the line below in glib/tests/gdatetime.c
238 is removed or commented out.
239 g_assert_true (*g_time_zone_get_identifier (tz) != '/');
[3ab0b56]240
[2e4d847e]241 NOTE: systemd implements this as a hard requirement. -->
[d1a5310]242 <!-- with 2.60.4 on systemd, all tests pass. -->
[2e4d847e]243 <!-- with 2.64.1 on sysV, all tests pass. -->
[f72bfbe1]244 <!-- with 2.70.1 on sysV, all tests pass. -->
[108e563]245 <!-- with 2.70.2 on sysV, all tests pass. -->
[c5ad78e]246 <!-- with 2.72.3 on sysV, all tests pass. [pierre, July 2022] -->
[25ce227]247 <!-- with 2.74.0 on sysV, all tests pass. [bdubbs, Sep 2022] -->
[b84342d6]248 </para>
[c0e1d87]249
[1b8bba3]250 <para>
[8558044]251 Finally, if this is a reinstall from glib2-2.64.x or earlier, remove
252 (as the <systemitem class="username">root</systemitem> user) an
[1b8bba3]253 obsolete header file that interferes with some packages:
254 </para>
255
[08ff6c8]256<screen role="nodump"><userinput>rm -f /usr/include/glib-2.0/glib/gurifuncs.h</userinput></screen>
[1b8bba3]257
[7c18102]258 </sect2>
[4c3474fe]259
[7c18102]260 <sect2 role="commands">
261 <title>Command Explanations</title>
[864b24de]262
[20f070d8]263 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
264 href="../../xincludes/meson-buildtype-release.xml"/>
265
[90ae149]266 <para>
[7da16bf]267 <parameter>-Dman=true</parameter>: This switch causes the
268 build to create and install the package man pages.
[b84342d6]269 </para>
[7147513]270
[7da16bf]271 <para>
[1a27983]272 <option>-Dgtk_doc=true</option>: This switch causes the
[7da16bf]273 build to create and install the API documentation.
274 </para>
[eb954a8]275
[7c18102]276 </sect2>
[4c3474fe]277
[7c18102]278 <sect2 role="content">
279 <title>Contents</title>
280
281 <segmentedlist>
282 <segtitle>Installed Programs</segtitle>
283 <segtitle>Installed Libraries</segtitle>
284 <segtitle>Installed Directories</segtitle>
[4c3474fe]285
[7c18102]286 <seglistitem>
[0913f48]287 <seg>
[8558044]288 gapplication, gdbus, gdbus-codegen,
[8212d8a]289 gio, gio-querymodules,
[0913f48]290 glib-compile-resources, glib-compile-schemas,
[8558044]291 glib-genmarshal, glib-gettextize,
292 glib-mkenums, gobject-query,
293 gresource, gsettings,
[0a4eeb6]294 gtester, and gtester-report
[0913f48]295 </seg>
296 <seg>
[8558044]297 libgio-2.0.so,
298 libglib-2.0.so,
[0a4eeb6]299 libgmodule-2.0.so,
[8558044]300 libgobject-2.0.so, and
[0a4eeb6]301 libgthread-2.0.so
[0913f48]302 </seg>
303 <seg>
[d3e019dc]304 /usr/include/gio-unix-2.0,
[0a4eeb6]305 /usr/include/glib-2.0,
[eb954a8]306 /usr/lib/glib-2.0,
[14726fe]307 /usr/share/glib-2.0,
[8558044]308 /usr/share/doc/glib-&glib2-version;, and
[f72bfbe1]309 /usr/share/gtk-doc/html/{gio,glib,gobject} (optional)
[0913f48]310 </seg>
[7c18102]311 </seglistitem>
312 </segmentedlist>
[4c3474fe]313
[7c18102]314 <variablelist>
315 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
316 <?dbfo list-presentation="list"?>
317 <?dbhtml list-presentation="table"?>
[4c3474fe]318
[837e96ed]319 <varlistentry id="gapplication">
320 <term><command>gapplication</command></term>
321 <listitem>
322 <para>
[c5ebc8ac]323 can be used to start applications and to send
[4c24eb0a]324 messages to already-running instances of other applications
[837e96ed]325 </para>
326 <indexterm zone="glib2 gapplication">
327 <primary sortas="b-gapplication">application</primary>
328 </indexterm>
329 </listitem>
330 </varlistentry>
[b31b493]331 <varlistentry id="gdbus">
332 <term><command>gdbus</command></term>
333 <listitem>
[b84342d6]334 <para>
[d3e019dc]335 is a simple tool used for working with
[4c24eb0a]336 <application>D-Bus</application> objects
[b84342d6]337 </para>
[b31b493]338 <indexterm zone="glib2 gdbus">
339 <primary sortas="b-gdbus">gdbus</primary>
340 </indexterm>
341 </listitem>
342 </varlistentry>
343
344 <varlistentry id="gdbus-codegen">
345 <term><command>gdbus-codegen</command></term>
346 <listitem>
[b84342d6]347 <para>
[0d7900a]348 is used to generate code and/or documentation for one or
[4c24eb0a]349 more <application>D-Bus</application> interfaces
[b84342d6]350 </para>
[b31b493]351 <indexterm zone="glib2 gdbus-codegen">
352 <primary sortas="b-gdbus-codegen">gdbus-codegen</primary>
353 </indexterm>
354 </listitem>
355 </varlistentry>
356
[0797528]357 <varlistentry id="gio">
358 <term><command>gio</command></term>
359 <listitem>
360 <para>
361 is a utility that makes many <application>GIO</application>
[4c24eb0a]362 features available from the command line
[0797528]363 </para>
364 <indexterm zone="glib2 gio">
365 <primary sortas="b-gio">gio</primary>
366 </indexterm>
367 </listitem>
368 </varlistentry>
369
[b31b493]370 <varlistentry id="gio-querymodules">
371 <term><command>gio-querymodules</command></term>
372 <listitem>
[b84342d6]373 <para>
[8558044]374 is used to create a <filename>giomodule.cache</filename> file in
375 the listed directories. This file lists the implemented extension
[4c24eb0a]376 points for each module that has been found
[b84342d6]377 </para>
[b31b493]378 <indexterm zone="glib2 gio-querymodules">
379 <primary sortas="b-gio-querymodules">gio-querymodules</primary>
380 </indexterm>
381 </listitem>
382 </varlistentry>
383
384 <varlistentry id="glib-compile-resources">
385 <term><command>glib-compile-resources</command></term>
386 <listitem>
[b84342d6]387 <para>
[0797528]388 is used to read the resource description from a file and
[0d7900a]389 the files that it references to create a binary resource
[4c24eb0a]390 bundle that is suitable for use with the GResource API
[b84342d6]391 </para>
[b31b493]392 <indexterm zone="glib2 glib-compile-resources">
393 <primary sortas="b-glib-compile-resources">glib-compile-resources</primary>
394 </indexterm>
395 </listitem>
396 </varlistentry>
397
398 <varlistentry id="glib-compile-schemas">
399 <term><command>glib-compile-schemas</command></term>
400 <listitem>
[b84342d6]401 <para>
[0d7900a]402 is used to compile all the GSettings XML schema files
[8558044]403 in a directory into a binary file with the name
[4c24eb0a]404 <filename>gschemas.compiled</filename> that can be used by GSettings
[b84342d6]405 </para>
[b31b493]406 <indexterm zone="glib2 glib-compile-schemas">
407 <primary sortas="b-glib-compile-resources">glib-compile-schemas</primary>
408 </indexterm>
409 </listitem>
410 </varlistentry>
411
[7c18102]412 <varlistentry id="glib-genmarshal">
413 <term><command>glib-genmarshal</command></term>
414 <listitem>
[b84342d6]415 <para>
[4c24eb0a]416 is a C code marshaller generation utility for GLib closures
[b84342d6]417 </para>
[7c18102]418 <indexterm zone="glib2 glib-genmarshal">
419 <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
420 </indexterm>
421 </listitem>
422 </varlistentry>
[4c3474fe]423
[7c18102]424 <varlistentry id="glib-gettextize">
425 <term><command>glib-gettextize</command></term>
426 <listitem>
[b84342d6]427 <para>
428 is a variant of the <application>gettext</application>
[4c24eb0a]429 internationalization utility
[b84342d6]430 </para>
[7c18102]431 <indexterm zone="glib2 glib-gettextize">
432 <primary sortas="b-glib-gettextize">glib-gettextize</primary>
433 </indexterm>
434 </listitem>
435 </varlistentry>
[4c3474fe]436
[7c18102]437 <varlistentry id="glib-mkenums">
438 <term><command>glib-mkenums</command></term>
439 <listitem>
[b84342d6]440 <para>
[4c24eb0a]441 is a C language enum description generation utility
[b84342d6]442 </para>
[7c18102]443 <indexterm zone="glib2 glib-mkenums">
444 <primary sortas="b-glib-mkenums">glib-mkenums</primary>
445 </indexterm>
446 </listitem>
447 </varlistentry>
[4c3474fe]448
[7c18102]449 <varlistentry id="gobject-query">
450 <term><command>gobject-query</command></term>
451 <listitem>
[b84342d6]452 <para>
[4c24eb0a]453 is a small utility that draws a tree of types
[b84342d6]454 </para>
[7c18102]455 <indexterm zone="glib2 gobject-query">
456 <primary sortas="b-gobject-query">gobject-query</primary>
457 </indexterm>
458 </listitem>
459 </varlistentry>
[4c3474fe]460
[b31b493]461 <varlistentry id="gresource">
462 <term><command>gresource</command></term>
463 <listitem>
[b84342d6]464 <para>
[4c24eb0a]465 offers a simple command line interface to GResource
[b84342d6]466 </para>
[b31b493]467 <indexterm zone="glib2 gresource">
468 <primary sortas="b-gresource">gresource</primary>
469 </indexterm>
470 </listitem>
471 </varlistentry>
472
473 <varlistentry id="gsettings">
474 <term><command>gsettings</command></term>
475 <listitem>
[b84342d6]476 <para>
[4c24eb0a]477 offers a simple command line interface to GSettings
[b84342d6]478 </para>
[b31b493]479 <indexterm zone="glib2 gsettings">
480 <primary sortas="b-gsettings">gsettings</primary>
481 </indexterm>
482 </listitem>
483 </varlistentry>
484
[e103708b]485 <varlistentry id="gtester">
486 <term><command>gtester</command></term>
487 <listitem>
[b84342d6]488 <para>
[4c24eb0a]489 is a test running utility
[b84342d6]490 </para>
[e103708b]491 <indexterm zone="glib2 gtester">
492 <primary sortas="b-gtester">gtester</primary>
493 </indexterm>
494 </listitem>
495 </varlistentry>
496
497 <varlistentry id="gtester-report">
498 <term><command>gtester-report</command></term>
499 <listitem>
[b84342d6]500 <para>
[4c24eb0a]501 is a test report formatting utility
[b84342d6]502 </para>
[e103708b]503 <indexterm zone="glib2 gtester-report">
504 <primary sortas="b-gtester-report">gtester-report</primary>
505 </indexterm>
506 </listitem>
507 </varlistentry>
508
[7c18102]509 <varlistentry id="GLib-libraries">
510 <term>GLib libraries</term>
511 <listitem>
[b84342d6]512 <para>
[2c38e951]513 contain low-level core libraries for the
[4c24eb0a]514 <application>GIMP</application> Toolkit
[b84342d6]515 </para>
[7c18102]516 <indexterm zone="glib2 GLib-libraries">
517 <primary sortas="c-GLib-libraries">Glib libraries</primary>
518 </indexterm>
519 </listitem>
520 </varlistentry>
[4c3474fe]521
[7c18102]522 </variablelist>
523
524 </sect2>
[d4340990]525
526</sect1>
Note: See TracBrowser for help on using the repository browser.