Package: python-mapnik
Version: 0.7.1-1
Severity: grave
Tags: patch
Usertags: mips
Justification: renders package unusable (on mips & mipsel)

mapnik is not importable on mips{,el}:

$ python -c 'import mapnik'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/mapnik/", line 53, in <module>
    from _mapnik import *
ImportError: invalid mode parameter

I believe that the attached (untested) patch fixes this bug.

BTW, such a breakage could be detected earlier if test suite were run at build time.

Jakub Wilk
diff --git a/bindings/python/mapnik/ b/bindings/python/mapnik/
--- a/bindings/python/mapnik/
+++ b/bindings/python/mapnik/
@@ -42,7 +42,7 @@
 from sys import getdlopenflags, setdlopenflags
-    from ctypes import RTLD_NOW, RTLD_GLOBAL
+    from DLFCN import RTLD_NOW, RTLD_GLOBAL
 except ImportError:
     RTLD_NOW = 2
     RTLD_GLOBAL = 256

Attachment: signature.asc
Description: Digital signature

Pkg-grass-devel mailing list

Reply via email to