From aeb61cc313e0ad0c230f7d6bc0a4b8a5db8dd55e Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Mon, 10 Apr 2023 16:58:19 +0800 Subject: libsoup: upgrade 3.2.2 -> 3.4.0 Changelog: ========== * Fix possible crash in SoupContentSniffer * Fix socket leak * Add missing annotation to soup_header_g_string_append_param_quoted() * Fix regression in 'SoupCookieJar' not handling valid Secure cookies * Fix crash when skipping HTTP/1 response stream with chunked enconding * Change Session to unqueue finished items earlier without an extra MainContext iteration * Add 'SoupMessage::got-body-data' signal to monitor progress of reads * Add 'soup_session_send_and_splice()' and 'soup_session_send_and_splice_async()' convenience APIs * Add 'soup_message_set_force_http1()' and 'soup_message_get_force_http1()' APIs * Change 'soup_cookie_copy()' to not retain default ports * Ensure 'SoupServerMessage' socket is available in websocket handler * Fix 'soup_message_new()' not erroring when URI has an empty host * Fix thread-saftey issues in 'SoupConnectionAuth' * Fix various connection leaks * Fix the possibility of sending invalid empty 'Sec-WebSocket-Protocol' header * Fix IO errors not being handled on 'CONNECT' messages * Numerous improvements to cookies: * Add support for cookie prefixes ('__Secure-' and '__Host-') * Reject cookies with control characters in name or value * Reject 'SameSite=None' cookies without 'Secure' * Change 'soup_cookie_parse()' to be more strict about what is considered whitespace * Change default SameSite value to 'Lax' * Fix 'soup_cookie_equal()' with 'NULL' path (From OE-Core rev: c98d4d5cc7e1fd1f6d81e2bf2d7629a83bc9a63b) Signed-off-by: Wang Mingyu Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta/recipes-support/libsoup/libsoup_3.2.2.bb | 46 --------------------------- meta/recipes-support/libsoup/libsoup_3.4.0.bb | 46 +++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 46 deletions(-) delete mode 100644 meta/recipes-support/libsoup/libsoup_3.2.2.bb create mode 100644 meta/recipes-support/libsoup/libsoup_3.4.0.bb (limited to 'meta/recipes-support/libsoup') diff --git a/meta/recipes-support/libsoup/libsoup_3.2.2.bb b/meta/recipes-support/libsoup/libsoup_3.2.2.bb deleted file mode 100644 index e16cd17705..0000000000 --- a/meta/recipes-support/libsoup/libsoup_3.2.2.bb +++ /dev/null @@ -1,46 +0,0 @@ -SUMMARY = "An HTTP library implementation in C" -DESCRIPTION = "libsoup is an HTTP client/server library for GNOME. It uses GObjects \ -and the glib main loop, to integrate well with GNOME applications." -HOMEPAGE = "https://wiki.gnome.org/Projects/libsoup" -BUGTRACKER = "https://bugzilla.gnome.org/" -SECTION = "x11/gnome/libs" -LICENSE = "LGPL-2.0-only" -LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2" - -DEPENDS = "glib-2.0 glib-2.0-native libxml2 sqlite3 libpsl nghttp2" - -SHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}" - -SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz" -SRC_URI[sha256sum] = "83673c685b910fb7d39f1f28eee5afbefb71c05798fc350ac3bf1b885e1efaa1" - -PROVIDES = "libsoup-3.0" -CVE_PRODUCT = "libsoup" - -S = "${WORKDIR}/libsoup-${PV}" - -inherit meson gettext pkgconfig upstream-version-is-even gobject-introspection gi-docgen - -GIR_MESON_ENABLE_FLAG = 'enabled' -GIR_MESON_DISABLE_FLAG = 'disabled' - -# libsoup-gnome is entirely deprecated and just stubs in 2.42 onwards. Disable by default. -PACKAGECONFIG ??= "" -PACKAGECONFIG[gssapi] = "-Dgssapi=enabled,-Dgssapi=disabled,krb5" - -EXTRA_OEMESON:append = " -Dvapi=disabled -Dtls_check=false" - -GIDOCGEN_MESON_OPTION = 'docs' -GIDOCGEN_MESON_ENABLE_FLAG = 'enabled' -GIDOCGEN_MESON_DISABLE_FLAG = 'disabled' - -# When built without gnome support, libsoup will contain only one shared lib -# and will therefore become subject to renaming by debian.bbclass. Prevent -# renaming in order to keep the package name consistent regardless of whether -# gnome support is enabled or disabled. -DEBIAN_NOAUTONAME:${PN} = "1" - -# glib-networking is needed for SSL, proxies, etc. -RRECOMMENDS:${PN} = "glib-networking" - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-support/libsoup/libsoup_3.4.0.bb b/meta/recipes-support/libsoup/libsoup_3.4.0.bb new file mode 100644 index 0000000000..d35e4f25c1 --- /dev/null +++ b/meta/recipes-support/libsoup/libsoup_3.4.0.bb @@ -0,0 +1,46 @@ +SUMMARY = "An HTTP library implementation in C" +DESCRIPTION = "libsoup is an HTTP client/server library for GNOME. It uses GObjects \ +and the glib main loop, to integrate well with GNOME applications." +HOMEPAGE = "https://wiki.gnome.org/Projects/libsoup" +BUGTRACKER = "https://bugzilla.gnome.org/" +SECTION = "x11/gnome/libs" +LICENSE = "LGPL-2.0-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2" + +DEPENDS = "glib-2.0 glib-2.0-native libxml2 sqlite3 libpsl nghttp2" + +SHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}" + +SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz" +SRC_URI[sha256sum] = "23efff6ac70f2c1e873507dac52649eec032c1597a4ae951762ce3123789acc9" + +PROVIDES = "libsoup-3.0" +CVE_PRODUCT = "libsoup" + +S = "${WORKDIR}/libsoup-${PV}" + +inherit meson gettext pkgconfig upstream-version-is-even gobject-introspection gi-docgen + +GIR_MESON_ENABLE_FLAG = 'enabled' +GIR_MESON_DISABLE_FLAG = 'disabled' + +# libsoup-gnome is entirely deprecated and just stubs in 2.42 onwards. Disable by default. +PACKAGECONFIG ??= "" +PACKAGECONFIG[gssapi] = "-Dgssapi=enabled,-Dgssapi=disabled,krb5" + +EXTRA_OEMESON:append = " -Dvapi=disabled -Dtls_check=false" + +GIDOCGEN_MESON_OPTION = 'docs' +GIDOCGEN_MESON_ENABLE_FLAG = 'enabled' +GIDOCGEN_MESON_DISABLE_FLAG = 'disabled' + +# When built without gnome support, libsoup will contain only one shared lib +# and will therefore become subject to renaming by debian.bbclass. Prevent +# renaming in order to keep the package name consistent regardless of whether +# gnome support is enabled or disabled. +DEBIAN_NOAUTONAME:${PN} = "1" + +# glib-networking is needed for SSL, proxies, etc. +RRECOMMENDS:${PN} = "glib-networking" + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf