[dbus-python] add patch

Peter Robinson pbrobinson at fedoraproject.org
Thu Apr 25 12:56:47 UTC 2013


commit d0c16c3d8892d27812dd2bd219b066baafd16e3a
Author: Peter Robinson <pbrobinson at gmail.com>
Date:   Thu Apr 25 13:56:34 2013 +0100

    add patch

 dbus-python-pygobject38.patch |   49 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 49 insertions(+), 0 deletions(-)
---
diff --git a/dbus-python-pygobject38.patch b/dbus-python-pygobject38.patch
new file mode 100644
index 0000000..f58ab68
--- /dev/null
+++ b/dbus-python-pygobject38.patch
@@ -0,0 +1,49 @@
+From 423ee853dfbb4ee9ed89a21e1cf2b6a928e2fc4d Mon Sep 17 00:00:00 2001
+From: Simon McVittie <simon.mcvittie at collabora.co.uk>
+Date: Mon, 22 Apr 2013 16:40:51 +0000
+Subject: Use GObject.__class__ instead of GObjectMeta
+
+In pygobject 3.8, GObjectMeta is no longer available via
+gi.repository.GObject. What we actually want is "the metaclass of
+GObject", so, say so.
+---
+diff --git a/dbus/gi_service.py b/dbus/gi_service.py
+index 924442f..2703289 100644
+--- a/dbus/gi_service.py
++++ b/dbus/gi_service.py
+@@ -37,12 +37,12 @@ import dbus.service
+ # `ExportedGObjectType` as its metaclass, which is sufficient to make it work
+ # correctly.
+ 
+-class ExportedGObjectType(GObject.GObjectMeta, dbus.service.InterfaceType):
++class ExportedGObjectType(GObject.GObject.__class__, dbus.service.InterfaceType):
+     """A metaclass which inherits from both GObjectMeta and
+     `dbus.service.InterfaceType`. Used as the metaclass for `ExportedGObject`.
+     """
+     def __init__(cls, name, bases, dct):
+-        GObject.GObjectMeta.__init__(cls, name, bases, dct)
++        GObject.GObject.__class__.__init__(cls, name, bases, dct)
+         dbus.service.InterfaceType.__init__(cls, name, bases, dct)
+ 
+ 
+diff --git a/dbus/gobject_service.py b/dbus/gobject_service.py
+index 1c96546..ef16009 100644
+--- a/dbus/gobject_service.py
++++ b/dbus/gobject_service.py
+@@ -40,12 +40,12 @@ else:
+ 
+ import dbus.service
+ 
+-class ExportedGObjectType(gobject.GObjectMeta, dbus.service.InterfaceType):
++class ExportedGObjectType(gobject.GObject.__class__, dbus.service.InterfaceType):
+     """A metaclass which inherits from both GObjectMeta and
+     `dbus.service.InterfaceType`. Used as the metaclass for `ExportedGObject`.
+     """
+     def __init__(cls, name, bases, dct):
+-        gobject.GObjectMeta.__init__(cls, name, bases, dct)
++        gobject.GObject.__class__.__init__(cls, name, bases, dct)
+         dbus.service.InterfaceType.__init__(cls, name, bases, dct)
+ 
+ class ExportedGObject(gobject.GObject, dbus.service.Object):
+--
+cgit v0.9.0.2-2-gbebe


More information about the scm-commits mailing list