summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/libsoup/libsoup-2.4_2.74.3.bb
diff options
context:
space:
mode:
authorPeter Kjellerstedt <pkj@axis.com>2025-05-16 13:44:35 +0200
committerKhem Raj <raj.khem@gmail.com>2025-05-17 10:58:33 -0700
commit86562fb91ac3e996e8722e32fb7901e36f72931a (patch)
tree6721bb10bff1b248b1f620479b1845e0ccdabcfb /meta-oe/recipes-support/libsoup/libsoup-2.4_2.74.3.bb
parent2d431c2d0b7e1171e81fb42ec6169756c337b2f4 (diff)
downloadmeta-openembedded-86562fb91ac3e996e8722e32fb7901e36f72931a.tar.gz
libsoup-2.4: Add recipe
The libsoup-2.4 recipe has been removed from OE-Core, but there are still a number of recipes in meta-openembedded that depend on it. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/libsoup/libsoup-2.4_2.74.3.bb')
-rw-r--r--meta-oe/recipes-support/libsoup/libsoup-2.4_2.74.3.bb66
1 files changed, 66 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/libsoup/libsoup-2.4_2.74.3.bb b/meta-oe/recipes-support/libsoup/libsoup-2.4_2.74.3.bb
new file mode 100644
index 0000000000..7e275a48f4
--- /dev/null
+++ b/meta-oe/recipes-support/libsoup/libsoup-2.4_2.74.3.bb
@@ -0,0 +1,66 @@
1SUMMARY = "An HTTP library implementation in C"
2DESCRIPTION = "libsoup is an HTTP client/server library for GNOME. It uses GObjects \
3and the glib main loop, to integrate well with GNOME applications."
4HOMEPAGE = "https://wiki.gnome.org/Projects/libsoup"
5BUGTRACKER = "https://bugzilla.gnome.org/"
6SECTION = "x11/gnome/libs"
7LICENSE = "LGPL-2.0-only"
8LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2"
9
10DEPENDS = "glib-2.0 glib-2.0-native libxml2 sqlite3 libpsl"
11
12SHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}"
13
14SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz \
15 file://0001-Fix-build-with-libxml2-2.12.0-and-clang-17.patch \
16 file://0001-CVE-2025-32911.patch \
17 file://0001-Fix-possibly-uninitialized-warnings.patch \
18 file://0001-Remove-http-and-https-aliases-support-test.patch \
19 file://CVE-2024-52532-1.patch \
20 file://CVE-2024-52532-2.patch \
21 file://CVE-2024-52532-3.patch"
22
23SRC_URI[sha256sum] = "e4b77c41cfc4c8c5a035fcdc320c7bc6cfb75ef7c5a034153df1413fa1d92f13"
24
25CVE_PRODUCT = "libsoup"
26
27S = "${WORKDIR}/libsoup-${PV}"
28
29inherit meson gettext pkgconfig upstream-version-is-even gobject-introspection gtk-doc
30
31UPSTREAM_CHECK_REGEX = "libsoup-(?P<pver>2(\.(?!99)\d+)+)\.tar"
32
33GIR_MESON_ENABLE_FLAG = 'enabled'
34GIR_MESON_DISABLE_FLAG = 'disabled'
35
36PACKAGECONFIG ??= ""
37PACKAGECONFIG[brotli] = "-Dbrotli=enabled,-Dbrotli=disabled,brotli"
38# libsoup-gnome is entirely deprecated and just stubs in 2.42 onwards
39PACKAGECONFIG[gnome] = "-Dgnome=true,-Dgnome=false"
40PACKAGECONFIG[gssapi] = "-Dgssapi=enabled,-Dgssapi=disabled,krb5"
41PACKAGECONFIG[ntlm] = "-Dntlm=enabled,-Dntlm=disabled"
42PACKAGECONFIG[sysprof] = "-Dsysprof=enabled,-Dsysprof=disabled,sysprof"
43
44# Tell libsoup where the target ntlm_auth is installed
45do_write_config:append:class-target() {
46 cat >${WORKDIR}/soup.cross <<EOF
47[binaries]
48ntlm_auth = '${bindir}/ntlm_auth'
49EOF
50}
51EXTRA_OEMESON:append:class-target = " --cross-file ${WORKDIR}/soup.cross"
52
53EXTRA_OEMESON += "-Dvapi=disabled -Dtls_check=false"
54
55GTKDOC_MESON_OPTION = "gtk_doc"
56
57# When built without gnome support, libsoup-2.4 will contain only one shared lib
58# and will therefore become subject to renaming by debian.bbclass. Prevent
59# renaming in order to keep the package name consistent regardless of whether
60# gnome support is enabled or disabled.
61DEBIAN_NOAUTONAME:${PN} = "1"
62
63# glib-networking is needed for SSL, proxies, etc.
64RRECOMMENDS:${PN} = "glib-networking"
65
66BBCLASSEXTEND = "native nativesdk"