[DebianGIS-dev] r2923 - in packages/python-liblas/trunk/debian: . patches

dapal at alioth.debian.org dapal at alioth.debian.org
Sun Sep 12 08:53:11 UTC 2010


Author: dapal
Date: 2010-09-12 08:53:10 +0000 (Sun, 12 Sep 2010)
New Revision: 2923

Added:
   packages/python-liblas/trunk/debian/patches/00-fix_library_search.patch
Modified:
   packages/python-liblas/trunk/debian/changelog
   packages/python-liblas/trunk/debian/patches/series
Log:
debian/patches/00-fix_library_search.patch added, fix code looking
for system libraries. (Closes: #595603, #595608)

Modified: packages/python-liblas/trunk/debian/changelog
===================================================================
--- packages/python-liblas/trunk/debian/changelog	2010-09-12 08:50:53 UTC (rev 2922)
+++ packages/python-liblas/trunk/debian/changelog	2010-09-12 08:53:10 UTC (rev 2923)
@@ -2,8 +2,10 @@
 
   * debian/control:
     - added myself to Uploaders
+  * debian/patches/00-fix_library_search.patch added, fix code looking
+    for system libraries. (Closes: #595603, #595608)
 
- -- David Paleino <dapal at debian.org>  Sun, 05 Sep 2010 19:14:13 +0200
+ -- David Paleino <dapal at debian.org>  Sun, 12 Sep 2010 10:50:54 +0200
 
 python-liblas (1.2.1-1) unstable; urgency=low
 

Added: packages/python-liblas/trunk/debian/patches/00-fix_library_search.patch
===================================================================
--- packages/python-liblas/trunk/debian/patches/00-fix_library_search.patch	                        (rev 0)
+++ packages/python-liblas/trunk/debian/patches/00-fix_library_search.patch	2010-09-12 08:53:10 UTC (rev 2923)
@@ -0,0 +1,23 @@
+From: David Paleino <dapal at 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)

Modified: packages/python-liblas/trunk/debian/patches/series
===================================================================
--- packages/python-liblas/trunk/debian/patches/series	2010-09-12 08:50:53 UTC (rev 2922)
+++ packages/python-liblas/trunk/debian/patches/series	2010-09-12 08:53:10 UTC (rev 2923)
@@ -1 +1 @@
-# no patches currently
+00-fix_library_search.patch




More information about the Pkg-grass-devel mailing list