mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-20 22:27:17 -08:00
net-libs/gssdp: add 1.4.1
Signed-off-by: Cristian Othón Martínez Vera <cfuga@cfuga.mx> Part-of: https://github.com/gentoo/gentoo/pull/43280 Signed-off-by: Pacho Ramos <pacho@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST gssdp-1.4.0.1.tar.xz 1229264 BLAKE2B b94e46c79ad0615f976bad4b8efe9dbcaa27105b3189ee23ff349002d175ff83b0a9507846a23f0d8b5ed1e98381658f863a77bec6beff83933ebae5458a6b0e SHA512 c2132b27f49071941be1ad9bd1e642b8b82341aac7e10b87d8a9a0ed3d88759ab6730a4a05ddb904af5e0799602c470b9e83a987c72ec3c1444b7aaef0e36ad8
|
||||
DIST gssdp-1.4.1.tar.xz 2078300 BLAKE2B e83baf5c8f8befe6620bdde4aa184a6a3164fe830fc6e17277cb3dcfacd75fdfeddf26411d714404f09b7b0ca563555466ac677b9ead55b7ca3190b541b35b70 SHA512 ffb1767a9b3f6ac687a774e6b679eac47dd6f75ff6090b9c9593796f36a47bea16e4d7205bcf99d7a187692440f166c38ef48375c890d49e012b2c96deb24878
|
||||
DIST gssdp-1.6.3.tar.xz 108080 BLAKE2B f9deddf2b221eda9c3d7a6e6fa78cfb6388d3f3549caf166ebf7ac41f6edf39b8bc2521838ae5d954c743f844d5e7ba28b50f5a7beb6b2d70241782275c50fe4 SHA512 e5c9851032538cf093ed8c34a71c5d171eafb2edc5d3f3f5f0284005d4b1cca29ffca34b7f7d38b4a68a86c9bd888dd7a5a8e758dbd926bc4b4c995ea0b1110b
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
https://gitlab.gnome.org/GNOME/gssdp/-/issues/12
|
||||
https://gitlab.gnome.org/GNOME/gssdp/-/commit/232a096c072110b7be8d3d74702d8aadd15eefdf
|
||||
|
||||
From: Jens Georg <mail@jensge.org>
|
||||
Date: Fri, 22 Sep 2023 11:39:28 +0200
|
||||
Subject: [PATCH] client: Do not crash if socket receive fails
|
||||
|
||||
message and num_messages could then contain random junk and we free
|
||||
stuff we have no business with
|
||||
|
||||
Fixes #12
|
||||
--- a/libgssdp/gssdp-client.c
|
||||
+++ b/libgssdp/gssdp-client.c
|
||||
@@ -1553,8 +1553,8 @@ socket_source_cb (GSSDPSocketSource *socket_source, GSSDPClient *client)
|
||||
guint16 port;
|
||||
GError *error = NULL;
|
||||
GInputVector vector;
|
||||
- GSocketControlMessage **messages;
|
||||
- gint num_messages;
|
||||
+ GSocketControlMessage **messages = NULL;
|
||||
+ gint num_messages = 0;
|
||||
GSSDPClientPrivate *priv = gssdp_client_get_instance_private (client);
|
||||
gboolean ret = TRUE;
|
||||
|
||||
--
|
||||
GitLab
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit gnome.org meson-multilib vala xdg
|
||||
|
||||
DESCRIPTION="GObject-based API for handling resource discovery and announcement over SSDP"
|
||||
HOMEPAGE="https://wiki.gnome.org/Projects/GUPnP https://gitlab.gnome.org/GNOME/gssdp"
|
||||
|
||||
LICENSE="LGPL-2+"
|
||||
SLOT="0/1.2-0" # <API version>-<soname>
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="gtk-doc +introspection gtk vala"
|
||||
REQUIRED_USE="vala? ( introspection )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.54:2[${MULTILIB_USEDEP}]
|
||||
>=net-libs/libsoup-2.26.1:2.4[${MULTILIB_USEDEP},introspection?]
|
||||
gtk? ( gui-libs/gtk:4 )
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.54:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
gtk-doc? (
|
||||
>=dev-util/gi-docgen-2021.1
|
||||
app-text/docbook-xml-dtd:4.1.2
|
||||
)
|
||||
virtual/pkgconfig
|
||||
vala? (
|
||||
$(vala_depend)
|
||||
net-libs/libsoup:2.4[vala]
|
||||
)
|
||||
"
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-client-crash.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
use vala && vala_setup
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=(
|
||||
# Never use gi-docgen subproject
|
||||
--wrap-mode nofallback
|
||||
|
||||
$(meson_native_use_bool gtk-doc gtk_doc)
|
||||
$(meson_native_use_bool gtk sniffer)
|
||||
$(meson_native_use_bool introspection)
|
||||
$(meson_native_use_bool vala vapi)
|
||||
-Dexamples=false
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
if use gtk-doc ; then
|
||||
mv "${ED}"/usr/share/doc/{gssdp-1.2,${PF}} || die
|
||||
mv "${ED}"/usr/share/doc/${PF}/{reference,html} || die
|
||||
rmdir "${ED}"/usr/share/doc/gssdp-1.2
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user