Re: Bug#736721: Incorrect dependencies

2014-03-12 Thread Jonas Borgström
On 2014-02-07 15:33 , Jonas Borgström wrote: > On 2014-02-07 15:08 , Julien Cristau wrote: >> On Fri, Feb 7, 2014 at 15:04:47 +0100, Jonas Borgström wrote: >> >>> On 2014-02-07 12:12 , Jakub Wilk wrote: What attic/crypto.py currently does is: libcrypto = cdll.LoadLibrary(find_librar

Re: Bug#736721: Incorrect dependencies

2014-02-07 Thread Jonas Borgström
On 2014-02-07 15:08 , Julien Cristau wrote: > On Fri, Feb 7, 2014 at 15:04:47 +0100, Jonas Borgström wrote: > >> On 2014-02-07 12:12 , Jakub Wilk wrote: >>> What attic/crypto.py currently does is: >>> >>> libcrypto = cdll.LoadLibrary(find_library('crypto')) >>> >>> But there is no guarantee that

Re: Bug#736721: Incorrect dependencies

2014-02-07 Thread Julien Cristau
On Fri, Feb 7, 2014 at 15:04:47 +0100, Jonas Borgström wrote: > On 2014-02-07 12:12 , Jakub Wilk wrote: > > What attic/crypto.py currently does is: > > > > libcrypto = cdll.LoadLibrary(find_library('crypto')) > > > > But there is no guarantee that find_library('crypto') returns a library > > th

Re: Bug#736721: Incorrect dependencies

2014-02-07 Thread Jonas Borgström
On 2014-02-07 12:12 , Jakub Wilk wrote: > What attic/crypto.py currently does is: > > libcrypto = cdll.LoadLibrary(find_library('crypto')) > > But there is no guarantee that find_library('crypto') returns a library > that is ABI-compatible with the Python code. For the Debian package, a > quick&d

Re: Bug#736721: Incorrect dependencies

2014-02-07 Thread Jakub Wilk
What attic/crypto.py currently does is: libcrypto = cdll.LoadLibrary(find_library('crypto')) But there is no guarantee that find_library('crypto') returns a library that is ABI-compatible with the Python code. For the Debian package, a quick&dirty fix is to replace the find_library() call with

Re: Bug#736721: Incorrect dependencies

2014-02-07 Thread Jonas Borgström
On 2014-02-07 08:37 , Dmitry Shachnev wrote: > Hi Clint, > > See http://docs.python.org/3/library/ctypes.html for description of > how ctypes works. As Python programs are interpreted, the only way to > access external shared libraries from Python code is by dlopen()ing > them. By looking at attic

Re: Bug#736721: Incorrect dependencies

2014-02-06 Thread Dmitry Shachnev
Hi Clint, See http://docs.python.org/3/library/ctypes.html for description of how ctypes works. As Python programs are interpreted, the only way to access external shared libraries from Python code is by dlopen()ing them. By looking at attic code, it only accesses libc (in xattr.py) and libcrypto

Re: Bug#736721: Incorrect dependencies

2014-02-06 Thread Clint Adams
On Sun, Jan 26, 2014 at 01:04:09PM +0100, Jonas Borgström wrote: > Attic uses ctypes to interact with libcrypto and does not use > python3-openssl. So the python3-openssl dependency should be replaced > with a dependency on libssl1.0.0. I assume this means this cdll thing is calling dlopen() on li