[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#736721: Incorrect dependencies



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 (in attic/crypto.py).

Of course, this is not the best practice, a simplier solution will be
to use existing modules like python-xattr and python-crypto, or
writing a Python extension where you can use C code.

--
Dmitry Shachnev

On Thu, Feb 6, 2014 at 9:00 PM, Clint Adams <clint@softwarefreedom.org> wrote:
> 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
> libcrypto.  Maybe one of the Python folks can tell me how to detect
> that and correlate it with shlibs in an automated fashion, or better
> yet adopt the package.


Reply to: