summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python-notify/notify-python-0.1.1-fix-GTK-symbols.patch
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-15 16:06:42 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-15 16:06:42 (GMT)
commited6f98d16de03a1a6511cf7cb12f5dbf0c9220e0 (patch)
tree573158032e117f45e489a894c42617896eb22b3f /abs/core/python_modules/python-notify/notify-python-0.1.1-fix-GTK-symbols.patch
parentfe739ba880e1fa2f54451a1053d59df031e22ee1 (diff)
downloadlinhes_pkgbuild-ed6f98d16de03a1a6511cf7cb12f5dbf0c9220e0.zip
linhes_pkgbuild-ed6f98d16de03a1a6511cf7cb12f5dbf0c9220e0.tar.gz
linhes_pkgbuild-ed6f98d16de03a1a6511cf7cb12f5dbf0c9220e0.tar.bz2
python_modules: updated several modules
python-notify python-pysqlite python_aosd pywebkitgtk
Diffstat (limited to 'abs/core/python_modules/python-notify/notify-python-0.1.1-fix-GTK-symbols.patch')
-rw-r--r--abs/core/python_modules/python-notify/notify-python-0.1.1-fix-GTK-symbols.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-notify/notify-python-0.1.1-fix-GTK-symbols.patch b/abs/core/python_modules/python-notify/notify-python-0.1.1-fix-GTK-symbols.patch
new file mode 100644
index 0000000..f985c01
--- /dev/null
+++ b/abs/core/python_modules/python-notify/notify-python-0.1.1-fix-GTK-symbols.patch
@@ -0,0 +1,25 @@
+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 *