--- - branch: MAIN date: Sat Jul 23 13:09:15 UTC 2016 files: - new: '1.63' old: '1.62' path: pkgsrc/lang/python27/Makefile pathrev: pkgsrc/lang/python27/Makefile@1.63 type: modified id: 20160723T130915Z.a996a041b57856a5dbab698f5c2d0bb57efd0375 log: | Fixing find_library() on POSIX-like (excluding Darwin) systems. This isn't addressing Python's wrapper for dlopen(3). This possibily addresses mostly NetBSD as other popular OSes have ldconfig. Testing commands: - before applying the patch >>> from ctypes.util import find_library >>> find_library("m") 'libm.so.0' >>> find_library("crypto") 'libcrypto.so.11' >>> find_library("GL") >>> find_library("curl") - after applying the patch >>> from ctypes.util import find_library >>> find_library("m") 'libm.so.0' >>> find_library("crypto") 'libcrypto.so.11' >>> find_library("GL") 'libGL.so.2' >>> find_library("curl") 'libcurl.so.4' This patch doesn't solve the case of custom dirs like $PREFIX/qt5/lib. However it's solving most common cases of using this call. A possible solution is to parse the output "pkg_info -La"... however it's very slow. In other words a cache with libraries might be needed to handle it efficiently. Bump PKGREVISION. module: pkgsrc subject: 'CVS commit: pkgsrc/lang/python27' unixtime: '1469279355' user: kamil