Bug#499135: gst0.10-python hardcodes incorrect RTLD constants for MIPS
Thiemo Seufer
ths at networkno.de
Tue Sep 16 13:23:55 UTC 2008
Package: gst0.10-python
Version: 0.10.12-1
Severity: minor
While debugging a different python problem I noticed that gst0.10-python
hardcodes RTLD constants to the same value for all Linux platforms. For
Linux/MIPS, however, the RTLD_GLOBAL and RTLD_LAZY constants have
different values. The appended patch fixes this.
Note that this patch doesn't change anything in most cases, as the
codepath gets only triggered when python doesn't provide dlopen
support. AFAICS any semi-modern python on Linux supports this, so an
equally valid solution would be to remove the 'Linux' code path
altogether.
Thiemo
Index: gst0.10-python-0.10.12/gst/__init__.py
===================================================================
--- gst0.10-python-0.10.12.orig/gst/__init__.py 2008-08-31 13:51:55.000000000 +0000
+++ gst0.10-python-0.10.12/gst/__init__.py 2008-08-31 14:13:08.000000000 +0000
@@ -155,8 +155,13 @@
import os
osname = os.uname()[0]
if osname == 'Linux' or osname == 'SunOS' or osname == 'FreeBSD':
- RTLD_GLOBAL = 0x100
- RTLD_LAZY = 0x1
+ machinename = os.uname()[4]
+ if machinename == 'mips' or machinename == 'mips64':
+ RTLD_GLOBAL = 0x4
+ RTLD_LAZY = 0x1
+ else:
+ RTLD_GLOBAL = 0x100
+ RTLD_LAZY = 0x1
elif osname == 'Darwin':
RTLD_GLOBAL = 0x8
RTLD_LAZY = 0x1
More information about the Pkg-gstreamer-maintainers
mailing list