FS#30363 - [python-gnutls] tries to load gnutls-extra but gnutls-extra doesn't exist in any package
Attached to Project:
Community Packages
Opened by Max Pray (synthead) - Tuesday, 19 June 2012, 18:18 GMT
Last edited by Sergej Pupykin (sergej) - Wednesday, 01 August 2012, 16:04 GMT
Opened by Max Pray (synthead) - Tuesday, 19 June 2012, 18:18 GMT
Last edited by Sergej Pupykin (sergej) - Wednesday, 01 August 2012, 16:04 GMT
|
Details
On line 131 in
/usr/lib/python2.7/site-packages/gnutls/library/__init__.py
(part of python-gnutls):
libgnutls_extra = load_library(name='gnutls-extra', version=26) ... but libgnutls-extra.so.26 is not provided by any package in the repos. When running blink (which uses python-gnutls): $ blink Traceback (most recent call last): File "/usr/bin/blink", line 24, in <module> from blink import Blink File "/usr/lib/python2.7/site-packages/blink/__init__.py", line 22, in <module> from gnutls.crypto import X509Certificate, X509PrivateKey File "/usr/lib/python2.7/site-packages/gnutls/crypto.py", line 11, in <module> from gnutls.validators import method_args, one_of File "/usr/lib/python2.7/site-packages/gnutls/validators.py", line 9, in <module> from gnutls.constants import * File "/usr/lib/python2.7/site-packages/gnutls/constants.py", line 38, in <module> from gnutls.library import constants File "/usr/lib/python2.7/site-packages/gnutls/library/__init__.py", line 131, in <module> libgnutls_extra = load_library(name='gnutls-extra', version=26) File "/usr/lib/python2.7/site-packages/gnutls/library/__init__.py", line 64, in load_library raise RuntimeError('cannot find lib%s on this system' % name) RuntimeError: cannot find libgnutls-extra on this system Related packages: gnutls 3.0.20-1 python-gnutls 1.2.2-1 |
This task depends upon
- libgnutls-extra has been removed from GnuTLS. It implemented TLS/IA (see https://lists.gnu.org/archive/html/help-gnutls/2005-12/msg00008.html).
- A few other functions have been removed, but these don't seem to be used by python-gnutls itself (I haven't checked very thoroughly though).
- The latest library version is libgnutls.so.28, but python-gnutls looks for libgnutls.so.26 specifically.
- gcry_control has been removed. According tohelp-gnutls@gnu.org/msg02093.html"> http://www.mail-archive.com/help-gnutls@gnu.org/msg02093.html no alternative needs to be used.
The attached patch is my first attempt to fix these. The patch can be applied directly to the files installed in /usr/lib/python2.7/site-packages/gnutls with patch -p1.