[7236a20] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[f8efa5b] | 7 | <!ENTITY glib-networking-download-http
|
---|
[9e716cc] | 8 | "&gnome-download-http;/glib-networking/2.66/glib-networking-&glib-networking-version;.tar.xz">
|
---|
[008ae5ea] | 9 | <!ENTITY glib-networking-download-ftp " ">
|
---|
| 10 | <!-- <!ENTITY glib-networking-download-ftp
|
---|
| 11 | "&gnome-download-ftp;/glib-networking/2.66/glib-networking-&glib-networking-version;.tar.xz"> -->
|
---|
[9e716cc] | 12 | <!ENTITY glib-networking-md5sum "4740154ce6dcf7859fbbfd954fa5a226">
|
---|
| 13 | <!ENTITY glib-networking-size "192 KB">
|
---|
[26cceda] | 14 | <!ENTITY glib-networking-buildsize "5.8 MB (with tests)">
|
---|
[40b70d8] | 15 | <!ENTITY glib-networking-time "less than 0.1 SBU (with tests)">
|
---|
[7236a20] | 16 | ]>
|
---|
| 17 |
|
---|
| 18 | <sect1 id="glib-networking" xreflabel="glib-networking-&glib-networking-version;">
|
---|
| 19 | <?dbhtml filename="glib-networking.html"?>
|
---|
| 20 |
|
---|
| 21 | <sect1info>
|
---|
| 22 | <othername>$LastChangedBy$</othername>
|
---|
| 23 | <date>$Date$</date>
|
---|
| 24 | </sect1info>
|
---|
| 25 |
|
---|
| 26 | <title>glib-networking-&glib-networking-version;</title>
|
---|
| 27 |
|
---|
| 28 | <indexterm zone="glib-networking">
|
---|
| 29 | <primary sortas="a-glib-networking">glib-networking</primary>
|
---|
| 30 | </indexterm>
|
---|
| 31 |
|
---|
| 32 | <sect2 role="package">
|
---|
[7ded7e3] | 33 | <title>Introduction to GLib Networking</title>
|
---|
[7236a20] | 34 |
|
---|
[7ded7e3] | 35 | <para>
|
---|
| 36 | The <application>GLib Networking</application> package contains
|
---|
| 37 | Network related gio modules for <application>GLib</application>.
|
---|
| 38 | </para>
|
---|
[7236a20] | 39 |
|
---|
[9029db2] | 40 | &lfs101_checked;
|
---|
[7236a20] | 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
[7ded7e3] | 45 | <para>
|
---|
| 46 | Download (HTTP): <ulink url="&glib-networking-download-http;"/>
|
---|
| 47 | </para>
|
---|
[7236a20] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[7ded7e3] | 50 | <para>
|
---|
| 51 | Download (FTP): <ulink url="&glib-networking-download-ftp;"/>
|
---|
| 52 | </para>
|
---|
[7236a20] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[7ded7e3] | 55 | <para>
|
---|
| 56 | Download MD5 sum: &glib-networking-md5sum;
|
---|
| 57 | </para>
|
---|
[7236a20] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[7ded7e3] | 60 | <para>
|
---|
| 61 | Download size: &glib-networking-size;
|
---|
| 62 | </para>
|
---|
[7236a20] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[7ded7e3] | 65 | <para>
|
---|
| 66 | Estimated disk space required: &glib-networking-buildsize;
|
---|
| 67 | </para>
|
---|
[7236a20] | 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
[7ded7e3] | 70 | <para>
|
---|
| 71 | Estimated build time: &glib-networking-time;
|
---|
| 72 | </para>
|
---|
[7236a20] | 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
[3a802b2] | 75 | <!--
|
---|
[0308356] | 76 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 77 | <itemizedlist spacing="compact">
|
---|
| 78 | <listitem>
|
---|
| 79 | <para>
|
---|
| 80 | Required patch:
|
---|
| 81 | <ulink url="&patch-root;/glib-networking-&glib-networking-version;-upstream_fixes-1.patch"/>
|
---|
| 82 | </para>
|
---|
| 83 | </listitem>
|
---|
| 84 | </itemizedlist>
|
---|
[3a802b2] | 85 | -->
|
---|
[7ded7e3] | 86 | <bridgehead renderas="sect3">GLib Networking Dependencies</bridgehead>
|
---|
[7236a20] | 87 |
|
---|
| 88 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[f8efa5b] | 89 | <para role="required">
|
---|
[1ad3510e] | 90 | <xref linkend="glib2"/>,
|
---|
[16e43a1e] | 91 | <xref linkend="gnutls"/>, and
|
---|
[f8efa5b] | 92 | <xref linkend="gsettings-desktop-schemas"/>
|
---|
| 93 | </para>
|
---|
[7236a20] | 94 |
|
---|
[4c2be438] | 95 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 96 | <para role="recommended">
|
---|
[85465d9] | 97 | <xref linkend="make-ca"/>
|
---|
| 98 | <!-- p11-kit option no longer exists, and is pulled in by GnuTLS anyway -->
|
---|
[4c2be438] | 99 | </para>
|
---|
| 100 |
|
---|
[7236a20] | 101 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[f8efa5b] | 102 | <para role="optional">
|
---|
[9be39a1] | 103 | <ulink url="https://github.com/libproxy/libproxy">libproxy</ulink>
|
---|
[f8efa5b] | 104 | </para>
|
---|
[7236a20] | 105 |
|
---|
| 106 | <para condition="html" role="usernotes">User Notes:
|
---|
[7ded7e3] | 107 | <ulink url="&blfs-wiki;/glib-networking"/>
|
---|
| 108 | </para>
|
---|
[7236a20] | 109 | </sect2>
|
---|
| 110 |
|
---|
| 111 | <sect2 role="installation">
|
---|
[7ded7e3] | 112 | <title>Installation of GLib Networking</title>
|
---|
[7236a20] | 113 |
|
---|
[85465d9] | 114 | <!-- 2.60.0 of glib-networking introduced an experimental OpenSSL backend.
|
---|
| 115 | Since it is not tested well upstream yet, and it is recommended by upstream
|
---|
| 116 | to use the GnuTLS backend on Linux, we will continue using the GnuTLS
|
---|
| 117 | backend and not mention the OpenSSL backend to prevent confusion. -->
|
---|
[4bd5162e] | 118 | <!--
|
---|
[0308356] | 119 | <para>
|
---|
| 120 | First, apply a patch to fix a problem introduced by API changes in GnuTLS:
|
---|
| 121 | </para>
|
---|
| 122 |
|
---|
| 123 | <screen><userinput remap="pre">patch -Np1 -i ../glib-networking-&glib-networking-version;-upstream_fixes-1.patch</userinput></screen>
|
---|
[4bd5162e] | 124 | -->
|
---|
[0308356] | 125 |
|
---|
[7ded7e3] | 126 | <para>
|
---|
| 127 | Install <application>GLib Networking</application> by running the following
|
---|
| 128 | commands:
|
---|
| 129 | </para>
|
---|
[7236a20] | 130 |
|
---|
[a059d7e] | 131 | <screen><userinput>mkdir build &&
|
---|
| 132 | cd build &&
|
---|
| 133 |
|
---|
[4855935] | 134 | meson --prefix=/usr \
|
---|
| 135 | -Dlibproxy=disabled .. &&
|
---|
[16e43a1e] | 136 | ninja</userinput></screen>
|
---|
[7236a20] | 137 |
|
---|
[7ded7e3] | 138 | <para>
|
---|
[16e43a1e] | 139 | To test the results, issue: <command>ninja test</command>.
|
---|
[7ded7e3] | 140 | </para>
|
---|
[7236a20] | 141 |
|
---|
[c60aa10c] | 142 | <!-- glib-networking/#70 -->
|
---|
[0308356] | 143 | <!-- The patch fixes this problem, and the connection-gnutls failure was
|
---|
| 144 | indicative of a complete failure of the GnuTLS backend to use certificates.
|
---|
| 145 | This broke WebKit and libsoup, and has since been patched. -->
|
---|
| 146 | <!--
|
---|
[c60aa10c] | 147 | <para>
|
---|
| 148 | The test <emphasis>connection-gnutls</emphasis> is known to fail.
|
---|
| 149 | </para>
|
---|
[0308356] | 150 | -->
|
---|
[c60aa10c] | 151 |
|
---|
[7ded7e3] | 152 | <para>
|
---|
| 153 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 154 | </para>
|
---|
[7236a20] | 155 |
|
---|
[16e43a1e] | 156 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[7236a20] | 157 |
|
---|
| 158 | </sect2>
|
---|
[16e43a1e] | 159 | <!--
|
---|
[7236a20] | 160 | <sect2 role="commands">
|
---|
| 161 | <title>Command Explanations</title>
|
---|
| 162 |
|
---|
[7ded7e3] | 163 | <para>
|
---|
[16e43a1e] | 164 | <parameter>- -without-ca-certificates</parameter>: This parameter forces
|
---|
[1ac799b] | 165 | use of PKCS #11 modules for TLS certificate validation instead of a
|
---|
| 166 | bundle of certificates.
|
---|
[7ded7e3] | 167 | </para>
|
---|
[7236a20] | 168 |
|
---|
[f8efa5b] | 169 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[7ded7e3] | 170 | href="../../xincludes/static-libraries.xml"/>
|
---|
[7236a20] | 171 |
|
---|
| 172 | </sect2>
|
---|
[632f5f80] | 173 | -->
|
---|
| 174 | <!-- This isn't needed anymore and breaks applications which use it.
|
---|
[b7a300f7] | 175 | <sect2 role="configuration">
|
---|
| 176 | <title>Configuring Glib-networking</title>
|
---|
[632f5f80] | 177 | <!- - This breaks the libsoup tests - ->
|
---|
[b7a300f7] | 178 |
|
---|
| 179 | <sect3 id="glib-networking-config">
|
---|
| 180 | <title>Config Files</title>
|
---|
| 181 | <para>
|
---|
| 182 | <filename>/etc/profile.d/gio.sh</filename>
|
---|
| 183 | </para>
|
---|
| 184 |
|
---|
| 185 | <indexterm zone="glib-networking glib-networking-config">
|
---|
| 186 | <primary
|
---|
| 187 | sortas="e-etc-profile.d-gio.sh">/etc/profile.d/gio.sh</primary>
|
---|
| 188 | </indexterm>
|
---|
| 189 | </sect3>
|
---|
| 190 |
|
---|
| 191 | <sect3><title>Configuration Information</title>
|
---|
| 192 |
|
---|
| 193 | <para>
|
---|
| 194 | For using the PKCS #11 modules, the <envar>GIO_USE_TLS</envar> variable
|
---|
| 195 | should be set in the environment. This can be added to the Bash Startup
|
---|
| 196 | Files (as the <systemitem class="username">root</systemitem> user):
|
---|
| 197 | </para>
|
---|
| 198 |
|
---|
| 199 | <screen role="root"><userinput>cat > /etc/profile.d/gio.sh << "EOF"
|
---|
| 200 | <literal># Begin gio.sh
|
---|
| 201 |
|
---|
| 202 | export GIO_USE_TLS=gnutls-pkcs11
|
---|
| 203 |
|
---|
| 204 | # End gio.sh</literal>
|
---|
| 205 | EOF</userinput></screen>
|
---|
| 206 | </sect3>
|
---|
| 207 | </sect2>
|
---|
[632f5f80] | 208 | -->
|
---|
[7236a20] | 209 | <sect2 role="content">
|
---|
| 210 | <title>Contents</title>
|
---|
| 211 |
|
---|
| 212 | <segmentedlist>
|
---|
| 213 | <segtitle>Installed Program</segtitle>
|
---|
| 214 | <segtitle>Installed Libraries</segtitle>
|
---|
| 215 | <segtitle>Installed Directories</segtitle>
|
---|
| 216 |
|
---|
| 217 | <seglistitem>
|
---|
[f8efa5b] | 218 | <seg>
|
---|
[598d4ef3] | 219 | None
|
---|
[f8efa5b] | 220 | </seg>
|
---|
| 221 | <seg>
|
---|
[3fdc9b0] | 222 | libgiognomeproxy.so and libgiognutls.so (GIO Modules installed in
|
---|
| 223 | <filename class="directory">/usr/lib/gio/modules</filename>)
|
---|
[f8efa5b] | 224 | </seg>
|
---|
| 225 | <seg>
|
---|
[598d4ef3] | 226 | None
|
---|
[f8efa5b] | 227 | </seg>
|
---|
[7236a20] | 228 | </seglistitem>
|
---|
| 229 | </segmentedlist>
|
---|
| 230 |
|
---|
| 231 | </sect2>
|
---|
| 232 |
|
---|
| 233 | </sect1>
|
---|