[arch-commits] Commit in gconf-sharp/repos (4 files)

Felix Yan felixonmars at archlinux.org
Fri Nov 9 23:16:16 UTC 2018


    Date: Friday, November 9, 2018 @ 23:16:13
  Author: felixonmars
Revision: 338761

archrelease: copy trunk to staging-x86_64

Added:
  gconf-sharp/repos/staging-x86_64/
  gconf-sharp/repos/staging-x86_64/02_fix_pkg-config_paths.patch
    (from rev 338760, gconf-sharp/trunk/02_fix_pkg-config_paths.patch)
  gconf-sharp/repos/staging-x86_64/04_initialize_dbus_glib_threading.patch
    (from rev 338760, gconf-sharp/trunk/04_initialize_dbus_glib_threading.patch)
  gconf-sharp/repos/staging-x86_64/PKGBUILD
    (from rev 338760, gconf-sharp/trunk/PKGBUILD)

-----------------------------------------+
 02_fix_pkg-config_paths.patch           |   49 ++++++++++++++++++++++++++++
 04_initialize_dbus_glib_threading.patch |   51 ++++++++++++++++++++++++++++++
 PKGBUILD                                |   34 ++++++++++++++++++++
 3 files changed, 134 insertions(+)

Copied: gconf-sharp/repos/staging-x86_64/02_fix_pkg-config_paths.patch (from rev 338760, gconf-sharp/trunk/02_fix_pkg-config_paths.patch)
===================================================================
--- staging-x86_64/02_fix_pkg-config_paths.patch	                        (rev 0)
+++ staging-x86_64/02_fix_pkg-config_paths.patch	2018-11-09 23:16:13 UTC (rev 338761)
@@ -0,0 +1,49 @@
+## 02_fix_pkg-config_paths.dpatch by Mirco Bauer <meebey at debian.org>
+##
+## Modified by Archlinux: removed libdir change
+
+diff -urNad gnome-sharp-2.24.1~/art/art-sharp-2.0.pc.in gnome-sharp-2.24.1/art/art-sharp-2.0.pc.in
+--- gnome-sharp-2.24.1~/art/art-sharp-2.0.pc.in	2009-03-21 19:02:54.000000000 +0100
++++ gnome-sharp-2.24.1/art/art-sharp-2.0.pc.in	2009-03-21 19:03:32.000000000 +0100
+@@ -1,4 +1,4 @@
+-prefix=${pcfiledir}/../..
++prefix=@prefix@
+ exec_prefix=${prefix}
+ libdir=${exec_prefix}/lib
+ gapidir=${prefix}/share/gapi-2.0
+diff -urNad gnome-sharp-2.24.1~/gconf/GConf/gconf-sharp-2.0.pc.in gnome-sharp-2.24.1/gconf/GConf/gconf-sharp-2.0.pc.in
+--- gnome-sharp-2.24.1~/gconf/GConf/gconf-sharp-2.0.pc.in	2009-03-21 19:02:54.000000000 +0100
++++ gnome-sharp-2.24.1/gconf/GConf/gconf-sharp-2.0.pc.in	2009-03-21 19:03:26.000000000 +0100
+@@ -1,4 +1,4 @@
+-prefix=${pcfiledir}/../..
++prefix=@prefix@
+ exec_prefix=${prefix}
+ libdir=${exec_prefix}/lib
+ 
+diff -urNad gnome-sharp-2.24.1~/gconf/GConf.PropertyEditors/gconf-sharp-peditors-2.0.pc.in gnome-sharp-2.24.1/gconf/GConf.PropertyEditors/gconf-sharp-peditors-2.0.pc.in
+--- gnome-sharp-2.24.1~/gconf/GConf.PropertyEditors/gconf-sharp-peditors-2.0.pc.in	2009-03-21 19:02:54.000000000 +0100
++++ gnome-sharp-2.24.1/gconf/GConf.PropertyEditors/gconf-sharp-peditors-2.0.pc.in	2009-03-21 19:03:20.000000000 +0100
+@@ -1,4 +1,4 @@
+-prefix=${pcfiledir}/../..
++prefix=@prefix@
+ exec_prefix=${prefix}
+ libdir=${exec_prefix}/lib
+ 
+diff -urNad gnome-sharp-2.24.1~/gnome/gnome-sharp-2.0.pc.in gnome-sharp-2.24.1/gnome/gnome-sharp-2.0.pc.in
+--- gnome-sharp-2.24.1~/gnome/gnome-sharp-2.0.pc.in	2009-03-21 19:02:54.000000000 +0100
++++ gnome-sharp-2.24.1/gnome/gnome-sharp-2.0.pc.in	2009-03-21 19:03:07.000000000 +0100
+@@ -1,4 +1,4 @@
+-prefix=${pcfiledir}/../..
++prefix=@prefix@
+ exec_prefix=${prefix}
+ libdir=${exec_prefix}/lib
+ gapidir=${prefix}/share/gapi-2.0
+diff -urNad gnome-sharp-2.24.1~/gnomevfs/gnome-vfs-sharp-2.0.pc.in gnome-sharp-2.24.1/gnomevfs/gnome-vfs-sharp-2.0.pc.in
+--- gnome-sharp-2.24.1~/gnomevfs/gnome-vfs-sharp-2.0.pc.in	2009-03-21 19:02:54.000000000 +0100
++++ gnome-sharp-2.24.1/gnomevfs/gnome-vfs-sharp-2.0.pc.in	2009-03-21 19:03:12.000000000 +0100
+@@ -1,4 +1,4 @@
+-prefix=${pcfiledir}/../..
++prefix=@prefix@
+ exec_prefix=${prefix}
+ libdir=${exec_prefix}/lib
+ gapidir=${prefix}/share/gapi-2.0

