source: general/genlib/glib2.xml@ 24be2b6

12.1 gimp3 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/spidermonkey128
Last change on this file since 24be2b6 was 0b4d98d, checked in by Douglas R. Reno <renodr@…>, 11 months ago

Archive sysprof.

It's optional for the packages that use it, and they only use it to
provide additional support for profiling.

Sysprof now requires two more packages which are specific to it, so
let's archive it.

  • Property mode set to 100644
File size: 15.9 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">
[e9edfe00]9 <!ENTITY glib2-md5sum "fbddfac52807161670a11023965f1176">
10 <!ENTITY glib2-size "5.1 MB">
11 <!ENTITY glib2-buildsize "220 MB (with tests)">
12 <!ENTITY glib2-time "0.6 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
18
[7c18102]19 <title>GLib-&glib2-version;</title>
[4c3474fe]20
[7c18102]21 <indexterm zone="glib2">
22 <primary sortas="a-GLib2">GLib2</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to GLib</title>
[4c3474fe]27
[b84342d6]28 <para>
[2c38e951]29 The <application>GLib</application> package contains low-level
[0d7900a]30 libraries useful for providing data structure handling for C, portability
[b84342d6]31 wrappers and interfaces for such runtime functionality as an
32 event loop, threads, dynamic loading and an object system.
33 </para>
[4c3474fe]34
[a9779b9]35 &lfs120_checked;
[08f1ff7]36
[7c18102]37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
[b84342d6]40 <para>
41 Download (HTTP): <ulink url="&glib2-download-http;"/>
42 </para>
[7c18102]43 </listitem>
44 <listitem>
[b84342d6]45 <para>
46 Download (FTP): <ulink url="&glib2-download-ftp;"/>
47 </para>
[7c18102]48 </listitem>
49 <listitem>
[b84342d6]50 <para>
51 Download MD5 sum: &glib2-md5sum;
52 </para>
[7c18102]53 </listitem>
54 <listitem>
[b84342d6]55 <para>
56 Download size: &glib2-size;
57 </para>
[7c18102]58 </listitem>
59 <listitem>
[b84342d6]60 <para>
61 Estimated disk space required: &glib2-buildsize;
62 </para>
[7c18102]63 </listitem>
64 <listitem>
[b84342d6]65 <para>
66 Estimated build time: &glib2-time;
67 </para>
[7c18102]68 </listitem>
69 </itemizedlist>
[4c3474fe]70
[a9c0e8d]71 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
72 <itemizedlist spacing="compact">
73 <listitem>
74 <para>
75 Optional patch:
[6617624]76 <ulink url="&patch-root;/glib-skip_warnings-1.patch"/>
[a9c0e8d]77 </para>
78 </listitem>
79 </itemizedlist>
[4c3474fe]80
[a9c0e8d]81 <bridgehead renderas="sect3">GLib Dependencies</bridgehead>
[0a4eeb6]82
[1b9e36e]83 <bridgehead renderas="sect4">Recommended</bridgehead>
[b8a081c]84 <para role="recommended">
[7da16bf]85 <xref linkend="libxslt"/> and
[54d58907]86 <xref linkend="pcre2"/>
[b8a081c]87 </para>
[1b9e36e]88
[7c18102]89 <bridgehead renderas="sect4">Optional</bridgehead>
[b8a081c]90 <para role="optional">
[b327731]91 <xref linkend="dbus"/> (for some tests),
92 <xref linkend="fuse3"/> and
[57a7172]93 <ulink url="https://bindfs.org/">bindfs</ulink>
[b327731]94 (both needed for one test),
[cd0c5a70]95 <xref linkend="gdb"/> (for bindings),
[57a7172]96 <xref linkend="DocBook"/>,
[8558044]97 <xref linkend="docbook-xsl"/>,
[511f7c8f]98 <xref linkend="gtk-doc"/> (to build API documentation),
[f1fbb028]99 <xref linkend="glib-networking"/> (for some tests, but this is a circular
[511f7c8f]100 dependency), and
[0b4d98d]101 <!--<xref linkend="sysprof"/>-->
102 <ulink url="&sysprof-url;">sysprof</ulink>
[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
[7c18102]121 </sect2>
[4c3474fe]122
[7c18102]123 <sect2 role="installation">
124 <title>Installation of GLib</title>
[42e002d]125
[d56e7df]126 <para>
127 If desired, apply the optional patch. In many cases, applications that
128 use this library, either directly or indirectly via other libraries such
129 as <xref linkend="gtk3"/>, output numerous warnings when run from the
130 command line. This patch enables the use of an environment variable,
[2c87187]131 <envar>GLIB_LOG_LEVEL</envar>, that suppresses unwanted messages. The
[d56e7df]132 value of the variable is a digit that corresponds to:
133 </para>
[a9c0e8d]134
135 <simplelist>
136 <member>1 Alert</member>
137 <member>2 Critical</member>
138 <member>3 Error</member>
139 <member>4 Warning</member>
140 <member>5 Notice</member>
141 </simplelist>
142
[d56e7df]143 <para>
144 For instance <userinput>export GLIB_LOG_LEVEL=4</userinput> will skip
145 output of Warning and Notice messages (and Info/Debug messages if they
146 are turned on). If <envar>GLIB_LOG_LEVEL</envar> is not defined, normal
147 message output will not be affected.
148 </para>
[a9c0e8d]149
[6617624]150<screen><userinput>patch -Np1 -i ../glib-skip_warnings-1.patch</userinput></screen>
[a9c0e8d]151
[8b9cf4c]152 <warning>
153 <para>
154 If a previous version of glib is installed, move the headers out of the
155 way so that later packages do not encounter conflicts:
156 </para>
157
[1daf906e]158<screen role="root"><userinput remap="pre">if [ -e /usr/include/glib-2.0 ]; then
159 rm -rf /usr/include/glib-2.0.old &amp;&amp;
160 mv -vf /usr/include/glib-2.0{,.old}
161fi</userinput></screen>
[8b9cf4c]162
163 </warning>
[ddd5a70]164
[b84342d6]165 <para>
166 Install <application>GLib</application> by running the following
167 commands:
168 </para>
[b31b493]169
[2cc9305]170<screen><userinput>mkdir build &amp;&amp;
171cd build &amp;&amp;
[0a4eeb6]172
[91318eb]173meson setup .. \
174 --prefix=/usr \
[20f070d8]175 --buildtype=release \
[91318eb]176 -Dman=true &amp;&amp;
[0a4eeb6]177ninja</userinput></screen>
[3a802b2]178
[6489da7]179 <note><para>
180 If <xref linkend="libxslt"/> is installed, the above command may
181 indicate several (about 33) errors that start with "Error: no ID for
[14ff5ee0]182 constraint linkend:" when generating the man pages. These are harmless.
[6489da7]183 </para></note>
184
[b84342d6]185 <para>
186 The <application>GLib</application> test suite requires
[2c38e951]187 <application>desktop-file-utils</application> for some tests. However,
[b84342d6]188 <application>desktop-file-utils</application> requires
189 <application>GLib</application> in order to compile; therefore, you must
190 first install <application>GLib</application> and then run the test
191 suite.
192 </para>
[4c3474fe]193
[b84342d6]194 <para>
195 Now, as the <systemitem class="username">root</systemitem> user:
196 </para>
[4c3474fe]197
[aee85523]198<screen role="root"><userinput>ninja install &amp;&amp;
199
200mkdir -p /usr/share/doc/glib-&glib2-version; &amp;&amp;
[9ef5be6]201cp -r ../docs/reference/{gio,glib,gobject} /usr/share/doc/glib-&glib2-version;</userinput></screen>
[7da16bf]202
[b84342d6]203 <para>
[8558044]204 You should now install <xref linkend="desktop-file-utils"/> and
[d1a5310]205 <xref linkend="shared-mime-info"/> and proceed to
[b84342d6]206 run the test suite.
207 </para>
[c0e1d87]208
[16f7f0e]209 <warning>
210 <para>
[4e207bb]211 Do not run the test suite as &root; or some tests will fail
212 unexpectedly and leave some non-FHS-compliant directories in the
213 <filename class='directory'>/usr</filename> hierarchy.
[16f7f0e]214 </para>
215 </warning>
216
[b84342d6]217 <para>
[2c38e951]218 To test the results, after having installed the package, issue:
[25ce227]219 <command>LC_ALL=C ninja test</command> as a non-&root; user.
[b84342d6]220 </para>
[7c18102]221 </sect2>
[4c3474fe]222
[7c18102]223 <sect2 role="commands">
224 <title>Command Explanations</title>
[864b24de]225
[20f070d8]226 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
227 href="../../xincludes/meson-buildtype-release.xml"/>
228
[90ae149]229 <para>
[7da16bf]230 <parameter>-Dman=true</parameter>: This switch causes the
231 build to create and install the package man pages.
[b84342d6]232 </para>
[7147513]233
[7da16bf]234 <para>
[1a27983]235 <option>-Dgtk_doc=true</option>: This switch causes the
[7da16bf]236 build to create and install the API documentation.
237 </para>
[eb954a8]238
[7c18102]239 </sect2>
[4c3474fe]240
[7c18102]241 <sect2 role="content">
242 <title>Contents</title>
243
244 <segmentedlist>
245 <segtitle>Installed Programs</segtitle>
246 <segtitle>Installed Libraries</segtitle>
247 <segtitle>Installed Directories</segtitle>
[4c3474fe]248
[7c18102]249 <seglistitem>
[0913f48]250 <seg>
[8558044]251 gapplication, gdbus, gdbus-codegen,
[8212d8a]252 gio, gio-querymodules,
[0913f48]253 glib-compile-resources, glib-compile-schemas,
[8558044]254 glib-genmarshal, glib-gettextize,
255 glib-mkenums, gobject-query,
256 gresource, gsettings,
[0a4eeb6]257 gtester, and gtester-report
[0913f48]258 </seg>
259 <seg>
[8558044]260 libgio-2.0.so,
261 libglib-2.0.so,
[0a4eeb6]262 libgmodule-2.0.so,
[8558044]263 libgobject-2.0.so, and
[0a4eeb6]264 libgthread-2.0.so
[0913f48]265 </seg>
266 <seg>
[d3e019dc]267 /usr/include/gio-unix-2.0,
[0a4eeb6]268 /usr/include/glib-2.0,
[ed92105]269 /usr/lib/gio,
[eb954a8]270 /usr/lib/glib-2.0,
[14726fe]271 /usr/share/glib-2.0,
[321978b6]272 /usr/share/doc/{glib-2.0,glib-&glib2-version;}, and
[f72bfbe1]273 /usr/share/gtk-doc/html/{gio,glib,gobject} (optional)
[0913f48]274 </seg>
[7c18102]275 </seglistitem>
276 </segmentedlist>
[4c3474fe]277
[7c18102]278 <variablelist>
279 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
280 <?dbfo list-presentation="list"?>
281 <?dbhtml list-presentation="table"?>
[4c3474fe]282
[837e96ed]283 <varlistentry id="gapplication">
284 <term><command>gapplication</command></term>
285 <listitem>
286 <para>
[c5ebc8ac]287 can be used to start applications and to send
[4c24eb0a]288 messages to already-running instances of other applications
[837e96ed]289 </para>
290 <indexterm zone="glib2 gapplication">
291 <primary sortas="b-gapplication">application</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
[b31b493]295 <varlistentry id="gdbus">
296 <term><command>gdbus</command></term>
297 <listitem>
[b84342d6]298 <para>
[d3e019dc]299 is a simple tool used for working with
[4c24eb0a]300 <application>D-Bus</application> objects
[b84342d6]301 </para>
[b31b493]302 <indexterm zone="glib2 gdbus">
303 <primary sortas="b-gdbus">gdbus</primary>
304 </indexterm>
305 </listitem>
306 </varlistentry>
307
308 <varlistentry id="gdbus-codegen">
309 <term><command>gdbus-codegen</command></term>
310 <listitem>
[b84342d6]311 <para>
[0d7900a]312 is used to generate code and/or documentation for one or
[4c24eb0a]313 more <application>D-Bus</application> interfaces
[b84342d6]314 </para>
[b31b493]315 <indexterm zone="glib2 gdbus-codegen">
316 <primary sortas="b-gdbus-codegen">gdbus-codegen</primary>
317 </indexterm>
318 </listitem>
319 </varlistentry>
320
[0797528]321 <varlistentry id="gio">
322 <term><command>gio</command></term>
323 <listitem>
324 <para>
325 is a utility that makes many <application>GIO</application>
[4c24eb0a]326 features available from the command line
[0797528]327 </para>
328 <indexterm zone="glib2 gio">
329 <primary sortas="b-gio">gio</primary>
330 </indexterm>
331 </listitem>
332 </varlistentry>
333
[b31b493]334 <varlistentry id="gio-querymodules">
335 <term><command>gio-querymodules</command></term>
336 <listitem>
[b84342d6]337 <para>
[8558044]338 is used to create a <filename>giomodule.cache</filename> file in
339 the listed directories. This file lists the implemented extension
[4c24eb0a]340 points for each module that has been found
[b84342d6]341 </para>
[b31b493]342 <indexterm zone="glib2 gio-querymodules">
343 <primary sortas="b-gio-querymodules">gio-querymodules</primary>
344 </indexterm>
345 </listitem>
346 </varlistentry>
347
348 <varlistentry id="glib-compile-resources">
349 <term><command>glib-compile-resources</command></term>
350 <listitem>
[b84342d6]351 <para>
[0797528]352 is used to read the resource description from a file and
[0d7900a]353 the files that it references to create a binary resource
[4c24eb0a]354 bundle that is suitable for use with the GResource API
[b84342d6]355 </para>
[b31b493]356 <indexterm zone="glib2 glib-compile-resources">
357 <primary sortas="b-glib-compile-resources">glib-compile-resources</primary>
358 </indexterm>
359 </listitem>
360 </varlistentry>
361
362 <varlistentry id="glib-compile-schemas">
363 <term><command>glib-compile-schemas</command></term>
364 <listitem>
[b84342d6]365 <para>
[0d7900a]366 is used to compile all the GSettings XML schema files
[8558044]367 in a directory into a binary file with the name
[4c24eb0a]368 <filename>gschemas.compiled</filename> that can be used by GSettings
[b84342d6]369 </para>
[b31b493]370 <indexterm zone="glib2 glib-compile-schemas">
371 <primary sortas="b-glib-compile-resources">glib-compile-schemas</primary>
372 </indexterm>
373 </listitem>
374 </varlistentry>
375
[7c18102]376 <varlistentry id="glib-genmarshal">
377 <term><command>glib-genmarshal</command></term>
378 <listitem>
[b84342d6]379 <para>
[4c24eb0a]380 is a C code marshaller generation utility for GLib closures
[b84342d6]381 </para>
[7c18102]382 <indexterm zone="glib2 glib-genmarshal">
383 <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
384 </indexterm>
385 </listitem>
386 </varlistentry>
[4c3474fe]387
[7c18102]388 <varlistentry id="glib-gettextize">
389 <term><command>glib-gettextize</command></term>
390 <listitem>
[b84342d6]391 <para>
392 is a variant of the <application>gettext</application>
[4c24eb0a]393 internationalization utility
[b84342d6]394 </para>
[7c18102]395 <indexterm zone="glib2 glib-gettextize">
396 <primary sortas="b-glib-gettextize">glib-gettextize</primary>
397 </indexterm>
398 </listitem>
399 </varlistentry>
[4c3474fe]400
[7c18102]401 <varlistentry id="glib-mkenums">
402 <term><command>glib-mkenums</command></term>
403 <listitem>
[b84342d6]404 <para>
[4c24eb0a]405 is a C language enum description generation utility
[b84342d6]406 </para>
[7c18102]407 <indexterm zone="glib2 glib-mkenums">
408 <primary sortas="b-glib-mkenums">glib-mkenums</primary>
409 </indexterm>
410 </listitem>
411 </varlistentry>
[4c3474fe]412
[7c18102]413 <varlistentry id="gobject-query">
414 <term><command>gobject-query</command></term>
415 <listitem>
[b84342d6]416 <para>
[4c24eb0a]417 is a small utility that draws a tree of types
[b84342d6]418 </para>
[7c18102]419 <indexterm zone="glib2 gobject-query">
420 <primary sortas="b-gobject-query">gobject-query</primary>
421 </indexterm>
422 </listitem>
423 </varlistentry>
[4c3474fe]424
[b31b493]425 <varlistentry id="gresource">
426 <term><command>gresource</command></term>
427 <listitem>
[b84342d6]428 <para>
[4c24eb0a]429 offers a simple command line interface to GResource
[b84342d6]430 </para>
[b31b493]431 <indexterm zone="glib2 gresource">
432 <primary sortas="b-gresource">gresource</primary>
433 </indexterm>
434 </listitem>
435 </varlistentry>
436
437 <varlistentry id="gsettings">
438 <term><command>gsettings</command></term>
439 <listitem>
[b84342d6]440 <para>
[4c24eb0a]441 offers a simple command line interface to GSettings
[b84342d6]442 </para>
[b31b493]443 <indexterm zone="glib2 gsettings">
444 <primary sortas="b-gsettings">gsettings</primary>
445 </indexterm>
446 </listitem>
447 </varlistentry>
448
[e103708b]449 <varlistentry id="gtester">
450 <term><command>gtester</command></term>
451 <listitem>
[b84342d6]452 <para>
[4c24eb0a]453 is a test running utility
[b84342d6]454 </para>
[e103708b]455 <indexterm zone="glib2 gtester">
456 <primary sortas="b-gtester">gtester</primary>
457 </indexterm>
458 </listitem>
459 </varlistentry>
460
461 <varlistentry id="gtester-report">
462 <term><command>gtester-report</command></term>
463 <listitem>
[b84342d6]464 <para>
[4c24eb0a]465 is a test report formatting utility
[b84342d6]466 </para>
[e103708b]467 <indexterm zone="glib2 gtester-report">
468 <primary sortas="b-gtester-report">gtester-report</primary>
469 </indexterm>
470 </listitem>
471 </varlistentry>
472
[7c18102]473 <varlistentry id="GLib-libraries">
474 <term>GLib libraries</term>
475 <listitem>
[b84342d6]476 <para>
[2c38e951]477 contain low-level core libraries for the
[4c24eb0a]478 <application>GIMP</application> Toolkit
[b84342d6]479 </para>
[7c18102]480 <indexterm zone="glib2 GLib-libraries">
481 <primary sortas="c-GLib-libraries">Glib libraries</primary>
482 </indexterm>
483 </listitem>
484 </varlistentry>
[4c3474fe]485
[7c18102]486 </variablelist>
487
488 </sect2>
[d4340990]489
490</sect1>
Note: See TracBrowser for help on using the repository browser.