[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 |
|
---|
[b31b493] | 7 | <!ENTITY glib2-download-http "&gnome-download-http;/glib/2.32/glib-&glib2-version;.tar.xz">
|
---|
| 8 | <!ENTITY glib2-download-ftp "&gnome-download-ftp;/glib/2.32/glib-&glib2-version;.tar.xz">
|
---|
[b8a081c] | 9 | <!ENTITY glib2-md5sum "032c7cf9868c9aa186b490b155a41144">
|
---|
[b31b493] | 10 | <!ENTITY glib2-size "5.9 MB">
|
---|
[b8a081c] | 11 | <!ENTITY glib2-buildsize "170 MB">
|
---|
| 12 | <!ENTITY glib2-time "1.2 SBU (additional 4.0 SBU to run the test suite)">
|
---|
[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 |
|
---|
[06b397f7] | 32 | <para>The <application>GLib</application> package contains a low-level core
|
---|
[7c18102] | 33 | library. This is useful for providing data structure handling for C,
|
---|
| 34 | portability wrappers and interfaces for such runtime functionality as an
|
---|
| 35 | event loop, threads, dynamic loading, and an object system.</para>
|
---|
[4c3474fe] | 36 |
|
---|
[4c77a949] | 37 | &lfs71_checked;
|
---|
[08f1ff7] | 38 |
|
---|
[a41f643] | 39 | <!-- Compiled against PCRE, Python, and desktop-file-utils.
|
---|
[75103a06] | 40 | 1 test failed (regex) -->
|
---|
[c0e1d87] | 41 |
|
---|
[7c18102] | 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (HTTP): <ulink url="&glib2-download-http;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download (FTP): <ulink url="&glib2-download-ftp;"/></para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download MD5 sum: &glib2-md5sum;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Download size: &glib2-size;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated disk space required: &glib2-buildsize;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>Estimated build time: &glib2-time;</para>
|
---|
| 61 | </listitem>
|
---|
| 62 | </itemizedlist>
|
---|
[4c3474fe] | 63 |
|
---|
[06b397f7] | 64 | <bridgehead renderas="sect3">GLib Dependencies</bridgehead>
|
---|
[4c3474fe] | 65 |
|
---|
[08f1ff7] | 66 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[b8a081c] | 67 | <para role="required">
|
---|
| 68 | <xref linkend="libffi"/> and
|
---|
| 69 | <xref linkend="python2"/>
|
---|
[08f1ff7] | 70 | </para>
|
---|
[4c3474fe] | 71 |
|
---|
[1b9e36e] | 72 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[b8a081c] | 73 | <para role="recommended">
|
---|
| 74 | <xref linkend="pcre"/> (built with unicode properties)
|
---|
| 75 | </para>
|
---|
[1b9e36e] | 76 |
|
---|
[7c18102] | 77 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[b8a081c] | 78 | <para role="optional">
|
---|
| 79 | <xref linkend="attr"/>,
|
---|
| 80 | <xref linkend="dbus"/> (required to run the tests),
|
---|
| 81 | <xref linkend="gamin"/> and
|
---|
| 82 | <xref linkend="gtk-doc"/>
|
---|
| 83 | </para>
|
---|
[b31b493] | 84 |
|
---|
[a41f643] | 85 | <para><application>Gamin</application> requires
|
---|
[9709041] | 86 | <application>GLib</application> in order to compile; therefore, you must
|
---|
| 87 | first install <application>GLib</application>, then compile
|
---|
| 88 | <application>Gamin</application>, and recompile
|
---|
[b31b493] | 89 | <application>GLib</application> against it.</para>
|
---|
[4c3474fe] | 90 |
|
---|
[75103a06] | 91 | <bridgehead renderas="sect4">Additional Runtime Dependencies</bridgehead>
|
---|
| 92 | <para role="optional">Quoted directly from the <filename>INSTALL</filename>
|
---|
| 93 | file; <quote>Some of the mimetype-related functionality in GIO requires the
|
---|
| 94 | <command>update-mime-database</command> and
|
---|
[3b10fa8] | 95 | <command>update-desktop-database</command> utilities</quote>, which are part of
|
---|
[75103a06] | 96 | <xref linkend="shared-mime-info"/> and
|
---|
[3b10fa8] | 97 | <xref linkend="desktop-file-utils"/>, respectively.</para>
|
---|
[75103a06] | 98 |
|
---|
[1039de3] | 99 | <para condition="html" role="usernotes">User Notes:
|
---|
| 100 | <ulink url="&blfs-wiki;/glib2"/></para>
|
---|
| 101 |
|
---|
[7c18102] | 102 | </sect2>
|
---|
[4c3474fe] | 103 |
|
---|
[7c18102] | 104 | <sect2 role="installation">
|
---|
| 105 | <title>Installation of GLib</title>
|
---|
| 106 |
|
---|
[06b397f7] | 107 | <para>Install <application>GLib</application> by running the following
|
---|
[7c18102] | 108 | commands:</para>
|
---|
| 109 |
|
---|
[75103a06] | 110 | <!-- This should be discussed as the instructions in the tarball give
|
---|
| 111 | many reasons why the internal PCRE should be used -->
|
---|
[b31b493] | 112 |
|
---|
| 113 | <!-- Re: PCRE 8.30 is bundled, and BLFS has same version -->
|
---|
| 114 |
|
---|
| 115 | <screen><userinput>PCRE_LIBS=-lpcre PCRE_CFLAGS=" " \
|
---|
| 116 | LIBFFI_LIBS=-lffi LIBFFI_CFLAGS=" " \
|
---|
[4749981] | 117 | ./configure --prefix=/usr --sysconfdir=/etc --with-pcre=system &&
|
---|
[7c18102] | 118 | make</userinput></screen>
|
---|
[4c3474fe] | 119 |
|
---|
[fd91fea] | 120 | <para>The <application>GLib</application> test suite requires
|
---|
| 121 | <application>desktop-file-utils</application> in order to run. However,
|
---|
| 122 | <application>desktop-file-utils</application> requires
|
---|
| 123 | <application>GLib</application> in order to compile; therefore, you must
|
---|
| 124 | first install <application>GLib</application> and then run the test
|
---|
[c0e1d87] | 125 | suite.</para>
|
---|
[4c3474fe] | 126 |
|
---|
[7c18102] | 127 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[4c3474fe] | 128 |
|
---|
[7147513] | 129 | <screen role="root"><userinput>make install &&
|
---|
[08f1ff7] | 130 | ln -v -sfn ../../lib/glib-2.0/include/glibconfig.h /usr/include/glib-2.0/glibconfig.h</userinput></screen>
|
---|
[4c3474fe] | 131 |
|
---|
[c0e1d87] | 132 | <para>You should now install <xref linkend="desktop-file-utils"/> and proceed to
|
---|
| 133 | run the test suite.</para>
|
---|
| 134 |
|
---|
| 135 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 136 |
|
---|
[7c18102] | 137 | </sect2>
|
---|
[4c3474fe] | 138 |
|
---|
[7c18102] | 139 | <sect2 role="commands">
|
---|
| 140 | <title>Command Explanations</title>
|
---|
[864b24de] | 141 |
|
---|
[08f1ff7] | 142 | <para>PCRE_* and LIBFFI_*: <application>Glib</application> is a prerequsite
|
---|
| 143 | for <application>pkg_config</application>, but it wants to use
|
---|
| 144 | <application>pkg_config</application> during the build process. These
|
---|
| 145 | environment variables work around not having
|
---|
| 146 | <application>pkg_config</application> available.</para>
|
---|
| 147 |
|
---|
| 148 | <para><command>ln -v -sfn ... glibconfig.h</command>: Place a link to an
|
---|
| 149 | architecture dependent header file where programs can find it.</para>
|
---|
| 150 |
|
---|
[7147513] | 151 | <para><parameter>--with-pcre=system</parameter>: This parameter causes the
|
---|
| 152 | build to use a system-provided version of the
|
---|
| 153 | <application>PCRE</application> library instead of an internal
|
---|
| 154 | version.</para>
|
---|
| 155 |
|
---|
[0913f48] | 156 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 157 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
| 158 |
|
---|
[7c18102] | 159 | </sect2>
|
---|
[4c3474fe] | 160 |
|
---|
[b31b493] | 161 | <!-- This has never caused any problems for me. A doc hint could help me
|
---|
| 162 | understand why this was here in first place.
|
---|
| 163 |
|
---|
[0f442884] | 164 | <sect2 role="configuration">
|
---|
| 165 | <title>Configuring GLib</title>
|
---|
| 166 |
|
---|
| 167 | <sect3>
|
---|
| 168 | <title>Configuration Information</title>
|
---|
| 169 |
|
---|
| 170 | <para>By default, <application>GLib</application> assumes that all
|
---|
| 171 | filenames are in the UTF-8 charset. See the <xref
|
---|
[a4b9cd7] | 172 | linkend="locale-wrong-filename-encoding"/> section of the <xref
|
---|
[c11f2b3b] | 173 | linkend="locale-issues"/> page for more details on this kind of issue. In
|
---|
| 174 | order to tell <application>GLib</application> and applications that use
|
---|
| 175 | it that filenames are in the default locale encoding, set the variable
|
---|
| 176 | <envar>G_FILENAME_ENCODING</envar> to the value "@locale". As the
|
---|
| 177 | <systemitem class="username">root</systemitem> user:</para>
|
---|
[0f442884] | 178 |
|
---|
[c11f2b3b] | 179 | <screen role="root"><userinput>cat > /etc/profile.d/glib2-locale.sh << "EOF"
|
---|
[0f442884] | 180 | <literal># Use the current locale charset for filenames
|
---|
| 181 | # in applications using GLib
|
---|
| 182 | export G_FILENAME_ENCODING=@locale</literal>
|
---|
| 183 | EOF</userinput></screen>
|
---|
| 184 |
|
---|
| 185 | </sect3>
|
---|
| 186 |
|
---|
| 187 | </sect2>
|
---|
[b31b493] | 188 | -->
|
---|
[0f442884] | 189 |
|
---|
[7c18102] | 190 | <sect2 role="content">
|
---|
| 191 | <title>Contents</title>
|
---|
| 192 |
|
---|
| 193 | <segmentedlist>
|
---|
| 194 | <segtitle>Installed Programs</segtitle>
|
---|
| 195 | <segtitle>Installed Libraries</segtitle>
|
---|
| 196 | <segtitle>Installed Directories</segtitle>
|
---|
[4c3474fe] | 197 |
|
---|
[7c18102] | 198 | <seglistitem>
|
---|
[0913f48] | 199 | <seg>
|
---|
| 200 | gdbus, gdbus-codegen, gio-querymodules,
|
---|
| 201 | glib-compile-resources, glib-compile-schemas,
|
---|
| 202 | glib-genmarshal, glib-gettextize, glib-mkenums,
|
---|
| 203 | gobject-query, gresource, gsettings, gtester
|
---|
| 204 | and gtester-report
|
---|
| 205 | </seg>
|
---|
| 206 | <seg>
|
---|
| 207 | libgio-2.0.so, libglib-2.0.so, libgmodule-2.0.so,
|
---|
| 208 | libgobject-2.0.so, libgthread-2.0.so and libgiofam.so
|
---|
| 209 | </seg>
|
---|
| 210 | <seg>
|
---|
[b8a081c] | 211 | /usr/include/{gio-unix-2.0,glib-2.0},
|
---|
| 212 | /usr/lib/{gdbus-2.0,gio,glib-2.0},
|
---|
| 213 | /usr/share/glib-2.0 and
|
---|
[0913f48] | 214 | /usr/share/gtk-doc/html/{gio,glib,gobject}
|
---|
| 215 | </seg>
|
---|
[7c18102] | 216 | </seglistitem>
|
---|
| 217 | </segmentedlist>
|
---|
[4c3474fe] | 218 |
|
---|
[7c18102] | 219 | <variablelist>
|
---|
| 220 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 221 | <?dbfo list-presentation="list"?>
|
---|
| 222 | <?dbhtml list-presentation="table"?>
|
---|
[4c3474fe] | 223 |
|
---|
[b31b493] | 224 | <varlistentry id="gdbus">
|
---|
| 225 | <term><command>gdbus</command></term>
|
---|
| 226 | <listitem>
|
---|
| 227 | <para>is a simple tool for working with D-Bus objects.</para>
|
---|
| 228 | <indexterm zone="glib2 gdbus">
|
---|
| 229 | <primary sortas="b-gdbus">gdbus</primary>
|
---|
| 230 | </indexterm>
|
---|
| 231 | </listitem>
|
---|
| 232 | </varlistentry>
|
---|
| 233 |
|
---|
| 234 | <varlistentry id="gdbus-codegen">
|
---|
| 235 | <term><command>gdbus-codegen</command></term>
|
---|
| 236 | <listitem>
|
---|
| 237 | <para>is used to generate code and/or documentation for one or
|
---|
| 238 | more D-Bus interfaces.</para>
|
---|
| 239 | <indexterm zone="glib2 gdbus-codegen">
|
---|
| 240 | <primary sortas="b-gdbus-codegen">gdbus-codegen</primary>
|
---|
| 241 | </indexterm>
|
---|
| 242 | </listitem>
|
---|
| 243 | </varlistentry>
|
---|
| 244 |
|
---|
| 245 | <varlistentry id="gio-querymodules">
|
---|
| 246 | <term><command>gio-querymodules</command></term>
|
---|
| 247 | <listitem>
|
---|
| 248 | <para>is used to create a giomodule.cache file in the listed directories.
|
---|
| 249 | This file lists the implemented extension points for each module that has
|
---|
| 250 | been found.</para>
|
---|
| 251 | <indexterm zone="glib2 gio-querymodules">
|
---|
| 252 | <primary sortas="b-gio-querymodules">gio-querymodules</primary>
|
---|
| 253 | </indexterm>
|
---|
| 254 | </listitem>
|
---|
| 255 | </varlistentry>
|
---|
| 256 |
|
---|
| 257 | <varlistentry id="glib-compile-resources">
|
---|
| 258 | <term><command>glib-compile-resources</command></term>
|
---|
| 259 | <listitem>
|
---|
| 260 | <para>is used to read the resource description from file and
|
---|
| 261 | the files that it references to create a binary resource
|
---|
| 262 | bundle that is suitable for use with the GResource API.</para>
|
---|
| 263 | <indexterm zone="glib2 glib-compile-resources">
|
---|
| 264 | <primary sortas="b-glib-compile-resources">glib-compile-resources</primary>
|
---|
| 265 | </indexterm>
|
---|
| 266 | </listitem>
|
---|
| 267 | </varlistentry>
|
---|
| 268 |
|
---|
| 269 | <varlistentry id="glib-compile-schemas">
|
---|
| 270 | <term><command>glib-compile-schemas</command></term>
|
---|
| 271 | <listitem>
|
---|
| 272 | <para>is used to compile all the GSettings XML schema files
|
---|
| 273 | in directory into a binary file with the name gschemas.compiled
|
---|
| 274 | that can be used by GSettings.</para>
|
---|
| 275 | <indexterm zone="glib2 glib-compile-schemas">
|
---|
| 276 | <primary sortas="b-glib-compile-resources">glib-compile-schemas</primary>
|
---|
| 277 | </indexterm>
|
---|
| 278 | </listitem>
|
---|
| 279 | </varlistentry>
|
---|
| 280 |
|
---|
[7c18102] | 281 | <varlistentry id="glib-genmarshal">
|
---|
| 282 | <term><command>glib-genmarshal</command></term>
|
---|
| 283 | <listitem>
|
---|
| 284 | <para>is a C code marshaller generation utility for GLib
|
---|
| 285 | closures.</para>
|
---|
| 286 | <indexterm zone="glib2 glib-genmarshal">
|
---|
| 287 | <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
|
---|
| 288 | </indexterm>
|
---|
| 289 | </listitem>
|
---|
| 290 | </varlistentry>
|
---|
[4c3474fe] | 291 |
|
---|
[7c18102] | 292 | <varlistentry id="glib-gettextize">
|
---|
| 293 | <term><command>glib-gettextize</command></term>
|
---|
| 294 | <listitem>
|
---|
| 295 | <para>is a variant of the <application>gettext</application>
|
---|
| 296 | internationalization utility.</para>
|
---|
| 297 | <indexterm zone="glib2 glib-gettextize">
|
---|
| 298 | <primary sortas="b-glib-gettextize">glib-gettextize</primary>
|
---|
| 299 | </indexterm>
|
---|
| 300 | </listitem>
|
---|
| 301 | </varlistentry>
|
---|
[4c3474fe] | 302 |
|
---|
[7c18102] | 303 | <varlistentry id="glib-mkenums">
|
---|
| 304 | <term><command>glib-mkenums</command></term>
|
---|
| 305 | <listitem>
|
---|
| 306 | <para>is a C language enum description generation utility.</para>
|
---|
| 307 | <indexterm zone="glib2 glib-mkenums">
|
---|
| 308 | <primary sortas="b-glib-mkenums">glib-mkenums</primary>
|
---|
| 309 | </indexterm>
|
---|
| 310 | </listitem>
|
---|
| 311 | </varlistentry>
|
---|
[4c3474fe] | 312 |
|
---|
[7c18102] | 313 | <varlistentry id="gobject-query">
|
---|
| 314 | <term><command>gobject-query</command></term>
|
---|
| 315 | <listitem>
|
---|
| 316 | <para>is a small utility that draws a tree of types.</para>
|
---|
| 317 | <indexterm zone="glib2 gobject-query">
|
---|
| 318 | <primary sortas="b-gobject-query">gobject-query</primary>
|
---|
| 319 | </indexterm>
|
---|
| 320 | </listitem>
|
---|
| 321 | </varlistentry>
|
---|
[4c3474fe] | 322 |
|
---|
[b31b493] | 323 | <varlistentry id="gresource">
|
---|
| 324 | <term><command>gresource</command></term>
|
---|
| 325 | <listitem>
|
---|
| 326 | <para>offers a simple commandline interface to GResource.</para>
|
---|
| 327 | <indexterm zone="glib2 gresource">
|
---|
| 328 | <primary sortas="b-gresource">gresource</primary>
|
---|
| 329 | </indexterm>
|
---|
| 330 | </listitem>
|
---|
| 331 | </varlistentry>
|
---|
| 332 |
|
---|
| 333 | <varlistentry id="gsettings">
|
---|
| 334 | <term><command>gsettings</command></term>
|
---|
| 335 | <listitem>
|
---|
| 336 | <para>offers a simple commandline interface to GSettings.</para>
|
---|
| 337 | <indexterm zone="glib2 gsettings">
|
---|
| 338 | <primary sortas="b-gsettings">gsettings</primary>
|
---|
| 339 | </indexterm>
|
---|
| 340 | </listitem>
|
---|
| 341 | </varlistentry>
|
---|
| 342 |
|
---|
[e103708b] | 343 | <varlistentry id="gtester">
|
---|
| 344 | <term><command>gtester</command></term>
|
---|
| 345 | <listitem>
|
---|
| 346 | <para>is a test running utility.</para>
|
---|
| 347 | <indexterm zone="glib2 gtester">
|
---|
| 348 | <primary sortas="b-gtester">gtester</primary>
|
---|
| 349 | </indexterm>
|
---|
| 350 | </listitem>
|
---|
| 351 | </varlistentry>
|
---|
| 352 |
|
---|
| 353 | <varlistentry id="gtester-report">
|
---|
| 354 | <term><command>gtester-report</command></term>
|
---|
| 355 | <listitem>
|
---|
| 356 | <para>is a test report formatting utility.</para>
|
---|
| 357 | <indexterm zone="glib2 gtester-report">
|
---|
| 358 | <primary sortas="b-gtester-report">gtester-report</primary>
|
---|
| 359 | </indexterm>
|
---|
| 360 | </listitem>
|
---|
| 361 | </varlistentry>
|
---|
| 362 |
|
---|
[7c18102] | 363 | <varlistentry id="GLib-libraries">
|
---|
| 364 | <term>GLib libraries</term>
|
---|
| 365 | <listitem>
|
---|
| 366 | <para>contain a low-level core library for the
|
---|
| 367 | <application>GIMP</application> Toolkit.</para>
|
---|
| 368 | <indexterm zone="glib2 GLib-libraries">
|
---|
| 369 | <primary sortas="c-GLib-libraries">Glib libraries</primary>
|
---|
| 370 | </indexterm>
|
---|
| 371 | </listitem>
|
---|
| 372 | </varlistentry>
|
---|
[4c3474fe] | 373 |
|
---|
[7c18102] | 374 | </variablelist>
|
---|
| 375 |
|
---|
| 376 | </sect2>
|
---|
[d4340990] | 377 |
|
---|
| 378 | </sect1>
|
---|