summaryrefslogtreecommitdiff
path: root/extra/rhythmbox
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-11-07 01:04:45 -0800
committerroot <root@rshg054.dnsready.net>2012-11-07 01:04:45 -0800
commita8fff09ba6d0f8b78b43e63541b1254763d4f48e (patch)
treed5ed9796d5aa31b378f4bfed4482b84008e731fa /extra/rhythmbox
parent85e0e667660650d70269432a90401d4288776d9d (diff)
Wed Nov 7 01:04:45 PST 2012
Diffstat (limited to 'extra/rhythmbox')
-rw-r--r--extra/rhythmbox/Disable-the-context-pane-plugin-when-webkit-isn-t-available.patch37
-rw-r--r--extra/rhythmbox/PKGBUILD17
-rw-r--r--extra/rhythmbox/rhythmbox-2.98-xinitthreads.patch76
3 files changed, 125 insertions, 5 deletions
diff --git a/extra/rhythmbox/Disable-the-context-pane-plugin-when-webkit-isn-t-available.patch b/extra/rhythmbox/Disable-the-context-pane-plugin-when-webkit-isn-t-available.patch
new file mode 100644
index 000000000..dc3f3429a
--- /dev/null
+++ b/extra/rhythmbox/Disable-the-context-pane-plugin-when-webkit-isn-t-available.patch
@@ -0,0 +1,37 @@
+From a8f5d8cec87ef1586897e94e49bdf54db64bf97b Mon Sep 17 00:00:00 2001
+From: Kalev Lember <kalevlember@gmail.com>
+Date: Thu, 11 Oct 2012 10:59:16 +0200
+Subject: [PATCH] Disable the context pane plugin when webkit isn't available
+
+---
+ plugins/Makefile.am | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/plugins/Makefile.am b/plugins/Makefile.am
+index e4f6e69..3a9ea03 100644
+--- a/plugins/Makefile.am
++++ b/plugins/Makefile.am
+@@ -14,7 +14,6 @@ SUBDIRS = \
+ if ENABLE_PYTHON
+ SUBDIRS += \
+ artsearch \
+- context \
+ im-status \
+ lyrics \
+ magnatune \
+@@ -24,8 +23,12 @@ SUBDIRS += \
+ sendto \
+ rb
+
++if WITH_WEBKIT
++SUBDIRS += context
+ endif
+
++endif # ENABLE_PYTHON
++
+ if WITH_LIRC
+ SUBDIRS += lirc
+ endif
+--
+1.7.12.1
+
diff --git a/extra/rhythmbox/PKGBUILD b/extra/rhythmbox/PKGBUILD
index 859fc2565..177c70c77 100644
--- a/extra/rhythmbox/PKGBUILD
+++ b/extra/rhythmbox/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 169984 2012-10-30 23:00:26Z heftig $
+# $Id: PKGBUILD 170248 2012-11-06 10:20:15Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
pkgname=rhythmbox
pkgver=2.98
-pkgrel=2
+pkgrel=3
pkgdesc="An iTunes-like music playback and management application"
arch=('i686' 'x86_64')
license=('GPL')
@@ -14,18 +14,25 @@ depends=('dconf' 'desktop-file-utils' 'grilo'
'libdmapsharing' 'libgpod' 'libmtp' 'libnotify' 'libpeas'
'lirc-utils' 'media-player-info' 'python2-gobject' 'python2-mako' 'totem-plparser'
'tdb' 'libdiscid')
-makedepends=('gnome-doc-utils' 'intltool' 'brasero' 'gobject-introspection' 'vala')
+makedepends=('gnome-doc-utils' 'intltool' 'brasero' 'gobject-introspection' 'vala' 'gnome-common' 'gtk-doc')
optdepends=('gstreamer0.10-ugly-plugins: Extra media codecs'
'gstreamer0.10-bad-plugins: Extra media codecs'
'gstreamer0.10-ffmpeg: Extra media codecs'
'brasero: cd burning')
options=('!libtool' '!emptydirs')
install=rhythmbox.install
-source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz)
-sha256sums=('a5c0a18a7c76133d36c7dcbdc37e304eae8272703985b17b540d68603b0c76d5')
+source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz
+ Disable-the-context-pane-plugin-when-webkit-isn-t-available.patch
+ rhythmbox-2.98-xinitthreads.patch)
+sha256sums=('a5c0a18a7c76133d36c7dcbdc37e304eae8272703985b17b540d68603b0c76d5'
+ '6510214e7fe0a18d17d8c599ae065bd48c2e1f82931fe82e3d1cc684a0801cd6'
+ 'cd9af451a411e5a621c385d43f5ddd3664b3d085fc12dc7d5e5cd1f5db9e73b0')
build() {
cd "$pkgname-$pkgver"
+ patch -Np1 -i "${srcdir}/Disable-the-context-pane-plugin-when-webkit-isn-t-available.patch"
+ patch -Np1 -i "${srcdir}/rhythmbox-2.98-xinitthreads.patch"
+ autoreconf -fi
PYTHON=/usr/bin/python2 ./configure --prefix=/usr --sysconfdir=/etc \
--libexecdir=/usr/lib/rhythmbox \
--localstatedir=/var --disable-static \
diff --git a/extra/rhythmbox/rhythmbox-2.98-xinitthreads.patch b/extra/rhythmbox/rhythmbox-2.98-xinitthreads.patch
new file mode 100644
index 000000000..6a6426038
--- /dev/null
+++ b/extra/rhythmbox/rhythmbox-2.98-xinitthreads.patch
@@ -0,0 +1,76 @@
+From 1780aab638aa39704be34fc214de39b4847a87b2 Mon Sep 17 00:00:00 2001
+From: Bastien Nocera <hadess@hadess.net>
+Date: Wed, 17 Oct 2012 19:02:50 +0200
+Subject: [PATCH] shell: Call XInitThreads() on X11 systems
+
+Otherwise bad things can happen with some plugins that expect
+mutexes to work, like the visualiser plugin and Clutter.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=686320
+---
+ configure.ac | 15 +++++++++++++++
+ shell/main.c | 12 ++++++++++++
+ 2 files changed, 27 insertions(+)
+
+diff --git a/configure.ac b/configure.ac
+index 009c838..8a88d72 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -86,10 +86,25 @@ PKG_PROG_PKG_CONFIG
+
+ PKG_CHECK_MODULES(RB_CLIENT, glib-2.0 >= $GLIB_REQS gio-2.0 >= $GLIB_REQS gio-unix-2.0 >= $GLIB_REQS)
+
++dnl Always require libX11 for XInitThreads() on X11 systems
++X11_PKG=""
++gdk_targets=`$PKG_CONFIG --variable targets gdk-3.0`
++for target in $gdk_targets; do
++ case "$target" in
++ x11)
++ X11_PKG=x11
++ break
++ ;;
++ *)
++ ;;
++ esac
++done
++
+ dnl note: gio-unix-2.0 is here for libmediaplayerid
+ PKG_CHECK_MODULES(RHYTHMBOX, \
+ gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQS \
+ gtk+-3.0 >= $GTK_REQS \
++ $X11_PKG \
+ gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQS \
+ glib-2.0 >= $GLIB_REQS \
+ gio-2.0 >= $GLIB_REQS \
+diff --git a/shell/main.c b/shell/main.c
+index 3c0346d..696f3e9 100644
+--- a/shell/main.c
++++ b/shell/main.c
+@@ -34,6 +34,11 @@
+ #include <glib/gi18n.h>
+ #include <gtk/gtk.h>
+
++#ifdef GDK_WINDOWING_X11
++/* X11 headers */
++#include <X11/Xlib.h>
++#endif
++
+ #include <girepository.h>
+
+ #include "rb-shell.h"
+@@ -51,6 +56,13 @@ main (int argc, char **argv)
+ int new_argc;
+ char **new_argv;
+
++#ifdef GDK_WINDOWING_X11
++ if (XInitThreads () == 0) {
++ g_critical ("Initialising threading support failed.");
++ return 1;
++ }
++#endif
++
+ /* disable multidevice so clutter-gtk events work.
+ * this needs to be done before gtk_open, so the visualizer
+ * plugin can't do it.
+--
+1.7.12.1 \ No newline at end of file