1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
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 libsoup-download-http
|
---|
8 | "&gnome-download-http;/libsoup/&libsoup-minor;/libsoup-&libsoup-version;.tar.xz">
|
---|
9 | <!ENTITY libsoup-download-ftp " ">
|
---|
10 | <!ENTITY libsoup-md5sum "8f657fd301a213629204b3320c35d75a">
|
---|
11 | <!ENTITY libsoup-size "1.4 MB">
|
---|
12 | <!ENTITY libsoup-buildsize "17 MB (with tests)">
|
---|
13 | <!ENTITY libsoup-time "0.3 SBU (Using parallelism=4; with tests)">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="libsoup" xreflabel="libsoup-&libsoup-version;">
|
---|
17 | <?dbhtml filename="libsoup.html"?>
|
---|
18 |
|
---|
19 |
|
---|
20 | <title>libsoup-&libsoup-version;</title>
|
---|
21 |
|
---|
22 | <indexterm zone="libsoup">
|
---|
23 | <primary sortas="a-libsoup">libsoup</primary>
|
---|
24 | </indexterm>
|
---|
25 |
|
---|
26 | <sect2 role="package">
|
---|
27 | <title>Introduction to libsoup</title>
|
---|
28 |
|
---|
29 | <para>
|
---|
30 | The <application>libsoup</application> is a HTTP client/server library for
|
---|
31 | <application>GNOME</application>. It uses GObject and the GLib main loop
|
---|
32 | to integrate with <application>GNOME</application> applications and
|
---|
33 | it also has an asynchronous API for use in threaded applications.
|
---|
34 | </para>
|
---|
35 |
|
---|
36 | &lfs122_checked;
|
---|
37 |
|
---|
38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
39 | <itemizedlist spacing="compact">
|
---|
40 | <listitem>
|
---|
41 | <para>
|
---|
42 | Download (HTTP): <ulink url="&libsoup-download-http;"/>
|
---|
43 | </para>
|
---|
44 | </listitem>
|
---|
45 | <listitem>
|
---|
46 | <para>
|
---|
47 | Download (FTP): <ulink url="&libsoup-download-ftp;"/>
|
---|
48 | </para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>
|
---|
52 | Download MD5 sum: &libsoup-md5sum;
|
---|
53 | </para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>
|
---|
57 | Download size: &libsoup-size;
|
---|
58 | </para>
|
---|
59 | </listitem>
|
---|
60 | <listitem>
|
---|
61 | <para>
|
---|
62 | Estimated disk space required: &libsoup-buildsize;
|
---|
63 | </para>
|
---|
64 | </listitem>
|
---|
65 | <listitem>
|
---|
66 | <para>
|
---|
67 | Estimated build time: &libsoup-time;
|
---|
68 | </para>
|
---|
69 | </listitem>
|
---|
70 | </itemizedlist>
|
---|
71 | <!--
|
---|
72 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
73 | <itemizedlist spacing="compact">
|
---|
74 | <listitem>
|
---|
75 | <para>
|
---|
76 | Required patch:
|
---|
77 | <ulink url="&patch-root;/libsoup-&libsoup-version;-testsuite_fix-1.patch"/>
|
---|
78 | </para>
|
---|
79 | </listitem>
|
---|
80 | </itemizedlist>
|
---|
81 | -->
|
---|
82 | <!--
|
---|
83 | <warning>
|
---|
84 | <para>
|
---|
85 | You may have noticed newer libsoup releases versioned 3.x.y is
|
---|
86 | available. However, currently some downstream packages support
|
---|
87 | libsoup-3.x, while the others do not. Installing libsoup-3.x into
|
---|
88 | BLFS is known to cause troubles, even if both libsoup-2.x and 3.x
|
---|
89 | are installed. So, do <emphasis role='bold'>not</emphasis> install
|
---|
90 | libsoup-3.x into BLFS unless you know what you are doing. We plan
|
---|
91 | to keep using libsoup-2.x for BLFS until GNOME-43 release.
|
---|
92 | </para>
|
---|
93 | </warning>
|
---|
94 | -->
|
---|
95 | <bridgehead renderas="sect3">libsoup Dependencies</bridgehead>
|
---|
96 |
|
---|
97 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
98 | <para role="required">
|
---|
99 | <xref linkend="glib-networking"/>,
|
---|
100 | <xref linkend="libpsl"/>,
|
---|
101 | <xref linkend="libxml2"/>, and
|
---|
102 | <xref linkend="sqlite"/>
|
---|
103 | </para>
|
---|
104 |
|
---|
105 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
106 | <para role="recommended">
|
---|
107 | &gobject-introspection; and
|
---|
108 | <xref linkend="vala"/>
|
---|
109 | </para>
|
---|
110 |
|
---|
111 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
112 | <para role="optional">
|
---|
113 | <xref linkend="apache"/> (required to run the test suite),
|
---|
114 | <xref linkend="brotli"/>,
|
---|
115 | <xref linkend="curl"/> (required to run the test suite),
|
---|
116 | <!--<xref linkend="sysprof"/> (for profiling),-->
|
---|
117 | <xref linkend="mitkrb"/> (required to run the test suite),
|
---|
118 | <xref linkend="gtk-doc"/>,
|
---|
119 | <!-- It seems that XMLRPC is part of PHP 5.4.10 -->
|
---|
120 | <xref linkend="php"/> compiled with XMLRPC-EPI
|
---|
121 | support (only used for the XMLRPC regression tests),
|
---|
122 | <xref linkend="samba"/> (ntlm_auth is required to run the test suite), and
|
---|
123 | <ulink url="&sysprof-url;">sysprof</ulink>
|
---|
124 | </para>
|
---|
125 |
|
---|
126 | </sect2>
|
---|
127 |
|
---|
128 | <sect2 role="installation">
|
---|
129 | <title>Installation of libsoup</title>
|
---|
130 |
|
---|
131 | <!-- fixed in libxml2-2.12.3
|
---|
132 | <para>
|
---|
133 | First, fix a build failure caused by libxml2-2.12.x:
|
---|
134 | </para>
|
---|
135 |
|
---|
136 | <screen><userinput remap="pre">sed -i '/tree/a #include <libxml/parser.h>' libsoup/soup-xmlrpc*.c</userinput></screen>
|
---|
137 | -->
|
---|
138 |
|
---|
139 | <para>
|
---|
140 | Install <application>libsoup</application> by running the following
|
---|
141 | commands:
|
---|
142 | </para>
|
---|
143 |
|
---|
144 | <screen><userinput>mkdir build &&
|
---|
145 | cd build &&
|
---|
146 |
|
---|
147 | meson setup --prefix=/usr \
|
---|
148 | --buildtype=release \
|
---|
149 | -D vapi=enabled \
|
---|
150 | -D gssapi=disabled \
|
---|
151 | -D sysprof=disabled \
|
---|
152 | .. &&
|
---|
153 | ninja</userinput></screen>
|
---|
154 |
|
---|
155 | <para>
|
---|
156 | To test the results, issue: <command>ninja test</command>.
|
---|
157 | <!-- Upstream issue #120. -->
|
---|
158 | One test named <filename>ssl-test</filename> is known to fail.
|
---|
159 | </para>
|
---|
160 |
|
---|
161 | <para>
|
---|
162 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
163 | </para>
|
---|
164 |
|
---|
165 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
166 |
|
---|
167 | </sect2>
|
---|
168 |
|
---|
169 | <sect2 role="commands">
|
---|
170 | <title>Command Explanations</title>
|
---|
171 |
|
---|
172 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
173 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
174 |
|
---|
175 | <para>
|
---|
176 | <option>-D vapi=disabled</option>: Use this if you have not installed
|
---|
177 | <application>Vala</application>, e.g. because you are not building
|
---|
178 | <application>GNOME</application>.
|
---|
179 | </para>
|
---|
180 |
|
---|
181 | <para>
|
---|
182 | <option>-D doc=enabled</option>: Use this option if you want to build
|
---|
183 | the documentation. Note that you must have <xref linkend="gtk-doc"/> installed.
|
---|
184 | </para>
|
---|
185 |
|
---|
186 | <para>
|
---|
187 | <parameter>-D gssapi=disabled</parameter>: libsoup defaults to building with GSSAPI support,
|
---|
188 | which requires Kerberos (as does the test suite). If you are building GNOME or
|
---|
189 | have kerberos installed, remove this option.
|
---|
190 | </para>
|
---|
191 |
|
---|
192 | <para>
|
---|
193 | <parameter>-D sysprof=disabled</parameter>: libsoup will automatically
|
---|
194 | download a git version of <ulink url="&sysprof-url;">sysprof</ulink> if
|
---|
195 | git is available or use the installed version if it is present on the
|
---|
196 | system. If you need profiling, remove this option.
|
---|
197 | </para>
|
---|
198 |
|
---|
199 | </sect2>
|
---|
200 |
|
---|
201 | <sect2 role="content">
|
---|
202 | <title>Contents</title>
|
---|
203 |
|
---|
204 | <segmentedlist>
|
---|
205 | <segtitle>Installed Programs</segtitle>
|
---|
206 | <segtitle>Installed Libraries</segtitle>
|
---|
207 | <segtitle>Installed Directories</segtitle>
|
---|
208 |
|
---|
209 | <seglistitem>
|
---|
210 | <seg>
|
---|
211 | None
|
---|
212 | </seg>
|
---|
213 | <seg>
|
---|
214 | libsoup-2.4.so and libsoup-gnome-2.4.so
|
---|
215 | </seg>
|
---|
216 | <seg>
|
---|
217 | /usr/include/libsoup-2.4,
|
---|
218 | /usr/include/libsoup-gnome-2.4 and
|
---|
219 | /usr/share/gtk-doc/html/libsoup-2.4 <!-- only installed if -D doc=true is
|
---|
220 | passed. -->
|
---|
221 | </seg>
|
---|
222 | </seglistitem>
|
---|
223 | </segmentedlist>
|
---|
224 |
|
---|
225 | <variablelist>
|
---|
226 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
227 | <?dbfo list-presentation="list"?>
|
---|
228 | <?dbhtml list-presentation="table"?>
|
---|
229 |
|
---|
230 | <varlistentry id="libsoup-2">
|
---|
231 | <term><filename class="libraryfile">libsoup-2.4.so</filename></term>
|
---|
232 | <listitem>
|
---|
233 | <para>
|
---|
234 | provides functions for asynchronous HTTP connections
|
---|
235 | </para>
|
---|
236 | <indexterm zone="libsoup libsoup-2">
|
---|
237 | <primary sortas="c-libsoup-2">libsoup-2.4.so</primary>
|
---|
238 | </indexterm>
|
---|
239 | </listitem>
|
---|
240 | </varlistentry>
|
---|
241 |
|
---|
242 | <varlistentry id="libsoup-gnome-2">
|
---|
243 | <term><filename class="libraryfile">libsoup-gnome-2.4.so</filename></term>
|
---|
244 | <listitem>
|
---|
245 | <para>
|
---|
246 | provides <application>GNOME</application> specific features
|
---|
247 | </para>
|
---|
248 | <indexterm zone="libsoup libsoup-gnome-2">
|
---|
249 | <primary sortas="c-libsoup-gnome-2">libsoup-gnome-2.4.so</primary>
|
---|
250 | </indexterm>
|
---|
251 | </listitem>
|
---|
252 | </varlistentry>
|
---|
253 |
|
---|
254 | </variablelist>
|
---|
255 |
|
---|
256 | </sect2>
|
---|
257 |
|
---|
258 | </sect1>
|
---|