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