From 86cce23279e61972b9d148ba5223f23bceeeafe9 Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Wed, 9 May 2012 08:30:14 +0000 Subject: [PATCH] Properly call gtk.gdk.threads_enter and gtk.gdk.threads_leave to prevent abort() on startup due to gtk trying to unlock a uninitialized mutex. looks good to kurt@ --- audio/sonata/Makefile | 4 ++-- audio/sonata/patches/patch-sonata_py | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 audio/sonata/patches/patch-sonata_py diff --git a/audio/sonata/Makefile b/audio/sonata/Makefile index 124fea5f950..80a11f46725 100644 --- a/audio/sonata/Makefile +++ b/audio/sonata/Makefile @@ -1,10 +1,10 @@ -# $OpenBSD: Makefile,v 1.34 2012/05/05 09:40:43 ajacoutot Exp $ +# $OpenBSD: Makefile,v 1.35 2012/05/09 08:30:14 ajacoutot Exp $ COMMENT= elegant music player for MPD MODPY_EGG_VERSION=1.6.2.1 DISTNAME= sonata-${MODPY_EGG_VERSION} -REVISION = 10 +REVISION = 11 CATEGORIES= audio HOMEPAGE= http://sonata.berlios.de/ diff --git a/audio/sonata/patches/patch-sonata_py b/audio/sonata/patches/patch-sonata_py new file mode 100644 index 00000000000..b1140c6157f --- /dev/null +++ b/audio/sonata/patches/patch-sonata_py @@ -0,0 +1,15 @@ +$OpenBSD: patch-sonata_py,v 1.1 2012/05/09 08:30:14 ajacoutot Exp $ + +http://codingteam.net/project/sonata/bugs/show/2870 + +--- sonata.py.orig Sun May 6 09:42:49 2012 ++++ sonata.py Sun May 6 09:42:43 2012 +@@ -166,6 +166,8 @@ from sonata import main + + app = main.Base(args) + try: ++ gtk.gdk.threads_enter() + app.main() ++ gtk.gdk.threads_leave() + except KeyboardInterrupt: + pass