tags 595603 confirmed patch tags 595608 confirmed patch thanks Hello Jakub,
On Sun, 5 Sep 2010 13:02:04 +0200, Jakub Wilk wrote: > Package: python-liblas > Version: 1.2.1-1 > Severity: serious > Justification: Policy 3.5 [0] > > liblas cannot be imported in a clean chroot: > > $ python -c 'import liblas' > Traceback (most recent call last): > File "<string>", line 1, in <module> > File "/usr/lib/pymodules/python2.6/liblas/__init__.py", line 1, in <module> > from core import * > File "/usr/lib/pymodules/python2.6/liblas/core.py", line 136, in <module> > las = ctypes.CDLL(lib_name) > File "/usr/lib/python2.6/ctypes/__init__.py", line 353, in __init__ > self._handle = _dlopen(self._name, mode) > OSError: liblas.so: cannot open shared object file: No such file or directory > > [..] > > [0] Well, while the bug might be fixed by adding a dependency on liblas-dev, > there are better ways to fix it. On Sun, 5 Sep 2010 13:12:00 +0200, Jakub Wilk wrote: > Source: python-liblas > Version: 1.2.1-1 > Severity: minor > > liblas/core.py contains the following line: > > free = ctypes.CDLL(find_library('libc.so.6')).free > > This is not how find_library() is supposed to be called (it should be: > "find_library('c')"), and as a consequence find_library() always returns > None here. Thanks for your reports. I prepared a patch that fixes both these bugs (they're both caused by a wrong usage of find_library(), as you already found out), but unfortunately I'm not able to commit it (and consequently to do an upload), even though I'm part of the DebianGIS team: $ LANG=C svn commit svn: Commit failed (details follow): svn: Authorization failed [..] I suspect this happens because the (Unix) group doesn't have write permission. Therefore, I'm attaching the patch to this mail, hoping that frankie reads this and acts accordingly (he's away for a couple of days). Have a nice Sunday, David -- . ''`. Debian developer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://deb.li/dapal `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
From: David Paleino <da...@debian.org> Subject: fix incorrect usage of ctypes' find_library Bug-Debian: http://bugs.debian.org/595603 http://bugs.debian.org/595608 Forwarded: no --- build-tree/libLAS-1.2.1/liblas/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/liblas/core.py +++ b/liblas/core.py @@ -131,8 +131,8 @@ elif os.name == 'posix': lib_name = 'liblas.dylib' free = ctypes.CDLL(find_library('libc')).free else: - lib_name = 'liblas.so' - free = ctypes.CDLL(find_library('libc.so.6')).free + lib_name = find_library('las') + free = ctypes.CDLL(find_library('c')).free las = ctypes.CDLL(lib_name) else: raise LASException('Unsupported OS "%s"' % os.name)
signature.asc
Description: PGP signature