r17240 - in /packages/unstable/gobject-introspection/debian: changelog patches/02_init-threads.patch
slomo at users.alioth.debian.org
slomo at users.alioth.debian.org
Wed Oct 8 09:15:38 UTC 2008
Author: slomo
Date: Wed Oct 8 09:15:38 2008
New Revision: 17240
URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=17240
Log:
* debian/patches/02_init-threads.patch:
+ Patch from upstream SVN to initialize threads in the Python
package to make some libraries happy.
Added:
packages/unstable/gobject-introspection/debian/patches/02_init-threads.patch
Modified:
packages/unstable/gobject-introspection/debian/changelog
Modified: packages/unstable/gobject-introspection/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/gobject-introspection/debian/changelog?rev=17240&op=diff
==============================================================================
--- packages/unstable/gobject-introspection/debian/changelog (original)
+++ packages/unstable/gobject-introspection/debian/changelog Wed Oct 8 09:15:38 2008
@@ -1,3 +1,11 @@
+gobject-introspection (0.5.0-2) unstable; urgency=low
+
+ * debian/patches/02_init-threads.patch:
+ + Patch from upstream SVN to initialize threads in the Python
+ package to make some libraries happy.
+
+ -- Sebastian Dröge <slomo at debian.org> Wed, 08 Oct 2008 11:15:12 +0200
+
gobject-introspection (0.5.0-1) unstable; urgency=low
* Initial version (Closes: #497451).
Added: packages/unstable/gobject-introspection/debian/patches/02_init-threads.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/gobject-introspection/debian/patches/02_init-threads.patch?rev=17240&op=file
==============================================================================
--- packages/unstable/gobject-introspection/debian/patches/02_init-threads.patch (added)
+++ packages/unstable/gobject-introspection/debian/patches/02_init-threads.patch Wed Oct 8 09:15:38 2008
@@ -1,0 +1,19 @@
+--- trunk/giscanner/cgobject.py 2008/08/27 13:33:21 503
++++ trunk/giscanner/cgobject.py 2008/09/07 22:10:37 583
+@@ -134,6 +134,15 @@
+ _gobj = ctypes.CDLL(_library_path, ctypes.RTLD_GLOBAL)
+ _gobj.g_type_init()
+
++if os.name == 'nt':
++ _threads_library_path = find_library('libgthread-2.0-0')
++else:
++ _threads_library_path = find_library('gthread-2.0')
++if not _threads_library_path:
++ raise ImportError("Could not find gthread-2.0 library")
++_gthreads = ctypes.CDLL(_threads_library_path, ctypes.RTLD_GLOBAL)
++_gthreads.g_thread_init.argtypes = [ctypes.c_void_p]
++_gthreads.g_thread_init(None)
+
+ # Functions
+
+
More information about the pkg-gnome-commits
mailing list