diff options
author | wiz <wiz@pkgsrc.org> | 2015-02-18 08:50:44 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2015-02-18 08:50:44 +0000 |
commit | 8593f990e5742f51b043bb5a5f96966d71babcb0 (patch) | |
tree | 842c2f767797bb4df57d43328ab0dc776810b0c6 | |
parent | 2281a94487d07a154dc48afa10f714701f08d232 (diff) | |
download | pkgsrc-8593f990e5742f51b043bb5a5f96966d71babcb0.tar.gz |
Fix core dump during startup:
unexpected error from c library during 'pthread_mutex_unlock': operation not permitted
based on patch from FreeBSD ports via Stephen Black in PR 49671.
Fix some pkglint while here.
Bump PKGREVISION.
-rw-r--r-- | emulators/snes9x-gtk/Makefile | 6 | ||||
-rw-r--r-- | emulators/snes9x-gtk/distinfo | 3 | ||||
-rw-r--r-- | emulators/snes9x-gtk/patches/patch-src_gtk__s9x.cpp | 25 |
3 files changed, 30 insertions, 4 deletions
diff --git a/emulators/snes9x-gtk/Makefile b/emulators/snes9x-gtk/Makefile index f51bc825b99..250fc88832d 100644 --- a/emulators/snes9x-gtk/Makefile +++ b/emulators/snes9x-gtk/Makefile @@ -1,9 +1,8 @@ -# $NetBSD: Makefile,v 1.41 2014/06/09 14:18:07 ryoon Exp $ -# +# $NetBSD: Makefile,v 1.42 2015/02/18 08:50:44 wiz Exp $ DISTNAME= snes9x-1.53-src PKGNAME= snes9x-gtk-1.53.81 -PKGREVISION= 22 +PKGREVISION= 23 CATEGORIES= emulators MASTER_SITES= http://snes9x-gtk.googlecode.com/files/ EXTRACT_SUFX= .tar.bz2 @@ -30,6 +29,7 @@ BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm .include "../../devel/SDL/buildlink3.mk" .include "../../devel/libglade/buildlink3.mk" .include "../../graphics/gtkglext/buildlink3.mk" +.include "../../graphics/hicolor-icon-theme/buildlink3.mk" .include "../../sysutils/desktop-file-utils/desktopdb.mk" BUILDLINK_API_DEPENDS.gtk2+= gtk2+>=2.10.0 .include "../../x11/gtk2/buildlink3.mk" diff --git a/emulators/snes9x-gtk/distinfo b/emulators/snes9x-gtk/distinfo index 92c907ccfe9..2498017cc79 100644 --- a/emulators/snes9x-gtk/distinfo +++ b/emulators/snes9x-gtk/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.7 2011/05/02 13:39:40 wiz Exp $ +$NetBSD: distinfo,v 1.8 2015/02/18 08:50:44 wiz Exp $ SHA1 (snes9x-1.53-src.tar.bz2) = 57be6480369f66b9aaaeb722789ce114f58ed1e2 RMD160 (snes9x-1.53-src.tar.bz2) = b3f7ba73caee5373951ec1e1decef1ab6c7207f2 Size (snes9x-1.53-src.tar.bz2) = 1838746 bytes SHA1 (patch-aa) = bb32e36bd1d0c82dc4c68c3fb280f7474d1cf493 SHA1 (patch-configure) = 3c6491a83a124be05bb0ded5af70e4d92053316d +SHA1 (patch-src_gtk__s9x.cpp) = b440b1884a1d81a1e5cc557f2c5bcf56237b8222 diff --git a/emulators/snes9x-gtk/patches/patch-src_gtk__s9x.cpp b/emulators/snes9x-gtk/patches/patch-src_gtk__s9x.cpp new file mode 100644 index 00000000000..081459a9827 --- /dev/null +++ b/emulators/snes9x-gtk/patches/patch-src_gtk__s9x.cpp @@ -0,0 +1,25 @@ +$NetBSD: patch-src_gtk__s9x.cpp,v 1.1 2015/02/18 08:50:44 wiz Exp $ + +Fix core dump during startup: +unexpected error from c library during 'pthread_mutex_unlock': operation not permitted +based on patch from FreeBSD ports via Stephen Black in PR 49671. + +--- src/gtk_s9x.cpp.orig 2011-04-24 13:38:10.000000000 +0000 ++++ src/gtk_s9x.cpp +@@ -44,6 +44,7 @@ main (int argc, char *argv[]) + + g_thread_init (NULL); + gdk_threads_init (); ++ gdk_threads_enter(); + + gtk_init (&argc, &argv); + +@@ -127,6 +128,8 @@ main (int argc, char *argv[]) + + gtk_main (); + ++ gdk_threads_leave(); ++ + return 0; + } + |