[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[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">
|
---|
[e1e58be] | 8 | <!ENTITY glib2-download-ftp " ">
|
---|
[6aa3c1e] | 9 | <!ENTITY glib2-md5sum "f4054629b8d977f7f5ec96a8f63449c3">
|
---|
[c0bc0a9] | 10 | <!ENTITY glib2-size "5.3 MB">
|
---|
[6db44fc] | 11 | <!ENTITY glib2-buildsize "197 MB (add 22 MB for tests)">
|
---|
| 12 | <!ENTITY glib2-time "0.7 SBU (add 0.4 SBU for tests; both using parallelism=4)">
|
---|
[c0bc0a9] | 13 |
|
---|
| 14 | <!ENTITY gobject-introspection-download-http
|
---|
[f73357b4] | 15 | "&gnome-download-http;/gobject-introspection/1.82/gobject-introspection-&gobject-introspection-version;.tar.xz">
|
---|
| 16 | <!ENTITY gobject-introspection-md5sum "50beb465bc81f33395b5e0e3bbe364ec">
|
---|
| 17 | <!ENTITY gobject-introspection-size "1.1 MB">
|
---|
[52d29f7] | 18 | ]>
|
---|
| 19 |
|
---|
[7c461b3] | 20 | <sect1 id="glib2" xreflabel="GLib-&glib2-version;">
|
---|
[7c18102] | 21 | <?dbhtml filename="glib2.html"?>
|
---|
[4c3474fe] | 22 |
|
---|
| 23 |
|
---|
[7c18102] | 24 | <title>GLib-&glib2-version;</title>
|
---|
[4c3474fe] | 25 |
|
---|
[7c18102] | 26 | <indexterm zone="glib2">
|
---|
| 27 | <primary sortas="a-GLib2">GLib2</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to GLib</title>
|
---|
[4c3474fe] | 32 |
|
---|
[b84342d6] | 33 | <para>
|
---|
[2c38e951] | 34 | The <application>GLib</application> package contains low-level
|
---|
[0d7900a] | 35 | libraries useful for providing data structure handling for C, portability
|
---|
[6f55f20] | 36 | wrappers and interfaces for runtime functionality such as an
|
---|
[b84342d6] | 37 | event loop, threads, dynamic loading and an object system.
|
---|
| 38 | </para>
|
---|
[4c3474fe] | 39 |
|
---|
[57791dd] | 40 | &lfs122_checked;
|
---|
[08f1ff7] | 41 |
|
---|
[7c18102] | 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
[b84342d6] | 45 | <para>
|
---|
| 46 | Download (HTTP): <ulink url="&glib2-download-http;"/>
|
---|
| 47 | </para>
|
---|
[7c18102] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[b84342d6] | 50 | <para>
|
---|
| 51 | Download (FTP): <ulink url="&glib2-download-ftp;"/>
|
---|
| 52 | </para>
|
---|
[7c18102] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[b84342d6] | 55 | <para>
|
---|
| 56 | Download MD5 sum: &glib2-md5sum;
|
---|
| 57 | </para>
|
---|
[7c18102] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[b84342d6] | 60 | <para>
|
---|
| 61 | Download size: &glib2-size;
|
---|
| 62 | </para>
|
---|
[7c18102] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[b84342d6] | 65 | <para>
|
---|
| 66 | Estimated disk space required: &glib2-buildsize;
|
---|
| 67 | </para>
|
---|
[7c18102] | 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
[b84342d6] | 70 | <para>
|
---|
| 71 | Estimated build time: &glib2-time;
|
---|
| 72 | </para>
|
---|
[7c18102] | 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
[4c3474fe] | 75 |
|
---|
[a9c0e8d] | 76 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[c0bc0a9] | 77 |
|
---|
| 78 | <para>
|
---|
| 79 | <emphasis role="strong">GObject Introspection (Recommended)</emphasis>
|
---|
| 80 | </para>
|
---|
| 81 | <itemizedlist spacing="compact">
|
---|
| 82 | <listitem>
|
---|
| 83 | <para>
|
---|
| 84 | Download: <ulink url="&gobject-introspection-download-http;"/>
|
---|
| 85 | </para>
|
---|
| 86 | </listitem>
|
---|
| 87 | <listitem>
|
---|
| 88 | <para>
|
---|
| 89 | Download MD5 sum: &gobject-introspection-md5sum;
|
---|
| 90 | </para>
|
---|
| 91 | </listitem>
|
---|
| 92 | <listitem>
|
---|
| 93 | <para>
|
---|
| 94 | Download size: &gobject-introspection-size;
|
---|
| 95 | </para>
|
---|
| 96 | </listitem>
|
---|
| 97 | </itemizedlist>
|
---|
| 98 |
|
---|
| 99 | <para>
|
---|
| 100 | <emphasis role="strong">Patch for Log Level Selection (Optional)</emphasis>
|
---|
| 101 | </para>
|
---|
[a9c0e8d] | 102 | <itemizedlist spacing="compact">
|
---|
| 103 | <listitem>
|
---|
| 104 | <para>
|
---|
| 105 | Optional patch:
|
---|
[6617624] | 106 | <ulink url="&patch-root;/glib-skip_warnings-1.patch"/>
|
---|
[a9c0e8d] | 107 | </para>
|
---|
| 108 | </listitem>
|
---|
| 109 | </itemizedlist>
|
---|
[4c3474fe] | 110 |
|
---|
[a9c0e8d] | 111 | <bridgehead renderas="sect3">GLib Dependencies</bridgehead>
|
---|
[6db44fc] | 112 | <!--
|
---|
[c0bc0a9] | 113 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 114 | <para role="required">
|
---|
| 115 | <xref linkend='packaging'/>
|
---|
| 116 | </para>
|
---|
[6db44fc] | 117 | -->
|
---|
[1b9e36e] | 118 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[b8a081c] | 119 | <para role="recommended">
|
---|
[c0bc0a9] | 120 | <xref linkend='docutils'/>,
|
---|
| 121 | <xref linkend="libxslt"/>, and
|
---|
[54d58907] | 122 | <xref linkend="pcre2"/>
|
---|
[b8a081c] | 123 | </para>
|
---|
[1b9e36e] | 124 |
|
---|
[7c18102] | 125 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[b8a081c] | 126 | <para role="optional">
|
---|
[c0bc0a9] | 127 | <xref linkend='cairo'/> (for some GObject Introspection tests),
|
---|
[b327731] | 128 | <xref linkend="dbus"/> (for some tests),
|
---|
| 129 | <xref linkend="fuse3"/> and
|
---|
[57a7172] | 130 | <ulink url="https://bindfs.org/">bindfs</ulink>
|
---|
[b327731] | 131 | (both needed for one test),
|
---|
[cd0c5a70] | 132 | <xref linkend="gdb"/> (for bindings),
|
---|
[c0bc0a9] | 133 | <xref linkend='gjs'/> (for some GObject Introspection tests),
|
---|
| 134 | <xref linkend='gtk-doc'/> (for GObject Introspection documentation),
|
---|
[57a7172] | 135 | <xref linkend="DocBook"/>,
|
---|
[8558044] | 136 | <xref linkend="docbook-xsl"/>,
|
---|
[c0bc0a9] | 137 | <xref linkend="gi-docgen"/> (to build API documentation),
|
---|
[f1fbb028] | 138 | <xref linkend="glib-networking"/> (for some tests, but this is a circular
|
---|
[c0bc0a9] | 139 | dependency),
|
---|
| 140 | <xref linkend="Mako"/> and <xref linkend="markdown"/>
|
---|
| 141 | (both for <command>g-ir-doc-tool</command>), and
|
---|
[0b4d98d] | 142 | <!--<xref linkend="sysprof"/>-->
|
---|
| 143 | <ulink url="&sysprof-url;">sysprof</ulink>
|
---|
[b8a081c] | 144 | </para>
|
---|
[b31b493] | 145 |
|
---|
[75103a06] | 146 | <bridgehead renderas="sect4">Additional Runtime Dependencies</bridgehead>
|
---|
[5cc205a] | 147 | <para role="recommended">
|
---|
[70b674f2] | 148 | Quoted directly from the <filename>INSTALL</filename> file:
|
---|
[b84342d6] | 149 | <quote>Some of the mimetype-related functionality in GIO requires the
|
---|
| 150 | <command>update-mime-database</command> and
|
---|
[af2b317] | 151 | <command>update-desktop-database</command> utilities,</quote>
|
---|
[b84342d6] | 152 | which are part of
|
---|
[572553b] | 153 | <xref role="runtime" linkend="shared-mime-info"/> and
|
---|
| 154 | <xref role="runtime" linkend="desktop-file-utils"/>, respectively.
|
---|
[57a7172] | 155 | These two utilities are also needed for some tests.
|
---|
[b84342d6] | 156 | </para>
|
---|
[75103a06] | 157 |
|
---|
[7c18102] | 158 | </sect2>
|
---|
[4c3474fe] | 159 |
|
---|
[7c18102] | 160 | <sect2 role="installation">
|
---|
| 161 | <title>Installation of GLib</title>
|
---|
[42e002d] | 162 |
|
---|
[d56e7df] | 163 | <para>
|
---|
| 164 | If desired, apply the optional patch. In many cases, applications that
|
---|
| 165 | use this library, either directly or indirectly via other libraries such
|
---|
| 166 | as <xref linkend="gtk3"/>, output numerous warnings when run from the
|
---|
| 167 | command line. This patch enables the use of an environment variable,
|
---|
[2c87187] | 168 | <envar>GLIB_LOG_LEVEL</envar>, that suppresses unwanted messages. The
|
---|
[d56e7df] | 169 | value of the variable is a digit that corresponds to:
|
---|
| 170 | </para>
|
---|
[a9c0e8d] | 171 |
|
---|
| 172 | <simplelist>
|
---|
| 173 | <member>1 Alert</member>
|
---|
| 174 | <member>2 Critical</member>
|
---|
| 175 | <member>3 Error</member>
|
---|
| 176 | <member>4 Warning</member>
|
---|
| 177 | <member>5 Notice</member>
|
---|
| 178 | </simplelist>
|
---|
| 179 |
|
---|
[d56e7df] | 180 | <para>
|
---|
| 181 | For instance <userinput>export GLIB_LOG_LEVEL=4</userinput> will skip
|
---|
| 182 | output of Warning and Notice messages (and Info/Debug messages if they
|
---|
| 183 | are turned on). If <envar>GLIB_LOG_LEVEL</envar> is not defined, normal
|
---|
| 184 | message output will not be affected.
|
---|
| 185 | </para>
|
---|
[a9c0e8d] | 186 |
|
---|
[6617624] | 187 | <screen><userinput>patch -Np1 -i ../glib-skip_warnings-1.patch</userinput></screen>
|
---|
[a9c0e8d] | 188 |
|
---|
[8b9cf4c] | 189 | <warning>
|
---|
| 190 | <para>
|
---|
| 191 | If a previous version of glib is installed, move the headers out of the
|
---|
| 192 | way so that later packages do not encounter conflicts:
|
---|
| 193 | </para>
|
---|
| 194 |
|
---|
[1daf906e] | 195 | <screen role="root"><userinput remap="pre">if [ -e /usr/include/glib-2.0 ]; then
|
---|
| 196 | rm -rf /usr/include/glib-2.0.old &&
|
---|
| 197 | mv -vf /usr/include/glib-2.0{,.old}
|
---|
| 198 | fi</userinput></screen>
|
---|
[8b9cf4c] | 199 |
|
---|
| 200 | </warning>
|
---|
[ddd5a70] | 201 |
|
---|
[b84342d6] | 202 | <para>
|
---|
| 203 | Install <application>GLib</application> by running the following
|
---|
| 204 | commands:
|
---|
| 205 | </para>
|
---|
[b31b493] | 206 |
|
---|
[2cc9305] | 207 | <screen><userinput>mkdir build &&
|
---|
| 208 | cd build &&
|
---|
[0a4eeb6] | 209 |
|
---|
[7c83169b] | 210 | meson setup .. \
|
---|
| 211 | --prefix=/usr \
|
---|
| 212 | --buildtype=release \
|
---|
| 213 | -D introspection=disabled \
|
---|
[6db44fc] | 214 | -D glib_debug=disabled \
|
---|
[741810a] | 215 | -D man-pages=enabled \
|
---|
| 216 | -D sysprof=disabled &&
|
---|
[0a4eeb6] | 217 | ninja</userinput></screen>
|
---|
[3a802b2] | 218 |
|
---|
[b84342d6] | 219 | <para>
|
---|
| 220 | The <application>GLib</application> test suite requires
|
---|
[2c38e951] | 221 | <application>desktop-file-utils</application> for some tests. However,
|
---|
[b84342d6] | 222 | <application>desktop-file-utils</application> requires
|
---|
| 223 | <application>GLib</application> in order to compile; therefore, you must
|
---|
| 224 | first install <application>GLib</application> and then run the test
|
---|
| 225 | suite.
|
---|
| 226 | </para>
|
---|
[4c3474fe] | 227 |
|
---|
[b84342d6] | 228 | <para>
|
---|
[c0bc0a9] | 229 | As the <systemitem class="username">root</systemitem> user,
|
---|
| 230 | install this package for the first time to allow building
|
---|
| 231 | GObject Introspection:
|
---|
| 232 | </para>
|
---|
| 233 |
|
---|
| 234 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
| 235 |
|
---|
| 236 | <para>
|
---|
| 237 | Build GObject Introspection:
|
---|
| 238 | </para>
|
---|
| 239 |
|
---|
| 240 | <screen><userinput>tar xf ../../gobject-introspection-&gobject-introspection-version;.tar.xz &&
|
---|
| 241 |
|
---|
| 242 | meson setup gobject-introspection-&gobject-introspection-version; gi-build \
|
---|
| 243 | --prefix=/usr --buildtype=release &&
|
---|
| 244 | ninja -C gi-build</userinput></screen>
|
---|
| 245 |
|
---|
| 246 | <para>
|
---|
| 247 | To test the results of GObject Introspection, issue:
|
---|
| 248 | <command>ninja -C gi-build test</command>.
|
---|
| 249 | </para>
|
---|
| 250 |
|
---|
| 251 | <para>
|
---|
| 252 | As the &root; user, install GObject Introspection for generating
|
---|
| 253 | the introspection data of GLib libraries (required by various packages
|
---|
| 254 | using Glib, especially some GNOME packages):
|
---|
[b84342d6] | 255 | </para>
|
---|
[4c3474fe] | 256 |
|
---|
[c0bc0a9] | 257 | <screen role='root'><userinput>ninja -C gi-build install</userinput></screen>
|
---|
[aee85523] | 258 |
|
---|
[c0bc0a9] | 259 | <para>
|
---|
| 260 | Now generate the introspection data:
|
---|
| 261 | </para>
|
---|
| 262 |
|
---|
[7c83169b] | 263 | <screen><userinput>meson configure -D introspection=enabled &&
|
---|
[c0bc0a9] | 264 | ninja</userinput></screen>
|
---|
| 265 |
|
---|
| 266 | <para>
|
---|
| 267 | If you have <xref linkend='gi-docgen'/> installed and wish to build
|
---|
| 268 | the API documentation for this package, issue:
|
---|
| 269 | </para>
|
---|
| 270 |
|
---|
| 271 | <screen remap='doc'><userinput>sed 's/glib-2.0/glib-&glib2-version;/' \
|
---|
| 272 | -i ../docs/reference/meson.build &&
|
---|
[7c83169b] | 273 | meson configure -D documentation=true &&
|
---|
[c0bc0a9] | 274 | ninja</userinput></screen>
|
---|
| 275 |
|
---|
| 276 | <para>
|
---|
| 277 | As the &root; user, install this package again for the introspection
|
---|
| 278 | data (and optionally, the documentation):
|
---|
| 279 | </para>
|
---|
| 280 |
|
---|
| 281 | <screen role='root'><userinput>ninja install</userinput></screen>
|
---|
[7da16bf] | 282 |
|
---|
[dd98f82] | 283 | <para>
|
---|
| 284 | One test named <literal>gdatetime</literal> is known to fail with
|
---|
| 285 | tzdata-2024b or later.
|
---|
| 286 | </para>
|
---|
| 287 |
|
---|
[b84342d6] | 288 | <para>
|
---|
[8558044] | 289 | You should now install <xref linkend="desktop-file-utils"/> and
|
---|
[d1a5310] | 290 | <xref linkend="shared-mime-info"/> and proceed to
|
---|
[b84342d6] | 291 | run the test suite.
|
---|
| 292 | </para>
|
---|
[c0e1d87] | 293 |
|
---|
[16f7f0e] | 294 | <warning>
|
---|
| 295 | <para>
|
---|
[4e207bb] | 296 | Do not run the test suite as &root; or some tests will fail
|
---|
| 297 | unexpectedly and leave some non-FHS-compliant directories in the
|
---|
| 298 | <filename class='directory'>/usr</filename> hierarchy.
|
---|
[16f7f0e] | 299 | </para>
|
---|
| 300 | </warning>
|
---|
[741810a] | 301 | <!-- I cannot reproduce these issues.
|
---|
[f236d3a] | 302 | <note>
|
---|
| 303 | <para>
|
---|
| 304 | If you have installed the glib-skip_warnings-1.patch and have
|
---|
[161684a] | 305 | the environment variable GLIB_LOG_LEVEL set, unset it before running
|
---|
[f236d3a] | 306 | the tests. It will cause several tests to fail.
|
---|
| 307 | </para>
|
---|
| 308 | </note>
|
---|
| 309 |
|
---|
[6db44fc] | 310 | <note>
|
---|
| 311 | <para>
|
---|
| 312 | If you have used the -D glib_debug=disabled option, 17 tests will
|
---|
| 313 | fail.
|
---|
| 314 | </para>
|
---|
| 315 | </note>
|
---|
[741810a] | 316 | -->
|
---|
[b84342d6] | 317 | <para>
|
---|
[c0bc0a9] | 318 | To test the results, after having installed the packages, issue:
|
---|
[25ce227] | 319 | <command>LC_ALL=C ninja test</command> as a non-&root; user.
|
---|
[b84342d6] | 320 | </para>
|
---|
[7c18102] | 321 | </sect2>
|
---|
[4c3474fe] | 322 |
|
---|
[7c18102] | 323 | <sect2 role="commands">
|
---|
| 324 | <title>Command Explanations</title>
|
---|
[864b24de] | 325 |
|
---|
[20f070d8] | 326 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 327 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
| 328 |
|
---|
[90ae149] | 329 | <para>
|
---|
[7c83169b] | 330 | <parameter>-D man-pages=enabled</parameter>: This switch causes the
|
---|
[7da16bf] | 331 | build to create and install the package man pages.
|
---|
[b84342d6] | 332 | </para>
|
---|
[7147513] | 333 |
|
---|
[6db44fc] | 334 | <para>
|
---|
| 335 | <parameter>-D glib_debug=disabled</parameter>: This switch causes the
|
---|
[741810a] | 336 | build to not include some expensive checks for debugging in the built
|
---|
| 337 | programs and libraries.
|
---|
| 338 | </para>
|
---|
| 339 |
|
---|
| 340 | <para>
|
---|
| 341 | <parameter>-D sysprof=disabled</parameter>: This switch disables the
|
---|
| 342 | tracing support for sysprof. Remove this option if you want the
|
---|
| 343 | tracing support. Note that if sysprof is not installed, removing
|
---|
[84398041] | 344 | this option will cause the build system to download a copy of sysprof
|
---|
[741810a] | 345 | from the Internet.
|
---|
[6db44fc] | 346 | </para>
|
---|
| 347 |
|
---|
[7c18102] | 348 | </sect2>
|
---|
[4c3474fe] | 349 |
|
---|
[7c18102] | 350 | <sect2 role="content">
|
---|
| 351 | <title>Contents</title>
|
---|
| 352 |
|
---|
[c0bc0a9] | 353 | <bridgehead renderas="sect3">GLib Contents</bridgehead>
|
---|
| 354 |
|
---|
[7c18102] | 355 | <segmentedlist>
|
---|
| 356 | <segtitle>Installed Programs</segtitle>
|
---|
| 357 | <segtitle>Installed Libraries</segtitle>
|
---|
| 358 | <segtitle>Installed Directories</segtitle>
|
---|
[4c3474fe] | 359 |
|
---|
[7c18102] | 360 | <seglistitem>
|
---|
[0913f48] | 361 | <seg>
|
---|
[8558044] | 362 | gapplication, gdbus, gdbus-codegen,
|
---|
[c0bc0a9] | 363 | gi-compile-repository, gi-decompile-typelib, gi-inspect-typelib
|
---|
[8212d8a] | 364 | gio, gio-querymodules,
|
---|
[0913f48] | 365 | glib-compile-resources, glib-compile-schemas,
|
---|
[8558044] | 366 | glib-genmarshal, glib-gettextize,
|
---|
| 367 | glib-mkenums, gobject-query,
|
---|
| 368 | gresource, gsettings,
|
---|
[0a4eeb6] | 369 | gtester, and gtester-report
|
---|
[0913f48] | 370 | </seg>
|
---|
| 371 | <seg>
|
---|
[8558044] | 372 | libgio-2.0.so,
|
---|
[c0bc0a9] | 373 | libgirepository-2.0.so,
|
---|
[8558044] | 374 | libglib-2.0.so,
|
---|
[0a4eeb6] | 375 | libgmodule-2.0.so,
|
---|
[8558044] | 376 | libgobject-2.0.so, and
|
---|
[0a4eeb6] | 377 | libgthread-2.0.so
|
---|
[0913f48] | 378 | </seg>
|
---|
| 379 | <seg>
|
---|
[d3e019dc] | 380 | /usr/include/gio-unix-2.0,
|
---|
[0a4eeb6] | 381 | /usr/include/glib-2.0,
|
---|
[ed92105] | 382 | /usr/lib/gio,
|
---|
[eb954a8] | 383 | /usr/lib/glib-2.0,
|
---|
[c0bc0a9] | 384 | /usr/share/glib-2.0, and
|
---|
| 385 | /usr/share/doc/glib-&glib2-version; (optional)
|
---|
| 386 | </seg>
|
---|
| 387 | </seglistitem>
|
---|
| 388 | </segmentedlist>
|
---|
| 389 |
|
---|
| 390 | <bridgehead renderas="sect3">GObject Introspection Contents</bridgehead>
|
---|
| 391 |
|
---|
| 392 | <segmentedlist>
|
---|
| 393 | <segtitle>Installed Program</segtitle>
|
---|
| 394 | <segtitle>Installed Libraries</segtitle>
|
---|
| 395 | <segtitle>Installed Directories</segtitle>
|
---|
| 396 |
|
---|
| 397 | <!-- g-ir-doc-tool is installed if Mako and Markdown are present -->
|
---|
| 398 | <seglistitem>
|
---|
| 399 | <seg>
|
---|
| 400 | g-ir-annotation-tool, g-ir-compiler, g-ir-doc-tool (optional),
|
---|
| 401 | g-ir-generate, g-ir-inspect, and g-ir-scanner
|
---|
| 402 | </seg>
|
---|
| 403 | <seg>
|
---|
| 404 | libgirepository-1.0.so and
|
---|
| 405 | _giscanner.&python3-lib-suffix;.so
|
---|
| 406 | </seg>
|
---|
| 407 | <seg>
|
---|
| 408 | /usr/include/gobject-introspection-1.0,
|
---|
| 409 | /usr/lib/girepository-1.0,
|
---|
| 410 | /usr/lib/gobject-introspection,
|
---|
| 411 | /usr/share/gir-1.0, and
|
---|
| 412 | /usr/share/gobject-introspection-1.0
|
---|
[0913f48] | 413 | </seg>
|
---|
[7c18102] | 414 | </seglistitem>
|
---|
| 415 | </segmentedlist>
|
---|
[4c3474fe] | 416 |
|
---|
[7c18102] | 417 | <variablelist>
|
---|
| 418 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 419 | <?dbfo list-presentation="list"?>
|
---|
| 420 | <?dbhtml list-presentation="table"?>
|
---|
[4c3474fe] | 421 |
|
---|
[837e96ed] | 422 | <varlistentry id="gapplication">
|
---|
| 423 | <term><command>gapplication</command></term>
|
---|
| 424 | <listitem>
|
---|
| 425 | <para>
|
---|
[c5ebc8ac] | 426 | can be used to start applications and to send
|
---|
[4c24eb0a] | 427 | messages to already-running instances of other applications
|
---|
[837e96ed] | 428 | </para>
|
---|
| 429 | <indexterm zone="glib2 gapplication">
|
---|
| 430 | <primary sortas="b-gapplication">application</primary>
|
---|
| 431 | </indexterm>
|
---|
| 432 | </listitem>
|
---|
| 433 | </varlistentry>
|
---|
[c0bc0a9] | 434 |
|
---|
[b31b493] | 435 | <varlistentry id="gdbus">
|
---|
| 436 | <term><command>gdbus</command></term>
|
---|
| 437 | <listitem>
|
---|
[b84342d6] | 438 | <para>
|
---|
[d3e019dc] | 439 | is a simple tool used for working with
|
---|
[4c24eb0a] | 440 | <application>D-Bus</application> objects
|
---|
[b84342d6] | 441 | </para>
|
---|
[b31b493] | 442 | <indexterm zone="glib2 gdbus">
|
---|
| 443 | <primary sortas="b-gdbus">gdbus</primary>
|
---|
| 444 | </indexterm>
|
---|
| 445 | </listitem>
|
---|
| 446 | </varlistentry>
|
---|
| 447 |
|
---|
| 448 | <varlistentry id="gdbus-codegen">
|
---|
| 449 | <term><command>gdbus-codegen</command></term>
|
---|
| 450 | <listitem>
|
---|
[b84342d6] | 451 | <para>
|
---|
[0d7900a] | 452 | is used to generate code and/or documentation for one or
|
---|
[4c24eb0a] | 453 | more <application>D-Bus</application> interfaces
|
---|
[b84342d6] | 454 | </para>
|
---|
[b31b493] | 455 | <indexterm zone="glib2 gdbus-codegen">
|
---|
| 456 | <primary sortas="b-gdbus-codegen">gdbus-codegen</primary>
|
---|
| 457 | </indexterm>
|
---|
| 458 | </listitem>
|
---|
| 459 | </varlistentry>
|
---|
| 460 |
|
---|
[c0bc0a9] | 461 | <varlistentry id="gi-compile-repository">
|
---|
| 462 | <term><command>gi-compile-repository</command></term>
|
---|
| 463 | <listitem>
|
---|
| 464 | <para>
|
---|
| 465 | converts one or more GIR files into one or more typelib files
|
---|
| 466 | </para>
|
---|
| 467 | <indexterm zone="glib2 gi-compile-repository">
|
---|
| 468 | <primary sortas="b-gi-compile-repository">gi-compile-repository</primary>
|
---|
| 469 | </indexterm>
|
---|
| 470 | </listitem>
|
---|
| 471 | </varlistentry>
|
---|
| 472 |
|
---|
| 473 | <varlistentry id="gi-decompile-typelib">
|
---|
| 474 | <term><command>gi-decompile-typelib</command></term>
|
---|
| 475 | <listitem>
|
---|
| 476 | <para>
|
---|
| 477 | is a GIR decompiler that uses the repository API
|
---|
| 478 | </para>
|
---|
| 479 | <indexterm zone="glib2 gi-decompile-typelib">
|
---|
| 480 | <primary sortas="b-gi-decompile-typelib">gi-decompile-typelib</primary>
|
---|
| 481 | </indexterm>
|
---|
| 482 | </listitem>
|
---|
| 483 | </varlistentry>
|
---|
| 484 |
|
---|
| 485 | <varlistentry id="gi-inspect-typelib">
|
---|
| 486 | <term><command>gi-inspect-typelib</command></term>
|
---|
| 487 | <listitem>
|
---|
| 488 | <para>
|
---|
| 489 | is a utility that gives information about a GI typelib
|
---|
| 490 | </para>
|
---|
| 491 | <indexterm zone="glib2 gi-inspect-typelib">
|
---|
| 492 | <primary sortas="b-gi-inspect-typelib">gi-inspect-typelib</primary>
|
---|
| 493 | </indexterm>
|
---|
| 494 | </listitem>
|
---|
| 495 | </varlistentry>
|
---|
| 496 |
|
---|
[0797528] | 497 | <varlistentry id="gio">
|
---|
| 498 | <term><command>gio</command></term>
|
---|
| 499 | <listitem>
|
---|
| 500 | <para>
|
---|
| 501 | is a utility that makes many <application>GIO</application>
|
---|
[4c24eb0a] | 502 | features available from the command line
|
---|
[0797528] | 503 | </para>
|
---|
| 504 | <indexterm zone="glib2 gio">
|
---|
| 505 | <primary sortas="b-gio">gio</primary>
|
---|
| 506 | </indexterm>
|
---|
| 507 | </listitem>
|
---|
| 508 | </varlistentry>
|
---|
| 509 |
|
---|
[b31b493] | 510 | <varlistentry id="gio-querymodules">
|
---|
| 511 | <term><command>gio-querymodules</command></term>
|
---|
| 512 | <listitem>
|
---|
[b84342d6] | 513 | <para>
|
---|
[8558044] | 514 | is used to create a <filename>giomodule.cache</filename> file in
|
---|
| 515 | the listed directories. This file lists the implemented extension
|
---|
[4c24eb0a] | 516 | points for each module that has been found
|
---|
[b84342d6] | 517 | </para>
|
---|
[b31b493] | 518 | <indexterm zone="glib2 gio-querymodules">
|
---|
| 519 | <primary sortas="b-gio-querymodules">gio-querymodules</primary>
|
---|
| 520 | </indexterm>
|
---|
| 521 | </listitem>
|
---|
| 522 | </varlistentry>
|
---|
| 523 |
|
---|
| 524 | <varlistentry id="glib-compile-resources">
|
---|
| 525 | <term><command>glib-compile-resources</command></term>
|
---|
| 526 | <listitem>
|
---|
[b84342d6] | 527 | <para>
|
---|
[0797528] | 528 | is used to read the resource description from a file and
|
---|
[0d7900a] | 529 | the files that it references to create a binary resource
|
---|
[4c24eb0a] | 530 | bundle that is suitable for use with the GResource API
|
---|
[b84342d6] | 531 | </para>
|
---|
[b31b493] | 532 | <indexterm zone="glib2 glib-compile-resources">
|
---|
| 533 | <primary sortas="b-glib-compile-resources">glib-compile-resources</primary>
|
---|
| 534 | </indexterm>
|
---|
| 535 | </listitem>
|
---|
| 536 | </varlistentry>
|
---|
| 537 |
|
---|
| 538 | <varlistentry id="glib-compile-schemas">
|
---|
| 539 | <term><command>glib-compile-schemas</command></term>
|
---|
| 540 | <listitem>
|
---|
[b84342d6] | 541 | <para>
|
---|
[0d7900a] | 542 | is used to compile all the GSettings XML schema files
|
---|
[8558044] | 543 | in a directory into a binary file with the name
|
---|
[4c24eb0a] | 544 | <filename>gschemas.compiled</filename> that can be used by GSettings
|
---|
[b84342d6] | 545 | </para>
|
---|
[b31b493] | 546 | <indexterm zone="glib2 glib-compile-schemas">
|
---|
| 547 | <primary sortas="b-glib-compile-resources">glib-compile-schemas</primary>
|
---|
| 548 | </indexterm>
|
---|
| 549 | </listitem>
|
---|
| 550 | </varlistentry>
|
---|
| 551 |
|
---|
[7c18102] | 552 | <varlistentry id="glib-genmarshal">
|
---|
| 553 | <term><command>glib-genmarshal</command></term>
|
---|
| 554 | <listitem>
|
---|
[b84342d6] | 555 | <para>
|
---|
[4c24eb0a] | 556 | is a C code marshaller generation utility for GLib closures
|
---|
[b84342d6] | 557 | </para>
|
---|
[7c18102] | 558 | <indexterm zone="glib2 glib-genmarshal">
|
---|
| 559 | <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
|
---|
| 560 | </indexterm>
|
---|
| 561 | </listitem>
|
---|
| 562 | </varlistentry>
|
---|
[4c3474fe] | 563 |
|
---|
[7c18102] | 564 | <varlistentry id="glib-gettextize">
|
---|
| 565 | <term><command>glib-gettextize</command></term>
|
---|
| 566 | <listitem>
|
---|
[b84342d6] | 567 | <para>
|
---|
| 568 | is a variant of the <application>gettext</application>
|
---|
[4c24eb0a] | 569 | internationalization utility
|
---|
[b84342d6] | 570 | </para>
|
---|
[7c18102] | 571 | <indexterm zone="glib2 glib-gettextize">
|
---|
| 572 | <primary sortas="b-glib-gettextize">glib-gettextize</primary>
|
---|
| 573 | </indexterm>
|
---|
| 574 | </listitem>
|
---|
| 575 | </varlistentry>
|
---|
[4c3474fe] | 576 |
|
---|
[7c18102] | 577 | <varlistentry id="glib-mkenums">
|
---|
| 578 | <term><command>glib-mkenums</command></term>
|
---|
| 579 | <listitem>
|
---|
[b84342d6] | 580 | <para>
|
---|
[4c24eb0a] | 581 | is a C language enum description generation utility
|
---|
[b84342d6] | 582 | </para>
|
---|
[7c18102] | 583 | <indexterm zone="glib2 glib-mkenums">
|
---|
| 584 | <primary sortas="b-glib-mkenums">glib-mkenums</primary>
|
---|
| 585 | </indexterm>
|
---|
| 586 | </listitem>
|
---|
| 587 | </varlistentry>
|
---|
[4c3474fe] | 588 |
|
---|
[7c18102] | 589 | <varlistentry id="gobject-query">
|
---|
| 590 | <term><command>gobject-query</command></term>
|
---|
| 591 | <listitem>
|
---|
[b84342d6] | 592 | <para>
|
---|
[4c24eb0a] | 593 | is a small utility that draws a tree of types
|
---|
[b84342d6] | 594 | </para>
|
---|
[7c18102] | 595 | <indexterm zone="glib2 gobject-query">
|
---|
| 596 | <primary sortas="b-gobject-query">gobject-query</primary>
|
---|
| 597 | </indexterm>
|
---|
| 598 | </listitem>
|
---|
| 599 | </varlistentry>
|
---|
[4c3474fe] | 600 |
|
---|
[b31b493] | 601 | <varlistentry id="gresource">
|
---|
| 602 | <term><command>gresource</command></term>
|
---|
| 603 | <listitem>
|
---|
[b84342d6] | 604 | <para>
|
---|
[4c24eb0a] | 605 | offers a simple command line interface to GResource
|
---|
[b84342d6] | 606 | </para>
|
---|
[b31b493] | 607 | <indexterm zone="glib2 gresource">
|
---|
| 608 | <primary sortas="b-gresource">gresource</primary>
|
---|
| 609 | </indexterm>
|
---|
| 610 | </listitem>
|
---|
| 611 | </varlistentry>
|
---|
| 612 |
|
---|
| 613 | <varlistentry id="gsettings">
|
---|
| 614 | <term><command>gsettings</command></term>
|
---|
| 615 | <listitem>
|
---|
[b84342d6] | 616 | <para>
|
---|
[4c24eb0a] | 617 | offers a simple command line interface to GSettings
|
---|
[b84342d6] | 618 | </para>
|
---|
[b31b493] | 619 | <indexterm zone="glib2 gsettings">
|
---|
| 620 | <primary sortas="b-gsettings">gsettings</primary>
|
---|
| 621 | </indexterm>
|
---|
| 622 | </listitem>
|
---|
| 623 | </varlistentry>
|
---|
| 624 |
|
---|
[e103708b] | 625 | <varlistentry id="gtester">
|
---|
| 626 | <term><command>gtester</command></term>
|
---|
| 627 | <listitem>
|
---|
[b84342d6] | 628 | <para>
|
---|
[4c24eb0a] | 629 | is a test running utility
|
---|
[b84342d6] | 630 | </para>
|
---|
[e103708b] | 631 | <indexterm zone="glib2 gtester">
|
---|
| 632 | <primary sortas="b-gtester">gtester</primary>
|
---|
| 633 | </indexterm>
|
---|
| 634 | </listitem>
|
---|
| 635 | </varlistentry>
|
---|
| 636 |
|
---|
| 637 | <varlistentry id="gtester-report">
|
---|
| 638 | <term><command>gtester-report</command></term>
|
---|
| 639 | <listitem>
|
---|
[b84342d6] | 640 | <para>
|
---|
[4c24eb0a] | 641 | is a test report formatting utility
|
---|
[b84342d6] | 642 | </para>
|
---|
[e103708b] | 643 | <indexterm zone="glib2 gtester-report">
|
---|
| 644 | <primary sortas="b-gtester-report">gtester-report</primary>
|
---|
| 645 | </indexterm>
|
---|
| 646 | </listitem>
|
---|
| 647 | </varlistentry>
|
---|
| 648 |
|
---|
[c0bc0a9] | 649 | <varlistentry id="libgio">
|
---|
| 650 | <term><filename class='libraryfile'>libgio-2.0.so</filename></term>
|
---|
| 651 | <listitem>
|
---|
| 652 | <para>
|
---|
| 653 | is a library providing useful classes for general purpose I/O,
|
---|
| 654 | networking, IPC, settings, and other high level application
|
---|
| 655 | functionality
|
---|
| 656 | </para>
|
---|
| 657 | <indexterm zone="glib2 libgio">
|
---|
| 658 | <primary sortas="c-libgio">libgio-2.0.so</primary>
|
---|
| 659 | </indexterm>
|
---|
| 660 | </listitem>
|
---|
| 661 | </varlistentry>
|
---|
| 662 |
|
---|
| 663 | <varlistentry id="libgirepository">
|
---|
| 664 | <term><filename class='libraryfile'>libgirepository-2.0.so</filename></term>
|
---|
| 665 | <listitem>
|
---|
| 666 | <para>
|
---|
| 667 | is a library providing access to typelibs and introspection data
|
---|
| 668 | which describes C APIs
|
---|
| 669 | </para>
|
---|
| 670 | <indexterm zone="glib2 libgirepository">
|
---|
| 671 | <primary sortas="c-libgirepository2">libgirepository-2.0.so</primary>
|
---|
| 672 | </indexterm>
|
---|
| 673 | </listitem>
|
---|
| 674 | </varlistentry>
|
---|
| 675 |
|
---|
| 676 | <varlistentry id="libglib">
|
---|
| 677 | <term><filename class='libraryfile'>libglib-2.0.so</filename></term>
|
---|
| 678 | <listitem>
|
---|
| 679 | <para>
|
---|
| 680 | is a general-purpose, portable utility library, which provides
|
---|
| 681 | many useful data types, macros, type conversions, string
|
---|
| 682 | utilities, file utilities, a mainloop abstraction, and so on
|
---|
| 683 | </para>
|
---|
| 684 | <indexterm zone="glib2 libglib">
|
---|
| 685 | <primary sortas="c-libglib">libglib-2.0.so</primary>
|
---|
| 686 | </indexterm>
|
---|
| 687 | </listitem>
|
---|
| 688 | </varlistentry>
|
---|
| 689 |
|
---|
| 690 | <varlistentry id="libgmodule">
|
---|
| 691 | <term><filename class='libraryfile'>libgmodule-2.0.so</filename></term>
|
---|
| 692 | <listitem>
|
---|
| 693 | <para>
|
---|
| 694 | provides portable API for dynamically loading modules
|
---|
| 695 | </para>
|
---|
| 696 | <indexterm zone="glib2 libgmodule">
|
---|
| 697 | <primary sortas="c-libgmodule">libgmodule-2.0.so</primary>
|
---|
| 698 | </indexterm>
|
---|
| 699 | </listitem>
|
---|
| 700 | </varlistentry>
|
---|
| 701 |
|
---|
| 702 | <varlistentry id="libgobject">
|
---|
| 703 | <term><filename class='libraryfile'>libgobject-2.0.so</filename></term>
|
---|
| 704 | <listitem>
|
---|
| 705 | <para>
|
---|
| 706 | provides the GLib base type system and object class
|
---|
| 707 | </para>
|
---|
| 708 | <indexterm zone="glib2 libgobject">
|
---|
| 709 | <primary sortas="c-libgobject">libgobject-2.0.so</primary>
|
---|
| 710 | </indexterm>
|
---|
| 711 | </listitem>
|
---|
| 712 | </varlistentry>
|
---|
| 713 |
|
---|
| 714 | <varlistentry id="libgthread">
|
---|
| 715 | <term><filename class='libraryfile'>libgthread-2.0.so</filename></term>
|
---|
| 716 | <listitem>
|
---|
[b84342d6] | 717 | <para>
|
---|
[c0bc0a9] | 718 | is a skeleton library for backwards compatibility; it used to
|
---|
| 719 | be the GLib thread library but the functionalities has been
|
---|
| 720 | merged info <systemitem class='library'>libglib-2.0</systemitem>
|
---|
[b84342d6] | 721 | </para>
|
---|
[c0bc0a9] | 722 | <indexterm zone="glib2 libgthread">
|
---|
| 723 | <primary sortas="c-libgthread">libgthread-2.0.so</primary>
|
---|
[7c18102] | 724 | </indexterm>
|
---|
[c0bc0a9] | 725 | </listitem>
|
---|
| 726 | </varlistentry>
|
---|
[4c3474fe] | 727 |
|
---|
[c0bc0a9] | 728 | <varlistentry id="g-ir-annotation-tool">
|
---|
| 729 | <term><command>g-ir-annotation-tool</command></term>
|
---|
| 730 | <listitem>
|
---|
| 731 | <para>
|
---|
| 732 | creates or extracts annotation data from GI typelibs
|
---|
| 733 | </para>
|
---|
| 734 | <indexterm zone="glib2 g-ir-annotation-tool">
|
---|
| 735 | <primary sortas="b-g-ir-annotation-tool">g-ir-annotation-tool</primary>
|
---|
| 736 | </indexterm>
|
---|
| 737 | </listitem>
|
---|
| 738 | </varlistentry>
|
---|
| 739 |
|
---|
| 740 | <varlistentry id="g-ir-compiler">
|
---|
| 741 | <term><command>g-ir-compiler</command></term>
|
---|
| 742 | <listitem>
|
---|
| 743 | <para>
|
---|
| 744 | is a counterpart of <command>gi-compile-repository</command>
|
---|
| 745 | for the old
|
---|
| 746 | <systemitem class='library'>libgirepository-1.0</systemitem>
|
---|
| 747 | API
|
---|
| 748 | </para>
|
---|
| 749 | <indexterm zone="glib2 g-ir-compiler">
|
---|
| 750 | <primary sortas="b-g-ir-compiler">g-ir-compiler</primary>
|
---|
| 751 | </indexterm>
|
---|
| 752 | </listitem>
|
---|
| 753 | </varlistentry>
|
---|
| 754 |
|
---|
| 755 | <varlistentry id="g-ir-doc-tool">
|
---|
| 756 | <term><command>g-ir-doc-tool</command></term>
|
---|
| 757 | <listitem>
|
---|
| 758 | <para>
|
---|
| 759 | generates Mallard files that can be viewed with
|
---|
| 760 | <command>yelp</command> or rendered to HTML with
|
---|
| 761 | <command>yelp-build</command> from
|
---|
| 762 | <ulink url="&gnome-download-http;/yelp-tools">yelp-tools</ulink>
|
---|
| 763 | </para>
|
---|
| 764 | <indexterm zone="glib2 g-ir-doc-tool">
|
---|
| 765 | <primary sortas="b-g-ir-doc-tool">g-ir-doc-tool</primary>
|
---|
| 766 | </indexterm>
|
---|
| 767 | </listitem>
|
---|
| 768 | </varlistentry>
|
---|
| 769 |
|
---|
| 770 | <varlistentry id="g-ir-inspect">
|
---|
| 771 | <term><command>g-ir-inspect</command></term>
|
---|
| 772 | <listitem>
|
---|
| 773 | <para>
|
---|
| 774 | is a counterpart of <command>gi-inspect-typelib</command>
|
---|
| 775 | for the old
|
---|
| 776 | <systemitem class='library'>libgirepository-1.0</systemitem>
|
---|
| 777 | API
|
---|
| 778 | </para>
|
---|
| 779 | <indexterm zone="glib2 g-ir-inspect">
|
---|
| 780 | <primary sortas="b-g-ir-inspect">g-ir-inspect</primary>
|
---|
| 781 | </indexterm>
|
---|
| 782 | </listitem>
|
---|
| 783 | </varlistentry>
|
---|
| 784 |
|
---|
| 785 | <varlistentry id="g-ir-generate">
|
---|
| 786 | <term><command>g-ir-generate</command></term>
|
---|
| 787 | <listitem>
|
---|
| 788 | <para>
|
---|
| 789 | is a counterpart of <command>gi-decompile-typelib</command>
|
---|
| 790 | for the old
|
---|
| 791 | <systemitem class='library'>libgirepository-1.0</systemitem>
|
---|
| 792 | API
|
---|
| 793 | </para>
|
---|
| 794 | <indexterm zone="glib2 g-ir-generate">
|
---|
| 795 | <primary sortas="b-g-ir-generate">g-ir-generate</primary>
|
---|
| 796 | </indexterm>
|
---|
| 797 | </listitem>
|
---|
| 798 | </varlistentry>
|
---|
| 799 |
|
---|
| 800 | <varlistentry id="g-ir-scanner">
|
---|
| 801 | <term><command>g-ir-scanner</command></term>
|
---|
| 802 | <listitem>
|
---|
| 803 | <para>
|
---|
| 804 | is a tool which generates GIR XML files by parsing headers and
|
---|
| 805 | introspecting GObject based libraries
|
---|
| 806 | </para>
|
---|
| 807 | <indexterm zone="glib2 g-ir-scanner">
|
---|
| 808 | <primary sortas="b-g-ir-scanner">g-ir-scanner</primary>
|
---|
| 809 | </indexterm>
|
---|
| 810 | </listitem>
|
---|
| 811 | </varlistentry>
|
---|
| 812 |
|
---|
| 813 | <varlistentry id="libgirepository-1.0">
|
---|
| 814 | <term><filename class='libraryfile'>libgirepository-1.0.so</filename></term>
|
---|
| 815 | <listitem>
|
---|
| 816 | <para>
|
---|
| 817 | is a counterpart of
|
---|
| 818 | <systemitem class='library'>libgirepository-2.0</systemitem>
|
---|
| 819 | with the old 1.0 API
|
---|
| 820 | </para>
|
---|
| 821 | <indexterm zone="glib2 libgirepository-1.0">
|
---|
| 822 | <primary sortas="c-libgirepository1">libgirepository-1.0.so</primary>
|
---|
| 823 | </indexterm>
|
---|
| 824 | </listitem>
|
---|
| 825 | </varlistentry>
|
---|
[7c18102] | 826 | </variablelist>
|
---|
| 827 |
|
---|
| 828 | </sect2>
|
---|
[d4340990] | 829 |
|
---|
| 830 | </sect1>
|
---|