openbsd-ports/multimedia/gstreamer-0.10/py-gstreamer/patches/patch-gst___init___py
ajacoutot 1ffca5cad1 Major update to py-gstreamer-0.10.17.
Months (years?) of changes, refer to the source for changelog.

tested on a bulk by jasper@
feedback and sparc64+macppc testing from landry@

"commitski" jasper, ok landry@
2009-11-29 09:18:42 +00:00

22 lines
837 B
Plaintext

$OpenBSD: patch-gst___init___py,v 1.2 2009/11/29 09:18:42 ajacoutot Exp $
--- gst/__init__.py.orig Tue Nov 24 10:57:32 2009
+++ gst/__init__.py Tue Nov 24 10:58:07 2009
@@ -156,7 +156,7 @@ class Fraction(Value):
try:
dlsave = sys.getdlopenflags()
- from DLFCN import RTLD_GLOBAL, RTLD_LAZY
+ from dl import RTLD_GLOBAL, RTLD_LAZY
except AttributeError:
# windows doesn't have sys.getdlopenflags()
RTLD_GLOBAL = -1
@@ -166,7 +166,7 @@ except ImportError:
RTLD_LAZY = -1
import os
osname = os.uname()[0]
- if osname == 'Linux' or osname == 'SunOS' or osname == 'FreeBSD':
+ if osname == 'Linux' or osname == 'SunOS' or osname == 'FreeBSD' or osname == 'OpenBSD':
machinename = os.uname()[4]
if machinename == 'mips' or machinename == 'mips64':
RTLD_GLOBAL = 0x4