[arch-commits] Commit in rhythmbox/trunk (3 files)

Jan de Groot jgc at archlinux.org
Tue Nov 6 10:19:39 UTC 2012


    Date: Tuesday, November 6, 2012 @ 05:19:39
  Author: jgc
Revision: 170247

upgpkg: rhythmbox 2.98-3

Kill context pane, it causes mixed gstreamer versions. Will enable it again once rhythmbox has been ported to gstreamer 1.0

Added:
  rhythmbox/trunk/Disable-the-context-pane-plugin-when-webkit-isn-t-available.patch
  rhythmbox/trunk/rhythmbox-2.98-xinitthreads.patch
Modified:
  rhythmbox/trunk/PKGBUILD

-------------------------------------------------------------------+
 Disable-the-context-pane-plugin-when-webkit-isn-t-available.patch |   37 ++++
 PKGBUILD                                                          |   15 +
 rhythmbox-2.98-xinitthreads.patch                                 |   76 ++++++++++
 3 files changed, 124 insertions(+), 4 deletions(-)

Added: Disable-the-context-pane-plugin-when-webkit-isn-t-available.patch
===================================================================
--- Disable-the-context-pane-plugin-when-webkit-isn-t-available.patch	                        (rev 0)
+++ Disable-the-context-pane-plugin-when-webkit-isn-t-available.patch	2012-11-06 10:19:39 UTC (rev 170247)
@@ -0,0 +1,37 @@
+From a8f5d8cec87ef1586897e94e49bdf54db64bf97b Mon Sep 17 00:00:00 2001
+From: Kalev Lember <kalevlember at 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
+

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-11-06 06:26:12 UTC (rev 170246)
+++ PKGBUILD	2012-11-06 10:19:39 UTC (rev 170247)
@@ -4,7 +4,7 @@
 
 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 @@
          '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 \

Added: rhythmbox-2.98-xinitthreads.patch
===================================================================
--- rhythmbox-2.98-xinitthreads.patch	                        (rev 0)
+++ rhythmbox-2.98-xinitthreads.patch	2012-11-06 10:19:39 UTC (rev 170247)
@@ -0,0 +1,76 @@
+From 1780aab638aa39704be34fc214de39b4847a87b2 Mon Sep 17 00:00:00 2001
+From: Bastien Nocera <hadess at 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




More information about the arch-commits mailing list