Copied: gconf-sharp/repos/staging-x86_64/04_initialize_dbus_glib_threading.patch (from rev 338760, gconf-sharp/trunk/04_initialize_dbus_glib_threading.patch)
===================================================================
--- staging-x86_64/04_initialize_dbus_glib_threading.patch	                        (rev 0)
+++ staging-x86_64/04_initialize_dbus_glib_threading.patch	2018-11-09 23:16:13 UTC (rev 338761)
@@ -0,0 +1,51 @@
+From e9d06b56a54dcd399d1d3eaaf62bdacb7e07084d Mon Sep 17 00:00:00 2001
+From: Mirco Bauer <meebey at meebey.net>
+Date: Sat, 2 Mar 2013 13:44:46 +0100
+Subject: [PATCH] Explicitly initialize D-Bus GLib threading
+
+When gconf was switched from orbit to dbus it was no longer thread-safe by
+default. This behavior can only get back by explicitly initializing dbus-glib's
+threads. This issue affects multi-threaded GConf# users like Banshee leading
+them to SEGVs.
+
+For more details see:
+https://bugzilla.gnome.org/show_bug.cgi?id=683830
+---
+ gconf/GConf/Client.cs                 |   11 +++++++++++
+ gconf/GConf/gconf-sharp.dll.config.in |    1 +
+ 2 files changed, 12 insertions(+)
+
+diff --git a/gconf/GConf/Client.cs b/gconf/GConf/Client.cs
+index b8cc881..64efc9f 100644
+--- a/gconf/GConf/Client.cs
++++ b/gconf/GConf/Client.cs
+@@ -31,6 +31,17 @@ namespace GConf
+ 		[DllImport("gconf-2")]
+ 		static extern IntPtr gconf_client_get_default ();
+ 
++		[DllImport("dbus-glib-1")]
++		static extern void dbus_g_thread_init ();
++
++		static Client ()
++		{
++			// HACK: we have to initialize dbus' threading else GConf with its
++			// dbus backend will not be thread safe and SEGVs in our face, see:
++			// https://bugzilla.gnome.org/show_bug.cgi?id=683830
++			dbus_g_thread_init();
++		}
++
+ 		public Client ()
+ 		{
+ 			Initialize ();
+diff --git a/gconf/GConf/gconf-sharp.dll.config.in b/gconf/GConf/gconf-sharp.dll.config.in
+index 9fb7d15..f20ddae 100644
+--- a/gconf/GConf/gconf-sharp.dll.config.in
++++ b/gconf/GConf/gconf-sharp.dll.config.in
+@@ -1,3 +1,4 @@
+ <configuration>
+   <dllmap dll="gconf-2" target="libgconf-2 at LIB_PREFIX@.4 at LIB_SUFFIX@"/>
++  <dllmap dll="dbus-glib-1" target="libdbus-glib-1 at LIB_PREFIX@.2 at LIB_SUFFIX@"/>
+ </configuration>
+-- 
+1.7.10.4
+

Copied: gconf-sharp/repos/staging-x86_64/PKGBUILD (from rev 338760, gconf-sharp/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2018-11-09 23:16:13 UTC (rev 338761)
@@ -0,0 +1,34 @@
+# Maintainer: tobias <tobias at archlinux.org>
+
+pkgname=('gconf-sharp')
+pkgver=2.24.2
+pkgrel=6
+arch=(x86_64)
+license=(LGPL)
+url="http://gtk-sharp.sourceforge.net"
+pkgdesc="Mono bindings for GConf"
+depends=('gtk-sharp-2' 'gconf')
+source=(https://download.gnome.org/sources/gnome-sharp/2.24/gnome-sharp-${pkgver}.tar.bz2
+        02_fix_pkg-config_paths.patch
+        04_initialize_dbus_glib_threading.patch)
+md5sums=('3b38f53960c736d4afb8f04204efe98b'
+         'a8c1bf57a384f5fc20a5890f9f1cef5a'
+         '90cd7ea88aaa3011522376153433d115')
+
+prepare() {
+  cd gnome-sharp-${pkgver}
+  patch -Np1 -i ../04_initialize_dbus_glib_threading.patch
+  patch -Np1 -i ../02_fix_pkg-config_paths.patch
+}
+
+build() {
+  cd gnome-sharp-${pkgver}
+  ./configure --prefix=/usr --sysconfdir=/etc
+  make
+}
+
+package() {
+  cd gnome-sharp-${pkgver}
+  make -C gconf/GConf install DESTDIR="${pkgdir}"
+  make -C gconf/tools install DESTDIR="${pkgdir}"
+}



More information about the arch-commits mailing list