File: 00-fix_library_search.patch

package info (click to toggle)
python-liblas 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 68 kB
  • ctags: 5
  • sloc: makefile: 15
file content (23 lines) | stat: -rw-r--r-- 749 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: David Paleino <dapal@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 = 'liblas.so.1'
+        free = ctypes.CDLL(find_library('c')).free
     las = ctypes.CDLL(lib_name)
 else:
     raise LASException('Unsupported OS "%s"' % os.name)