From 5a5117d3bc5f29ad233695c82ef548712491cac5 Mon Sep 17 00:00:00 2001 From: rpointel Date: Mon, 18 Jun 2012 06:03:37 +0000 Subject: [PATCH] Exaile crashes on startup (reported by Giovanni Bechis, thanks). Added this patch permit to work, and reported it upstream: https://bugs.launchpad.net/exaile/+bug/1014484 ok Giovanni Bechis. --- audio/exaile/Makefile | 4 ++-- audio/exaile/patches/patch-xl_main_py | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 audio/exaile/patches/patch-xl_main_py diff --git a/audio/exaile/Makefile b/audio/exaile/Makefile index 99a9e25366d..182fa6bb7c5 100644 --- a/audio/exaile/Makefile +++ b/audio/exaile/Makefile @@ -1,11 +1,11 @@ -# $OpenBSD: Makefile,v 1.20 2011/09/16 08:26:10 espie Exp $ +# $OpenBSD: Makefile,v 1.21 2012/06/18 06:03:37 rpointel Exp $ COMMENT = music manager and player for GTK+ written in Python V = 0.3.2 P = 2 DISTNAME = exaile-${V}.${P} -REVISION = 0 +REVISION = 1 CATEGORIES = audio x11 diff --git a/audio/exaile/patches/patch-xl_main_py b/audio/exaile/patches/patch-xl_main_py new file mode 100644 index 00000000000..750accb13bd --- /dev/null +++ b/audio/exaile/patches/patch-xl_main_py @@ -0,0 +1,21 @@ +$OpenBSD: patch-xl_main_py,v 1.1 2012/06/18 06:03:37 rpointel Exp $ +--- xl/main.py.orig Wed Jun 13 09:54:17 2012 ++++ xl/main.py Wed Jun 13 09:57:41 2012 +@@ -499,7 +499,8 @@ class Exaile(object): + dbus.mainloop.glib.gthreads_init() + if self.options.StartGui: + import gtk + gtk.gdk.threads_init() ++ gtk.gdk.threads_enter() + else: + loop = glib.MainLoop() + context = loop.get_context() +@@ -513,6 +513,8 @@ class Exaile(object): + context.iteration(True) + except: + pass ++ finally: ++ gtk.gdk.threads_leave() + + def get_version(self): + """