The libsoup3 is a HTTP client/server library for GNOME. It uses GObject and the GLib main loop to integrate with GNOME applications and it also has an asynchronous API for use in threaded applications.
This package is known to build and work properly using an LFS 11.3 platform.
Download (HTTP): https://download.gnome.org/sources/libsoup/3.2/libsoup-3.2.2.tar.xz
Download (FTP): ftp://ftp.acc.umu.se/pub/gnome/sources/libsoup/3.2/libsoup-3.2.2.tar.xz
Download MD5 sum: 33902089d52f862d6b39680dd4c4e3aa
Download size: 1.5 MB
Estimated disk space required: 24 MB (with tests)
Estimated build time: 0.3 SBU (Using parallelism=4; with tests)
glib-networking-2.74.0, libpsl-0.21.2, libxml2-2.10.3, nghttp2-1.52.0, and SQLite-3.40.1
gobject-introspection-1.74.0 and Vala-0.56.4
Apache-2.4.55 (required to run the test suite), Brotli-1.0.9, cURL-7.88.1 (required to run the test suite), Gi-DocGen-2023.1, MIT Kerberos V5-1.20.1 (required to run the test suite), PHP-8.2.3 compiled with XMLRPC-EPI support (only used for the XMLRPC regression tests), Samba-4.17.5 (ntlm_auth is required to run the test suite), and sysprof-3.46.0 (for profiling)
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/libsoup3
Fix the installation path of API documentation:
sed 's/apiversion/soup_version/' -i docs/reference/meson.build
Install libsoup3 by running the following commands:
mkdir build && cd build && meson --prefix=/usr \ --buildtype=release \ -Dvapi=enabled \ -Dgssapi=disabled \ -Dsysprof=disabled \ --wrap-mode=nofallback \ .. && ninja
To test the results, issue: ninja test.
Now, as the root
user:
ninja install
--buildtype=release
: Specify a buildtype
suitable for stable releases of the package, as the default may
produce unoptimized binaries.
--wrap-mode=nofallback
: This switch prevents
meson from using subproject fallbacks for any
dependency declarations in the build files, stopping it downloading
any optional dependency which is not installed on the system.
-Dvapi=disabled
: Use this if you have not installed
Vala, e.g. because you are not building
GNOME.
-Ddocs=enabled
: If Gi-DocGen-2023.1 is
installed, the API documentation will be built and installed no matter
if this option is used or not. This option causes the
meson command to fail if
Gi-DocGen-2023.1 is not installed.
-Dgssapi=disabled
: libsoup3 defaults to building with GSSAPI support,
which requires Kerberos (as does the test suite).
-Dsysprof=disabled
: libsoup3 will automatically download
a git version of sysprof-3.46.0 if git is available or use the installed
version if available. If you need profiling, remove this option.