diff options
| author | Peter Kjellerstedt <pkj@axis.com> | 2025-05-16 13:44:35 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-05-17 10:58:33 -0700 |
| commit | 86562fb91ac3e996e8722e32fb7901e36f72931a (patch) | |
| tree | 6721bb10bff1b248b1f620479b1845e0ccdabcfb /meta-oe/recipes-support/libsoup/libsoup-2.4_2.74.3.bb | |
| parent | 2d431c2d0b7e1171e81fb42ec6169756c337b2f4 (diff) | |
| download | meta-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.bb | 66 |
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 @@ | |||
| 1 | SUMMARY = "An HTTP library implementation in C" | ||
| 2 | DESCRIPTION = "libsoup is an HTTP client/server library for GNOME. It uses GObjects \ | ||
| 3 | and the glib main loop, to integrate well with GNOME applications." | ||
| 4 | HOMEPAGE = "https://wiki.gnome.org/Projects/libsoup" | ||
| 5 | BUGTRACKER = "https://bugzilla.gnome.org/" | ||
| 6 | SECTION = "x11/gnome/libs" | ||
| 7 | LICENSE = "LGPL-2.0-only" | ||
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2" | ||
| 9 | |||
| 10 | DEPENDS = "glib-2.0 glib-2.0-native libxml2 sqlite3 libpsl" | ||
| 11 | |||
| 12 | SHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}" | ||
| 13 | |||
| 14 | SRC_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 | |||
| 23 | SRC_URI[sha256sum] = "e4b77c41cfc4c8c5a035fcdc320c7bc6cfb75ef7c5a034153df1413fa1d92f13" | ||
| 24 | |||
| 25 | CVE_PRODUCT = "libsoup" | ||
| 26 | |||
| 27 | S = "${WORKDIR}/libsoup-${PV}" | ||
| 28 | |||
| 29 | inherit meson gettext pkgconfig upstream-version-is-even gobject-introspection gtk-doc | ||
| 30 | |||
| 31 | UPSTREAM_CHECK_REGEX = "libsoup-(?P<pver>2(\.(?!99)\d+)+)\.tar" | ||
| 32 | |||
| 33 | GIR_MESON_ENABLE_FLAG = 'enabled' | ||
| 34 | GIR_MESON_DISABLE_FLAG = 'disabled' | ||
| 35 | |||
| 36 | PACKAGECONFIG ??= "" | ||
| 37 | PACKAGECONFIG[brotli] = "-Dbrotli=enabled,-Dbrotli=disabled,brotli" | ||
| 38 | # libsoup-gnome is entirely deprecated and just stubs in 2.42 onwards | ||
| 39 | PACKAGECONFIG[gnome] = "-Dgnome=true,-Dgnome=false" | ||
| 40 | PACKAGECONFIG[gssapi] = "-Dgssapi=enabled,-Dgssapi=disabled,krb5" | ||
| 41 | PACKAGECONFIG[ntlm] = "-Dntlm=enabled,-Dntlm=disabled" | ||
| 42 | PACKAGECONFIG[sysprof] = "-Dsysprof=enabled,-Dsysprof=disabled,sysprof" | ||
| 43 | |||
| 44 | # Tell libsoup where the target ntlm_auth is installed | ||
| 45 | do_write_config:append:class-target() { | ||
| 46 | cat >${WORKDIR}/soup.cross <<EOF | ||
| 47 | [binaries] | ||
| 48 | ntlm_auth = '${bindir}/ntlm_auth' | ||
| 49 | EOF | ||
| 50 | } | ||
| 51 | EXTRA_OEMESON:append:class-target = " --cross-file ${WORKDIR}/soup.cross" | ||
| 52 | |||
| 53 | EXTRA_OEMESON += "-Dvapi=disabled -Dtls_check=false" | ||
| 54 | |||
| 55 | GTKDOC_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. | ||
| 61 | DEBIAN_NOAUTONAME:${PN} = "1" | ||
| 62 | |||
| 63 | # glib-networking is needed for SSL, proxies, etc. | ||
| 64 | RRECOMMENDS:${PN} = "glib-networking" | ||
| 65 | |||
| 66 | BBCLASSEXTEND = "native nativesdk" | ||
