source: general/genlib/glib2.xml@ ef1a0acb

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since ef1a0acb was c11f2b3b, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Minor updates to glib2 format and text.

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

  • Property mode set to 100644
File size: 10.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
[4749981]7 <!ENTITY glib2-download-http "&gnome-download-http;/glib/2.30/glib-&glib2-version;.tar.xz">
8 <!ENTITY glib2-download-ftp "&gnome-download-ftp;/glib/2.30/glib-&glib2-version;.tar.xz">
9 <!ENTITY glib2-md5sum "b7dd26aa83de0b59c867a0b9eb9f9462">
[3b10fa8]10 <!ENTITY glib2-size "7.4 MB">
[08f1ff7]11 <!ENTITY glib2-buildsize "179 MB">
[75103a06]12 <!ENTITY glib2-time "1.5 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
[06b397f]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
[06b397f]64 <bridgehead renderas="sect3">GLib Dependencies</bridgehead>
[4c3474fe]65
[08f1ff7]66 <bridgehead renderas="sect4">Required</bridgehead>
[4716d52]67 <para role="required"><xref linkend="libffi"/> and <xref linkend="python2"/>
[08f1ff7]68 <!--<para role="required"><xref linkend="pkgconfig"/> -->
69 </para>
[4c3474fe]70
[75103a06]71 <!-- This should be discussed as the instructions in the tarball give
72 many reasons why the internal PCRE should be used -->
[1b9e36e]73 <bridgehead renderas="sect4">Recommended</bridgehead>
[1bc4ab8f]74 <para role="recommended"><xref linkend="pcre"/>
[7147513]75 (built with unicode properties)</para>
[1b9e36e]76
[7c18102]77 <bridgehead renderas="sect4">Optional</bridgehead>
[61135fc]78 <para role="optional"><xref linkend="attr"/>, <!-- <xref linkend="gamin"/>,
79 --> <xref linkend="dbus"/> (required to run the tests) and
[7147513]80 <xref linkend="gtk-doc"/></para>
81
[08f1ff7]82 <!-- Couldn't find this
[a41f643]83 <para><application>Gamin</application> requires
[9709041]84 <application>GLib</application> in order to compile; therefore, you must
85 first install <application>GLib</application>, then compile
86 <application>Gamin</application>, and recompile
[08f1ff7]87 <application>GLib</application> against it.</para> -->
[4c3474fe]88
[75103a06]89 <bridgehead renderas="sect4">Additional Runtime Dependencies</bridgehead>
90 <para role="optional">Quoted directly from the <filename>INSTALL</filename>
91 file; <quote>Some of the mimetype-related functionality in GIO requires the
92 <command>update-mime-database</command> and
[3b10fa8]93 <command>update-desktop-database</command> utilities</quote>, which are part of
[75103a06]94 <xref linkend="shared-mime-info"/> and
[3b10fa8]95 <xref linkend="desktop-file-utils"/>, respectively.</para>
[75103a06]96
[1039de3]97 <para condition="html" role="usernotes">User Notes:
98 <ulink url="&blfs-wiki;/glib2"/></para>
99
[7c18102]100 </sect2>
[4c3474fe]101
[7c18102]102 <sect2 role="installation">
103 <title>Installation of GLib</title>
104
[06b397f]105 <para>Install <application>GLib</application> by running the following
[7c18102]106 commands:</para>
107
[75103a06]108 <!-- This should be discussed as the instructions in the tarball give
109 many reasons why the internal PCRE should be used -->
[c11f2b3b]110<screen><userinput>PCRE_LIBS=-lpcre \
111PCRE_CFLAGS=" " \
112LIBFFI_LIBS=-lffi \
113LIBFFI_CFLAGS=-I/usr/lib/libffi-3.0.10/include \
[4749981]114./configure --prefix=/usr --sysconfdir=/etc --with-pcre=system &amp;&amp;
[7c18102]115make</userinput></screen>
[4c3474fe]116
[fd91fea]117 <para>The <application>GLib</application> test suite requires
118 <application>desktop-file-utils</application> in order to run. However,
119 <application>desktop-file-utils</application> requires
120 <application>GLib</application> in order to compile; therefore, you must
121 first install <application>GLib</application> and then run the test
[c0e1d87]122 suite.</para>
[4c3474fe]123
[7c18102]124 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
[4c3474fe]125
[7147513]126<screen role="root"><userinput>make install &amp;&amp;
[08f1ff7]127ln -v -sfn ../../lib/glib-2.0/include/glibconfig.h /usr/include/glib-2.0/glibconfig.h</userinput></screen>
[4c3474fe]128
[c0e1d87]129 <para>You should now install <xref linkend="desktop-file-utils"/> and proceed to
130 run the test suite.</para>
131
132 <para>To test the results, issue: <command>make check</command>.</para>
133
[7c18102]134 </sect2>
[4c3474fe]135
[7c18102]136 <sect2 role="commands">
137 <title>Command Explanations</title>
[864b24de]138
[08f1ff7]139 <para>PCRE_* and LIBFFI_*: <application>Glib</application> is a prerequsite
140 for <application>pkg_config</application>, but it wants to use
141 <application>pkg_config</application> during the build process. These
142 environment variables work around not having
143 <application>pkg_config</application> available.</para>
144
145 <para><command>ln -v -sfn ... glibconfig.h</command>: Place a link to an
146 architecture dependent header file where programs can find it.</para>
147
[e05cd03f]148 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[56ce09e]149 href="../../xincludes/gtk-doc-rebuild.xml"/>
[4c3474fe]150
[75103a06]151 <!-- This should be discussed as the instructions in the tarball give
152 many reasons why the internal PCRE should be used -->
[7147513]153 <para><parameter>--with-pcre=system</parameter>: This parameter causes the
154 build to use a system-provided version of the
155 <application>PCRE</application> library instead of an internal
156 version.</para>
157
[7c18102]158 </sect2>
[4c3474fe]159
[0f442884]160 <sect2 role="configuration">
161 <title>Configuring GLib</title>
162
163 <sect3>
164 <title>Configuration Information</title>
165
166 <para>By default, <application>GLib</application> assumes that all
167 filenames are in the UTF-8 charset. See the <xref
[a4b9cd7]168 linkend="locale-wrong-filename-encoding"/> section of the <xref
[c11f2b3b]169 linkend="locale-issues"/> page for more details on this kind of issue. In
170 order to tell <application>GLib</application> and applications that use
171 it that filenames are in the default locale encoding, set the variable
172 <envar>G_FILENAME_ENCODING</envar> to the value "@locale". As the
173 <systemitem class="username">root</systemitem> user:</para>
[0f442884]174
[c11f2b3b]175<screen role="root"><userinput>cat &gt; /etc/profile.d/glib2-locale.sh &lt;&lt; "EOF"
[0f442884]176<literal># Use the current locale charset for filenames
177# in applications using GLib
178export G_FILENAME_ENCODING=@locale</literal>
179EOF</userinput></screen>
180
181 </sect3>
182
183 </sect2>
184
[7c18102]185 <sect2 role="content">
186 <title>Contents</title>
187
188 <segmentedlist>
189 <segtitle>Installed Programs</segtitle>
190 <segtitle>Installed Libraries</segtitle>
191 <segtitle>Installed Directories</segtitle>
[4c3474fe]192
[7c18102]193 <seglistitem>
[e103708b]194 <seg>gio-querymodules, glib-genmarshal, glib-gettextize, glib-mkenums,
[7147513]195 gobject-query, gtester and gtester-report</seg>
[e103708b]196 <seg>libgio-2.0.so, libglib-2.0.so, libgmodule-2.0.so,
197 libgobject-2.0.so, and libgthread-2.0.so</seg>
198 <seg>/usr/{include/{gio-unix-2.0/gio,glib-2.0/{gio,glib,gobject}},
199 lib/{gio/modules,glib-2.0/include},share/{gdb/auto-load,glib-2.0/{gdb,
200 gettext/po},gtk-doc/html/{gio,glib,gobject}}}</seg>
[7c18102]201 </seglistitem>
202 </segmentedlist>
[4c3474fe]203
[7c18102]204 <variablelist>
205 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
206 <?dbfo list-presentation="list"?>
207 <?dbhtml list-presentation="table"?>
[4c3474fe]208
[7c18102]209 <varlistentry id="glib-genmarshal">
210 <term><command>glib-genmarshal</command></term>
211 <listitem>
212 <para>is a C code marshaller generation utility for GLib
213 closures.</para>
214 <indexterm zone="glib2 glib-genmarshal">
215 <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
216 </indexterm>
217 </listitem>
218 </varlistentry>
[4c3474fe]219
[7c18102]220 <varlistentry id="glib-gettextize">
221 <term><command>glib-gettextize</command></term>
222 <listitem>
223 <para>is a variant of the <application>gettext</application>
224 internationalization utility.</para>
225 <indexterm zone="glib2 glib-gettextize">
226 <primary sortas="b-glib-gettextize">glib-gettextize</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
[4c3474fe]230
[7c18102]231 <varlistentry id="glib-mkenums">
232 <term><command>glib-mkenums</command></term>
233 <listitem>
234 <para>is a C language enum description generation utility.</para>
235 <indexterm zone="glib2 glib-mkenums">
236 <primary sortas="b-glib-mkenums">glib-mkenums</primary>
237 </indexterm>
238 </listitem>
239 </varlistentry>
[4c3474fe]240
[7c18102]241 <varlistentry id="gobject-query">
242 <term><command>gobject-query</command></term>
243 <listitem>
244 <para>is a small utility that draws a tree of types.</para>
245 <indexterm zone="glib2 gobject-query">
246 <primary sortas="b-gobject-query">gobject-query</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
[4c3474fe]250
[e103708b]251 <varlistentry id="gtester">
252 <term><command>gtester</command></term>
253 <listitem>
254 <para>is a test running utility.</para>
255 <indexterm zone="glib2 gtester">
256 <primary sortas="b-gtester">gtester</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
261 <varlistentry id="gtester-report">
262 <term><command>gtester-report</command></term>
263 <listitem>
264 <para>is a test report formatting utility.</para>
265 <indexterm zone="glib2 gtester-report">
266 <primary sortas="b-gtester-report">gtester-report</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
[7c18102]271 <varlistentry id="GLib-libraries">
272 <term>GLib libraries</term>
273 <listitem>
274 <para>contain a low-level core library for the
275 <application>GIMP</application> Toolkit.</para>
276 <indexterm zone="glib2 GLib-libraries">
277 <primary sortas="c-GLib-libraries">Glib libraries</primary>
278 </indexterm>
279 </listitem>
280 </varlistentry>
[4c3474fe]281
[7c18102]282 </variablelist>
283
284 </sect2>
[d4340990]285
286</sect1>
Note: See TracBrowser for help on using the repository browser.