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