diff options
author | Samuli Suominen <drac@gentoo.org> | 2007-11-04 06:40:18 +0000 |
---|---|---|
committer | Samuli Suominen <drac@gentoo.org> | 2007-11-04 06:40:18 +0000 |
commit | 65e65b06cc1709eeddf43e9cc36838959ca10d34 (patch) | |
tree | 25c802743c5d02de4eea73eddfdf68d54816b80d /dev-python | |
parent | stable ppc, bug #197438 (diff) | |
download | gentoo-2-65e65b06cc1709eeddf43e9cc36838959ca10d34.tar.gz gentoo-2-65e65b06cc1709eeddf43e9cc36838959ca10d34.tar.bz2 gentoo-2-65e65b06cc1709eeddf43e9cc36838959ca10d34.zip |
Patch from upstream CVS, fixing Segmentation Fault with media-sound/exaile. gst/gstmodule.c (DL_EXPORT): Remove the atexit(gst_deinit) Atexit handlers are run after python has finalized (see Py_Exit in pythonrun.c), but gst_deinit can potentially call back into python e.g. for python-defined plugins.
(Portage version: 2.1.3.17)
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/gst-python/ChangeLog | 12 | ||||
-rw-r--r-- | dev-python/gst-python/files/digest-gst-python-0.10.8-r1 | 3 | ||||
-rw-r--r-- | dev-python/gst-python/files/gst-python-0.10.8-atexit.patch | 12 | ||||
-rw-r--r-- | dev-python/gst-python/gst-python-0.10.8-r1.ebuild | 55 |
4 files changed, 81 insertions, 1 deletions
diff --git a/dev-python/gst-python/ChangeLog b/dev-python/gst-python/ChangeLog index 4300bcead66d..ae7a67c8382c 100644 --- a/dev-python/gst-python/ChangeLog +++ b/dev-python/gst-python/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for dev-python/gst-python # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/gst-python/ChangeLog,v 1.28 2007/09/03 17:41:40 drac Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/gst-python/ChangeLog,v 1.29 2007/11/04 06:40:17 drac Exp $ + +*gst-python-0.10.8-r1 (04 Nov 2007) + + 04 Nov 2007; Samuli Suominen <drac@gentoo.org> + +files/gst-python-0.10.8-atexit.patch, +gst-python-0.10.8-r1.ebuild: + Patch from upstream CVS, fixing Segmentation Fault with media-sound/exaile. + gst/gstmodule.c (DL_EXPORT): Remove the atexit(gst_deinit) Atexit handlers + are run after python has finalized (see Py_Exit in pythonrun.c), but + gst_deinit can potentially call back into python e.g. for python-defined + plugins. 03 Sep 2007; Samuli Suominen <drac@gentoo.org> gst-python-0.10.8.ebuild: Instead of filtering -z,now, append -z,lazy wrt #166221. diff --git a/dev-python/gst-python/files/digest-gst-python-0.10.8-r1 b/dev-python/gst-python/files/digest-gst-python-0.10.8-r1 new file mode 100644 index 000000000000..eb0925ca4de3 --- /dev/null +++ b/dev-python/gst-python/files/digest-gst-python-0.10.8-r1 @@ -0,0 +1,3 @@ +MD5 e7e8274d41c6302a80c777ab16d367e6 gst-python-0.10.8.tar.gz 602170 +RMD160 97ec07b064921771d4cadd68194ab2a023f7f20c gst-python-0.10.8.tar.gz 602170 +SHA256 3c0404b51eb7ad32f1f03409604f6fe7871ec9ccb4316e307a88c317e62c1552 gst-python-0.10.8.tar.gz 602170 diff --git a/dev-python/gst-python/files/gst-python-0.10.8-atexit.patch b/dev-python/gst-python/files/gst-python-0.10.8-atexit.patch new file mode 100644 index 000000000000..46141f6938aa --- /dev/null +++ b/dev-python/gst-python/files/gst-python-0.10.8-atexit.patch @@ -0,0 +1,12 @@ +diff -ur gst-python-0.10.8.orig/gst/gstmodule.c gst-python-0.10.8/gst/gstmodule.c +--- gst-python-0.10.8.orig/gst/gstmodule.c 2007-07-28 16:38:15.000000000 +0300 ++++ gst-python-0.10.8/gst/gstmodule.c 2007-11-04 08:26:33.000000000 +0200 +@@ -266,8 +266,6 @@ + + g_timeout_add_full (0, 100, python_do_pending_calls, NULL, NULL); + +- atexit(gst_deinit); +- + if (PyErr_Occurred ()) { + Py_FatalError ("can't initialize module gst"); + } diff --git a/dev-python/gst-python/gst-python-0.10.8-r1.ebuild b/dev-python/gst-python/gst-python-0.10.8-r1.ebuild new file mode 100644 index 000000000000..1eb4be0b4402 --- /dev/null +++ b/dev-python/gst-python/gst-python-0.10.8-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/gst-python/gst-python-0.10.8-r1.ebuild,v 1.1 2007/11/04 06:40:17 drac Exp $ + +NEED_PYTHON=2.3 + +inherit eutils flag-o-matic python + +DESCRIPTION="A Python Interface to GStreamer" +HOMEPAGE="http://gstreamer.freedesktop.org" +SRC_URI="http://gstreamer.freedesktop.org/src/${PN}/${P}.tar.gz" +LICENSE="LGPL-2" +SLOT="0.10" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc" + +RDEPEND=">=dev-python/pygtk-2.6.3 + >=dev-libs/glib-2.8 + >=x11-libs/gtk+-2.6 + >=dev-python/pygobject-2.11.2 + >=media-libs/gstreamer-0.10.2 + >=media-libs/gst-plugins-base-0.10.0.2 + dev-libs/libxml2" +DEPEND="${RDEPEND} + dev-util/pkgconfig + doc? ( app-text/xmlto )" + +src_unpack() { + unpack ${A} + cd "${S}" + # Can be removed with next version, from upstream CVS. + epatch "${FILESDIR}"/${P}-atexit.patch +} + +src_compile() { + append-ldflags -Wl,-z,lazy + econf $(use_enable doc docs) + emake || die "emake failed." +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed." + dodoc AUTHORS ChangeLog NEWS README TODO + docinto examples + cp -pPR examples/* "${D}"/usr/share/doc/${PF}/examples + prepalldocs +} + +pkg_postinst() { + python_mod_optimize +} + +pkg_postrm() { + python_mod_cleanup +} |