From d040dfeee4aeee655599ab9091f1fb756b21c23d Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Mon, 9 Jun 2025 07:00:06 +0000 Subject: Adding metadata --- .../gstreamer_compat__ge_pygobject-3.52.3.patch | 68 ++++++++++++++++++++++ dev-python/gst-python/gst-python-1.22.11-r1.ebuild | 64 ++++++++++++++++++++ dev-python/gst-python/gst-python-1.22.11.ebuild | 63 -------------------- dev-python/gst-python/gst-python-1.22.12-r1.ebuild | 65 +++++++++++++++++++++ dev-python/gst-python/gst-python-1.22.12.ebuild | 63 -------------------- dev-python/gst-python/gst-python-1.24.10-r1.ebuild | 65 +++++++++++++++++++++ dev-python/gst-python/gst-python-1.24.10.ebuild | 63 -------------------- dev-python/gst-python/gst-python-1.24.11-r1.ebuild | 68 ++++++++++++++++++++++ dev-python/gst-python/gst-python-1.24.11.ebuild | 63 -------------------- 9 files changed, 330 insertions(+), 252 deletions(-) create mode 100644 dev-python/gst-python/files/gstreamer_compat__ge_pygobject-3.52.3.patch create mode 100644 dev-python/gst-python/gst-python-1.22.11-r1.ebuild delete mode 100644 dev-python/gst-python/gst-python-1.22.11.ebuild create mode 100644 dev-python/gst-python/gst-python-1.22.12-r1.ebuild delete mode 100644 dev-python/gst-python/gst-python-1.22.12.ebuild create mode 100644 dev-python/gst-python/gst-python-1.24.10-r1.ebuild delete mode 100644 dev-python/gst-python/gst-python-1.24.10.ebuild create mode 100644 dev-python/gst-python/gst-python-1.24.11-r1.ebuild delete mode 100644 dev-python/gst-python/gst-python-1.24.11.ebuild (limited to 'dev-python/gst-python') diff --git a/dev-python/gst-python/files/gstreamer_compat__ge_pygobject-3.52.3.patch b/dev-python/gst-python/files/gstreamer_compat__ge_pygobject-3.52.3.patch new file mode 100644 index 000000000000..8096dd65c67e --- /dev/null +++ b/dev-python/gst-python/files/gstreamer_compat__ge_pygobject-3.52.3.patch @@ -0,0 +1,68 @@ +From 0496a778bb85e0b263ed2fddfcf3dac7961fe4f5 Mon Sep 17 00:00:00 2001 +From: Matteo Bruni +Date: Thu, 20 Mar 2025 10:09:21 +0100 +Subject: [PATCH] gst-python: fix compatibility with PyGObject>=3.52.0 + +PyGObject 3.52.0 moved OverridesProxyModule _introspection_module to __slots__, +causing Segmentation Faults when accessing the field. +Since _introspection_module is used to get Gst.Element but is never actually +used afterward, we fix the issue by removing this part. + +Fixes #4314 + +Part-of: +--- + .../gst-python/plugin/gstpythonplugin.c | 23 +------------------ + 1 file changed, 1 insertion(+), 22 deletions(-) + +diff --git a/subprojects/gst-python/plugin/gstpythonplugin.c b/subprojects/gst-python/plugin/gstpythonplugin.c +index ba2986f265d5..47442bb47e03 100644 +--- a/plugin/gstpythonplugin.c ++++ b/plugin/gstpythonplugin.c +@@ -53,8 +53,6 @@ gstpy_module_symbol (gpointer handle, const char *name, gpointer * symbol) + } + #endif + +-void *_PyGstElement_Type; +- + GST_DEBUG_CATEGORY_STATIC (pyplugindebug); + #define GST_CAT_DEFAULT pyplugindebug + +@@ -237,7 +235,7 @@ static gboolean + plugin_init (GstPlugin * plugin) + { + PyGILState_STATE state = 0; +- PyObject *gi, *require_version, *args, *gst, *dict, *pyplugin; ++ PyObject *gi, *require_version, *args, *gst, *pyplugin; + gboolean we_initialized = FALSE; + gpointer has_python = NULL; + const gchar *override_path; +@@ -333,25 +331,6 @@ plugin_init (GstPlugin * plugin) + } + + if (we_initialized) { +- PyObject *tmp; +- +- dict = PyModule_GetDict (gst); +- if (!dict) { +- g_critical ("gi.repository.Gst is no dict"); +- return FALSE; +- } +- +- tmp = +- PyObject_GetAttr (PyMapping_GetItemString (dict, +- "_introspection_module"), PyUnicode_FromString ("__dict__")); +- +- _PyGstElement_Type = PyMapping_GetItemString (tmp, "Element"); +- +- if (!_PyGstElement_Type) { +- g_critical ("Could not get Gst.Element"); +- return FALSE; +- } +- + pyplugin = pygobject_new (G_OBJECT (plugin)); + if (!pyplugin || PyModule_AddObject (gst, "__plugin__", pyplugin) != 0) { + g_critical ("Couldn't set __plugin__ attribute"); +-- +GitLab + diff --git a/dev-python/gst-python/gst-python-1.22.11-r1.ebuild b/dev-python/gst-python/gst-python-1.22.11-r1.ebuild new file mode 100644 index 000000000000..98d14032b611 --- /dev/null +++ b/dev-python/gst-python/gst-python-1.22.11-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit meson python-r1 xdg-utils + +DESCRIPTION="A Python Interface to GStreamer" +HOMEPAGE="https://gstreamer.freedesktop.org/" +SRC_URI="https://gstreamer.freedesktop.org/src/${PN}/${P}.tar.xz" + +LICENSE="LGPL-2+" +SLOT="1.0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + >=media-libs/gstreamer-${PV}:1.0[introspection] + >=media-libs/gst-plugins-base-${PV}:1.0[introspection] + >=dev-python/pygobject-3.8:3[${PYTHON_USEDEP}] +