source: networking/netlibs/glib-networking.xml@ 0308356

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.0 9.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 0308356 was 0308356, checked in by Douglas R. Reno <renodr@…>, 5 years ago

Add patch to glib-networking to fix breakage caused by GnuTLS API additions

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

  • Property mode set to 100644
File size: 6.9 KB
Line 
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
7 <!ENTITY glib-networking-download-http
8 "&gnome-download-http;/glib-networking/2.60/glib-networking-&glib-networking-version;.tar.xz">
9 <!ENTITY glib-networking-download-ftp
10 "&gnome-download-ftp;/glib-networking/2.60/glib-networking-&glib-networking-version;.tar.xz">
11 <!ENTITY glib-networking-md5sum "83321ffc3c336894b8a5bc18db3fe58d">
12 <!ENTITY glib-networking-size "184 KB">
13 <!ENTITY glib-networking-buildsize "3.6 MB (with tests)">
14 <!ENTITY glib-networking-time "0.1 SBU (with tests)">
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">
32 <title>Introduction to GLib Networking</title>
33
34 <para>
35 The <application>GLib Networking</application> package contains
36 Network related gio modules for <application>GLib</application>.
37 </para>
38
39 &lfs84_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&glib-networking-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download (FTP): <ulink url="&glib-networking-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download MD5 sum: &glib-networking-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download size: &glib-networking-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &glib-networking-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &glib-networking-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74
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>
84
85 <bridgehead renderas="sect3">GLib Networking Dependencies</bridgehead>
86
87 <bridgehead renderas="sect4">Required</bridgehead>
88 <para role="required">
89 <xref linkend="glib2"/>,
90 <xref linkend="gnutls"/>, and
91 <xref linkend="gsettings-desktop-schemas"/>
92 </para>
93
94 <bridgehead renderas="sect4">Recommended</bridgehead>
95 <para role="recommended">
96 <xref linkend="make-ca"/>
97 <!-- p11-kit option no longer exists, and is pulled in by GnuTLS anyway -->
98 </para>
99
100 <bridgehead renderas="sect4">Optional</bridgehead>
101 <para role="optional">
102 <ulink url="https://github.com/libproxy/libproxy">libproxy</ulink>
103 </para>
104
105 <para condition="html" role="usernotes">User Notes:
106 <ulink url="&blfs-wiki;/glib-networking"/>
107 </para>
108 </sect2>
109
110 <sect2 role="installation">
111 <title>Installation of GLib Networking</title>
112
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. -->
117
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>
123
124 <para>
125 Install <application>GLib Networking</application> by running the following
126 commands:
127 </para>
128
129<screen><userinput>mkdir build &amp;&amp;
130cd build &amp;&amp;
131
132meson --prefix=/usr \
133 -Dlibproxy=disabled .. &amp;&amp;
134ninja</userinput></screen>
135
136 <para>
137 To test the results, issue: <command>ninja test</command>.
138 </para>
139
140 <!-- glib-networking/#70 -->
141 <!-- The patch fixes this problem, and the connection-gnutls failure was
142 indicative of a complete failure of the GnuTLS backend to use certificates.
143 This broke WebKit and libsoup, and has since been patched. -->
144 <!--
145 <para>
146 The test <emphasis>connection-gnutls</emphasis> is known to fail.
147 </para>
148 -->
149
150 <para>
151 Now, as the <systemitem class="username">root</systemitem> user:
152 </para>
153
154<screen role="root"><userinput>ninja install</userinput></screen>
155
156 </sect2>
157<!--
158 <sect2 role="commands">
159 <title>Command Explanations</title>
160
161 <para>
162 <parameter>- -without-ca-certificates</parameter>: This parameter forces
163 use of PKCS #11 modules for TLS certificate validation instead of a
164 bundle of certificates.
165 </para>
166
167 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
168 href="../../xincludes/static-libraries.xml"/>
169
170 </sect2>
171 -->
172 <!-- This isn't needed anymore and breaks applications which use it.
173 <sect2 role="configuration">
174 <title>Configuring Glib-networking</title>
175 <!- - This breaks the libsoup tests - ->
176
177 <sect3 id="glib-networking-config">
178 <title>Config Files</title>
179 <para>
180 <filename>/etc/profile.d/gio.sh</filename>
181 </para>
182
183 <indexterm zone="glib-networking glib-networking-config">
184 <primary
185 sortas="e-etc-profile.d-gio.sh">/etc/profile.d/gio.sh</primary>
186 </indexterm>
187 </sect3>
188
189 <sect3><title>Configuration Information</title>
190
191 <para>
192 For using the PKCS #11 modules, the <envar>GIO_USE_TLS</envar> variable
193 should be set in the environment. This can be added to the Bash Startup
194 Files (as the <systemitem class="username">root</systemitem> user):
195 </para>
196
197<screen role="root"><userinput>cat &gt; /etc/profile.d/gio.sh &lt;&lt; "EOF"
198<literal># Begin gio.sh
199
200export GIO_USE_TLS=gnutls-pkcs11
201
202# End gio.sh</literal>
203EOF</userinput></screen>
204 </sect3>
205 </sect2>
206-->
207 <sect2 role="content">
208 <title>Contents</title>
209
210 <segmentedlist>
211 <segtitle>Installed Program</segtitle>
212 <segtitle>Installed Libraries</segtitle>
213 <segtitle>Installed Directories</segtitle>
214
215 <seglistitem>
216 <seg>
217 None
218 </seg>
219 <seg>
220 libgiognomeproxy.so and libgiognutls.so (GIO Modules installed in
221 <filename class="directory">/usr/lib/gio/modules</filename>)
222 </seg>
223 <seg>
224 None
225 </seg>
226 </seglistitem>
227 </segmentedlist>
228
229 </sect2>
230
231</sect1>
Note: See TracBrowser for help on using the repository browser.