Hello community,

here is the log from the commit of package python-notify for openSUSE:Factory
checked in at Fri Mar 25 14:24:31 CET 2011.



--------
--- python-notify/python-notify.changes 2010-08-09 00:03:10.000000000 +0200
+++ /mounts/work_src_done/STABLE/python-notify/python-notify.changes    
2011-03-16 08:03:25.000000000 +0100
@@ -1,0 +2,7 @@
+Wed Mar 16 07:01:25 UTC 2011 - cyber...@opensuse.org
+
+- apply notify-python-0.1.1-fix-GTK-symbols.patch from fedora
+  fixes "Missing symbol 'gdk_screen_make_display_name'" 
+  https://bugzilla.redhat.com/show_bug.cgi?id=626852
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


New:
----
  notify-python-0.1.1-fix-GTK-symbols.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-notify.spec ++++++
--- /var/tmp/diff_new_pack.PyQdeq/_old  2011-03-25 14:23:06.000000000 +0100
+++ /var/tmp/diff_new_pack.PyQdeq/_new  2011-03-25 14:23:06.000000000 +0100
@@ -1,7 +1,7 @@
 #
-# spec file for package python-notify (Version 0.1.1)
+# spec file for package python-notify
 #
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -21,12 +21,13 @@
 
 Name:           python-notify
 Version:        0.1.1
-Release:        12
+Release:        16
 Summary:        Python bindings for libnotify
 Group:          Development/Languages/Python
 License:        LGPLv2.1+
 Url:            http://www.galago-project.org/specs/notification
 Source:         
http://www.galago-project.org/files/releases/source/notify-python/notify-python-%{version}.tar.bz2
+Patch0:         notify-python-0.1.1-fix-GTK-symbols.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  fdupes
 %if 0%{?suse_version} <= 1130
@@ -51,6 +52,7 @@
 
 %prep
 %setup -q -n "notify-python-%{version}"
+%patch0 -p1 -b .fix-GTK-symbols
 
 %build
 %if 0%{?suse_version} <= 1130

++++++ notify-python-0.1.1-fix-GTK-symbols.patch ++++++
diff -up notify-python-0.1.1/src/__init__.py.BAD 
notify-python-0.1.1/src/__init__.py
--- notify-python-0.1.1/src/__init__.py.BAD     2010-08-31 09:04:45.353844005 
-0400
+++ notify-python-0.1.1/src/__init__.py 2010-08-31 09:04:49.281844300 -0400
@@ -1 +1,21 @@
+"""
+Fedora's libnotify.so is not linked against GTK2 or GTK3. The idea
+was to support being linked against different parallel-installable
+GTK stacks.
+
+Unfortunately, python needs to jump through some special hoops in order
+to share symbols with extension modules, specifically, pygtk, which does
+link against GTK2.
+
+Without using sys.setdlopenflags(sys.getdlopenflags() | ctypes.RTLD_GLOBAL),
+the result is:
+libnotify-WARNING **: Missing symbol 'gdk_screen_make_display_name'
+
+Thanks to David Malcolm for figuring out the workaround.
+"""
+import ctypes
+import sys
+sys.setdlopenflags(sys.getdlopenflags() | ctypes.RTLD_GLOBAL)
+import gtk
+
 from _pynotify import *

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to