From da0b44d2f561dce3c4c89da4bef5b01504c3fb5a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 25 Sep 2014 11:36:28 +0200 Subject: [PATCH] spacefm: make this work with glib>=2.41 (close #563). --- srcpkgs/spacefm/patches/glib-2.41.patch | 13 +++++++++++++ srcpkgs/spacefm/template | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/spacefm/patches/glib-2.41.patch diff --git a/srcpkgs/spacefm/patches/glib-2.41.patch b/srcpkgs/spacefm/patches/glib-2.41.patch new file mode 100644 index 00000000000..041c1576247 --- /dev/null +++ b/srcpkgs/spacefm/patches/glib-2.41.patch @@ -0,0 +1,13 @@ +glib-2.41 is stricter checking for (un)locking mutexes, and aborts() +when attempting to unrelease an unlocked mutex. + +--- src/main.c.orig 2014-09-25 11:34:24.970339238 +0200 ++++ src/main.c 2014-09-25 11:34:39.034443191 +0200 +@@ -1442,6 +1442,7 @@ int main ( int argc, char *argv[] ) + #endif + g_thread_init( NULL ); + gdk_threads_init (); ++ gdk_threads_enter (); + + #if HAVE_HAL + /* If the user wants to mount/umount/eject a device */ diff --git a/srcpkgs/spacefm/template b/srcpkgs/spacefm/template index 76822a3c7bc..f19f992cbe1 100644 --- a/srcpkgs/spacefm/template +++ b/srcpkgs/spacefm/template @@ -1,7 +1,7 @@ # Template file for 'spacefm' pkgname=spacefm version=0.9.4 -revision=2 +revision=3 build_style=gnu-configure hostmakedepends="pkg-config intltool" makedepends="gtk+-devel startup-notification-devel libudev-devel"