source: general/genlib/glib2.xml@ a9c0e8d

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 a9c0e8d was a9c0e8d, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Add an optional patch to glib to allow user supression of
unwanted warning messages.

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

  • Property mode set to 100644
File size: 14.6 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
[56c646a5]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 "6e4db71816ccbc8dabf0e58fa7228e76">
10 <!ENTITY glib2-size "7.5 MB">
11 <!ENTITY glib2-buildsize "190 MB (additional 74 MB for tests)">
12 <!ENTITY glib2-time "1.0 SBU (additional 4.6 SBU for tests)">
[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
[5ae3416]39 &lfs81_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>
[60ddbaf]86<!--
[08f1ff7]87 <bridgehead renderas="sect4">Required</bridgehead>
[b8a081c]88 <para role="required">
[860b8f3]89 <xref linkend="python2"/> or <xref linkend="python3"/>
[0d7900a]90 </para>
[60ddbaf]91-->
[1b9e36e]92 <bridgehead renderas="sect4">Recommended</bridgehead>
[b8a081c]93 <para role="recommended">
[d3e019dc]94 <xref linkend="pcre"/> (built with Unicode properties)
[b8a081c]95 </para>
[1b9e36e]96
[7c18102]97 <bridgehead renderas="sect4">Optional</bridgehead>
[b8a081c]98 <para role="optional">
[2c38e951]99 <xref linkend="dbus"/> (required for some tests),
[2f0f7a0]100 <xref linkend="elfutils"/>,
[0797528]101 <xref linkend="gtk-doc"/>,
[60ddbaf]102 <xref linkend="python2"/>,
[0797528]103 <ulink url="ftp://oss.sgi.com/projects/fam/download/stable/">FAM library</ulink>, and
104 <ulink url="https://www.gnu.org/software/indent/">GNU Indent</ulink>
[b8a081c]105 </para>
[b31b493]106
[75103a06]107 <bridgehead renderas="sect4">Additional Runtime Dependencies</bridgehead>
[86ceb63]108 <para role="recommended">
[572553b]109 <xref role="runtime" linkend="gobject-introspection"/>
110 (should be installed before gtk+, atk, etc.)
[86ceb63]111 </para>
[b84342d6]112 <para role="optional">
[70b674f2]113 Quoted directly from the <filename>INSTALL</filename> file:
[b84342d6]114 <quote>Some of the mimetype-related functionality in GIO requires the
115 <command>update-mime-database</command> and
[0d7900a]116 <command>update-desktop-database</command> utilities</quote>,
[b84342d6]117 which are part of
[572553b]118 <xref role="runtime" linkend="shared-mime-info"/> and
119 <xref role="runtime" linkend="desktop-file-utils"/>, respectively.
[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>
129
[a9c0e8d]130 <para>If desired, appy 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 GLIB_LOG_LEVEL, that supresses unwanted messages. The value of the
135 variable is a digit that corresponds to:</para>
136
137 <simplelist>
138 <member>1 Alert</member>
139 <member>2 Critical</member>
140 <member>3 Error</member>
141 <member>4 Warning</member>
142 <member>5 Notice</member>
143 </simplelist>
144
145 <para>For instance GLIB_LOG_LEVEL=4 will skip output of Warning and
146 Notice messages (and Info/Debug messages if they are turned on).
147 If GLIB_LOG_LEVEL is not defined, normal message output will not
148 be affected.</para>
149
150<screen><userinput>patch -Np1 -i ../glib-&glib2-version;-skip_warnings-1.patch</userinput></screen>
151
[b84342d6]152 <para>
153 Install <application>GLib</application> by running the following
154 commands:
155 </para>
[b31b493]156
[60ddbaf]157<screen><userinput>./configure --prefix=/usr \
158 --with-pcre=system \
159 --with-python=/usr/bin/python3 &amp;&amp;
[7c18102]160make</userinput></screen>
[4c3474fe]161
[b84342d6]162 <para>
163 The <application>GLib</application> test suite requires
[2c38e951]164 <application>desktop-file-utils</application> for some tests. However,
[b84342d6]165 <application>desktop-file-utils</application> requires
166 <application>GLib</application> in order to compile; therefore, you must
167 first install <application>GLib</application> and then run the test
168 suite.
169 </para>
[4c3474fe]170
[b84342d6]171 <para>
172 Now, as the <systemitem class="username">root</systemitem> user:
173 </para>
[4c3474fe]174
[355495ce]175<screen role="root"><userinput>make install</userinput></screen>
[4c3474fe]176
[b84342d6]177 <para>
178 You should now install <xref linkend="desktop-file-utils"/> and proceed to
179 run the test suite.
180 </para>
[c0e1d87]181
[b84342d6]182 <para>
[2c38e951]183 To test the results, after having installed the package, issue:
[9ee5ff8]184 <command>make -k check</command>.
[b84342d6]185 </para>
[c0e1d87]186
[7c18102]187 </sect2>
[4c3474fe]188
[7c18102]189 <sect2 role="commands">
190 <title>Command Explanations</title>
[864b24de]191
[b84342d6]192 <para>
[359fdb62]193 <parameter>--with-pcre=system</parameter>: This switch causes the
[b84342d6]194 build to use a system-provided version of the
195 <application>PCRE</application> library instead of an internal
196 version.
197 </para>
[7147513]198
[0913f48]199 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[b84342d6]200 href="../../xincludes/gtk-doc-rebuild.xml"/>
[0913f48]201
[860b8f3]202 <para>
[96ecf052]203 <option>--with-python=/usr/bin/python3</option>: Add this switch if you
204 want GLib to use Python3 instead of Python2.
[860b8f3]205 </para>
206
[7c18102]207 </sect2>
[4c3474fe]208
[7c18102]209 <sect2 role="content">
210 <title>Contents</title>
211
212 <segmentedlist>
213 <segtitle>Installed Programs</segtitle>
214 <segtitle>Installed Libraries</segtitle>
215 <segtitle>Installed Directories</segtitle>
[4c3474fe]216
[7c18102]217 <seglistitem>
[0913f48]218 <seg>
[0797528]219 gapplication, gdbus, gdbus-codegen, gio, gio-querymodules,
[0913f48]220 glib-compile-resources, glib-compile-schemas,
221 glib-genmarshal, glib-gettextize, glib-mkenums,
[70b674f2]222 gobject-query, gresource, gsettings, gtester,
[0913f48]223 and gtester-report
224 </seg>
225 <seg>
226 libgio-2.0.so, libglib-2.0.so, libgmodule-2.0.so,
[70b674f2]227 libgobject-2.0.so, and libgthread-2.0.so
[0913f48]228 </seg>
229 <seg>
[d3e019dc]230 /usr/include/gio-unix-2.0,
[b22a6dbc]231 /usr/{include,lib,share}/glib-2.0,
232 /usr/lib/gio, and
233 /usr/share/gtk-doc/html/g{io,lib,object}
[0913f48]234 </seg>
[7c18102]235 </seglistitem>
236 </segmentedlist>
[4c3474fe]237
[7c18102]238 <variablelist>
239 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
240 <?dbfo list-presentation="list"?>
241 <?dbhtml list-presentation="table"?>
[4c3474fe]242
[837e96ed]243 <varlistentry id="gapplication">
244 <term><command>gapplication</command></term>
245 <listitem>
246 <para>
[c5ebc8ac]247 can be used to start applications and to send
[f3429309]248 messages to already-running instances of other applications.
[837e96ed]249 </para>
250 <indexterm zone="glib2 gapplication">
251 <primary sortas="b-gapplication">application</primary>
252 </indexterm>
253 </listitem>
254 </varlistentry>
[b31b493]255 <varlistentry id="gdbus">
256 <term><command>gdbus</command></term>
257 <listitem>
[b84342d6]258 <para>
[d3e019dc]259 is a simple tool used for working with
260 <application>D-Bus</application> objects.
[b84342d6]261 </para>
[b31b493]262 <indexterm zone="glib2 gdbus">
263 <primary sortas="b-gdbus">gdbus</primary>
264 </indexterm>
265 </listitem>
266 </varlistentry>
267
268 <varlistentry id="gdbus-codegen">
269 <term><command>gdbus-codegen</command></term>
270 <listitem>
[b84342d6]271 <para>
[0d7900a]272 is used to generate code and/or documentation for one or
[b84342d6]273 more <application>D-Bus</application> interfaces.
274 </para>
[b31b493]275 <indexterm zone="glib2 gdbus-codegen">
276 <primary sortas="b-gdbus-codegen">gdbus-codegen</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
[0797528]281 <varlistentry id="gio">
282 <term><command>gio</command></term>
283 <listitem>
284 <para>
285 is a utility that makes many <application>GIO</application>
286 features available from the command line.
287 </para>
288 <indexterm zone="glib2 gio">
289 <primary sortas="b-gio">gio</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
[b31b493]294 <varlistentry id="gio-querymodules">
295 <term><command>gio-querymodules</command></term>
296 <listitem>
[b84342d6]297 <para>
[c5ebc8ac]298 is used to create a <filename>giomodule.cache</filename> file in
299 the listed directories. This file lists the implemented extension
300 points for each module that has been found.
[b84342d6]301 </para>
[b31b493]302 <indexterm zone="glib2 gio-querymodules">
303 <primary sortas="b-gio-querymodules">gio-querymodules</primary>
304 </indexterm>
305 </listitem>
306 </varlistentry>
307
308 <varlistentry id="glib-compile-resources">
309 <term><command>glib-compile-resources</command></term>
310 <listitem>
[b84342d6]311 <para>
[0797528]312 is used to read the resource description from a file and
[0d7900a]313 the files that it references to create a binary resource
[b84342d6]314 bundle that is suitable for use with the GResource API.
315 </para>
[b31b493]316 <indexterm zone="glib2 glib-compile-resources">
317 <primary sortas="b-glib-compile-resources">glib-compile-resources</primary>
318 </indexterm>
319 </listitem>
320 </varlistentry>
321
322 <varlistentry id="glib-compile-schemas">
323 <term><command>glib-compile-schemas</command></term>
324 <listitem>
[b84342d6]325 <para>
[0d7900a]326 is used to compile all the GSettings XML schema files
[c5ebc8ac]327 in directory into a binary file with the name
328 <filename>gschemas.compiled</filename> that can be used by GSettings.
[b84342d6]329 </para>
[b31b493]330 <indexterm zone="glib2 glib-compile-schemas">
331 <primary sortas="b-glib-compile-resources">glib-compile-schemas</primary>
332 </indexterm>
333 </listitem>
334 </varlistentry>
335
[7c18102]336 <varlistentry id="glib-genmarshal">
337 <term><command>glib-genmarshal</command></term>
338 <listitem>
[b84342d6]339 <para>
340 is a C code marshaller generation utility for GLib closures.
341 </para>
[7c18102]342 <indexterm zone="glib2 glib-genmarshal">
343 <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
344 </indexterm>
345 </listitem>
346 </varlistentry>
[4c3474fe]347
[7c18102]348 <varlistentry id="glib-gettextize">
349 <term><command>glib-gettextize</command></term>
350 <listitem>
[b84342d6]351 <para>
352 is a variant of the <application>gettext</application>
353 internationalization utility.
354 </para>
[7c18102]355 <indexterm zone="glib2 glib-gettextize">
356 <primary sortas="b-glib-gettextize">glib-gettextize</primary>
357 </indexterm>
358 </listitem>
359 </varlistentry>
[4c3474fe]360
[7c18102]361 <varlistentry id="glib-mkenums">
362 <term><command>glib-mkenums</command></term>
363 <listitem>
[b84342d6]364 <para>
365 is a C language enum description generation utility.
366 </para>
[7c18102]367 <indexterm zone="glib2 glib-mkenums">
368 <primary sortas="b-glib-mkenums">glib-mkenums</primary>
369 </indexterm>
370 </listitem>
371 </varlistentry>
[4c3474fe]372
[7c18102]373 <varlistentry id="gobject-query">
374 <term><command>gobject-query</command></term>
375 <listitem>
[b84342d6]376 <para>
377 is a small utility that draws a tree of types.
378 </para>
[7c18102]379 <indexterm zone="glib2 gobject-query">
380 <primary sortas="b-gobject-query">gobject-query</primary>
381 </indexterm>
382 </listitem>
383 </varlistentry>
[4c3474fe]384
[b31b493]385 <varlistentry id="gresource">
386 <term><command>gresource</command></term>
387 <listitem>
[b84342d6]388 <para>
[0797528]389 offers a simple command line interface to GResource.
[b84342d6]390 </para>
[b31b493]391 <indexterm zone="glib2 gresource">
392 <primary sortas="b-gresource">gresource</primary>
393 </indexterm>
394 </listitem>
395 </varlistentry>
396
397 <varlistentry id="gsettings">
398 <term><command>gsettings</command></term>
399 <listitem>
[b84342d6]400 <para>
[0797528]401 offers a simple command line interface to GSettings.
[b84342d6]402 </para>
[b31b493]403 <indexterm zone="glib2 gsettings">
404 <primary sortas="b-gsettings">gsettings</primary>
405 </indexterm>
406 </listitem>
407 </varlistentry>
408
[e103708b]409 <varlistentry id="gtester">
410 <term><command>gtester</command></term>
411 <listitem>
[b84342d6]412 <para>
413 is a test running utility.
414 </para>
[e103708b]415 <indexterm zone="glib2 gtester">
416 <primary sortas="b-gtester">gtester</primary>
417 </indexterm>
418 </listitem>
419 </varlistentry>
420
421 <varlistentry id="gtester-report">
422 <term><command>gtester-report</command></term>
423 <listitem>
[b84342d6]424 <para>
425 is a test report formatting utility.
426 </para>
[e103708b]427 <indexterm zone="glib2 gtester-report">
428 <primary sortas="b-gtester-report">gtester-report</primary>
429 </indexterm>
430 </listitem>
431 </varlistentry>
432
[7c18102]433 <varlistentry id="GLib-libraries">
434 <term>GLib libraries</term>
435 <listitem>
[b84342d6]436 <para>
[2c38e951]437 contain low-level core libraries for the
[b84342d6]438 <application>GIMP</application> Toolkit.
439 </para>
[7c18102]440 <indexterm zone="glib2 GLib-libraries">
441 <primary sortas="c-GLib-libraries">Glib libraries</primary>
442 </indexterm>
443 </listitem>
444 </varlistentry>
[4c3474fe]445
[7c18102]446 </variablelist>
447
448 </sect2>
[d4340990]449
450</sect1>
Note: See TracBrowser for help on using the repository browser.