source: general/genlib/glib2.xml@ d4a411a6

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 xry111/llvm18 xry111/soup3 xry111/xf86-video-removal
Last change on this file since d4a411a6 was 16f7f0e, checked in by Xi Ruoyao <xry111@…>, 22 months ago

Squashed commit of UEFI tags for 11.2 and some text changes

grub-setup: update version numbers in example to match LFS 11.2
grub-efi: tag for 11.2
freetype2: tag for 11.2
brotli: tag for 11.2
harfbuzz: tag for 11.2
glib2: don't run test suite as root (text only change)
graphite2: tag for 11.2
libxml2: align explanation with acutal command (text only change)
libpng: tag for 11.2
efibootmgr: tag for 11.2
efivar: tag for 11.2
mandoc: tag for 11.2

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