Re: Bug#736721: Incorrect dependencies
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
> > that is ABI-compatible with the Python code. For the Debian package, a
> > quick&dirty fix is to replace the find_library() call with
> > 'libcrypto.so.1.0.0', then hardcode libssl1.0.0 in Depends. But that of
> > course means that the package would need a sourceful upload by the next
> > OpenSSL transition.
>
> You're right. The "find_library('crypto')" line itself won't guarantee
> any ABI-compatibility but a "Depends: libssl1.0.0 (>= 1.0.0)" line will.
>
No, because it doesn't guarantee that libssl1.1 is not installed, and
find_library('crypto') may well pick that one instead of the expected
libcrypto.so.1.0.0.
Cheers,
Julien
--
Julien Cristau <julien.cristau@logilab.fr>
Logilab http://www.logilab.fr/
Informatique scientifique & gestion de connaissances
Reply to: