Package: python-mapnik
Version: 0.7.1-1
Severity: grave
Tags: patch
User: debian-m...@lists.debian.org
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/__init__.py", 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/__init__.py b/bindings/python/mapnik/__init__.py
--- a/bindings/python/mapnik/__init__.py
+++ b/bindings/python/mapnik/__init__.py
@@ -42,7 +42,7 @@
 
 from sys import getdlopenflags, setdlopenflags
 try:
-    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

Reply via email to