Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 446016 - dev-python/python-gnutls-1.2.4 does not support >=net-libs/gnutls-3
Summary: dev-python/python-gnutls-1.2.4 does not support >=net-libs/gnutls-3
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard: Pending removal: 2014-05-28
Keywords: PATCH, PMASKED
Depends on:
Blocks: gnutls-3
  Show dependency tree
 
Reported: 2012-12-04 23:50 UTC by Patrick McMunn
Modified: 2014-06-02 09:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
python-gnutls-1.2.4-gnutls-3.patch (python-gnutls-1.2.4-gnutls-3.patch,12.19 KB, patch)
2012-12-04 23:50 UTC, Patrick McMunn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick McMunn 2012-12-04 23:50:25 UTC
Created attachment 331464 [details, diff]
python-gnutls-1.2.4-gnutls-3.patch

python-gnutls-1.2.4 with >=gnutls-3 produces an error like the one below.

Traceback (most recent call last):
  File "/usr/bin/blink", line 24, in <module>
    from blink import Blink
  File "/usr/lib64/python2.7/site-packages/blink/__init__.py", line 22, in <module>
    from gnutls.crypto import X509Certificate, X509PrivateKey
  File "/usr/lib64/python2.7/site-packages/gnutls/crypto.py", line 11, in <module>
    from gnutls.validators import method_args, one_of
  File "/usr/lib64/python2.7/site-packages/gnutls/validators.py", line 9, in <module>
    from gnutls.constants import *
  File "/usr/lib64/python2.7/site-packages/gnutls/constants.py", line 38, in <module>
    from gnutls.library import constants
  File "/usr/lib64/python2.7/site-packages/gnutls/library/__init__.py", line 121, in <module>
    libgnutls_extra = load_library(name='gnutls-extra', version=26)
  File "/usr/lib64/python2.7/site-packages/gnutls/library/__init__.py", line 54, in load_library
    raise RuntimeError('cannot find lib%s on this system' % name)
RuntimeError: cannot find libgnutls-extra on this system

This is acknowledged here ( http://lists.opensips.org/pipermail/users/2012-March/021121.html ) by the developer. However, Arch Linux has a patch which works ( https://bugs.archlinux.org/task/30363 ) to fix the issue. Please update the python-gnutls-1.2.4 ebuild to apply this patch so it will work with >=gnutls-3.
Comment 1 Pacho Ramos gentoo-dev 2014-01-01 19:14:53 UTC
Was a bug opened in upstream report? Looks like they released 1.2.5 later but I see no reference to gnutls-3 :/, are they aware of that patch? Do they prefer any alternative?
Comment 2 Jim Ramsay (lack) (RETIRED) gentoo-dev 2014-01-07 18:53:33 UTC
I think a more appropriate solution is to make python-gnutls force DEPEND="<net-libs/gnutls-3"

The reason is that with the current ~ version of gnutls (3.2.8 installed here), the patch here doesn't get you all the way there any more.  It does get past the original error, but then quickly starts make more assumptions about gnutls-2 that are not true of gnutls-3:

  ...
    import gnutls.crypto
  File "/usr/lib64/python2.7/site-packages/gnutls/crypto.py", line 11, in <module>
    from gnutls.validators import method_args, one_of
  File "/usr/lib64/python2.7/site-packages/gnutls/validators.py", line 9, in <module>
    from gnutls.constants import *
  File "/usr/lib64/python2.7/site-packages/gnutls/constants.py", line 38, in <module>
    from gnutls.library import constants
  File "/usr/lib64/python2.7/site-packages/gnutls/library/__init__.py", line 127, in <module>
    initialize_gcrypt()
  File "/usr/lib64/python2.7/site-packages/gnutls/library/__init__.py", line 113, in initialize_gcrypt
    libgnutls.gcry_check_version('1.2.4')    # GNUTLS_MIN_LIBGCRYPT_VERSION
  File "/usr/lib64/python2.7/ctypes/__init__.py", line 378, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib64/python2.7/ctypes/__init__.py", line 383, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/lib64/libgnutls.so.28: undefined symbol: gcry_check_version

Hopefully either the python-gnutls maintainer will get on gnutls-3 support, or the 'pygnutls' fork at https://gitorious.org/pygnutls will get going on this.  Soon?
Comment 4 Pacho Ramos gentoo-dev 2014-04-06 11:14:29 UTC
(In reply to Pacho Ramos from comment #3)
> Cold Fedora patch help?
> http://pkgs.fedoraproject.org/cgit/python-gnutls.git/tree/track-libgnutls-
> and-opengpg-versions.patch
> 
> It is for fixing:
> https://bugzilla.redhat.com/show_bug.cgi?id=1015332

Any news? This is one of the last blockers for gnutls-3 :/

Thanks
Comment 5 Manuel Rüger (RETIRED) gentoo-dev 2014-04-27 22:43:57 UTC
P.mask'd.

[12:42:51] <mrueg> !herd python
[12:42:52] <willikins> mrueg: (python) chutzpah, dev-zero, djc, floppym, idella4, lordvan, maksbotan, marienz, mgorny, nelchael, patrick, prometheanfire, radhermit, rafaelmartins, sdamashek, sping, ultrabug, xarthisius, yac
[12:43:07] <mrueg> anyone of you willing to review and fix bug #446016 ?
[12:43:09] <willikins> mrueg: https://bugs.gentoo.org/446016 "dev-python/python-gnutls-1.2.4 does not support >=net-libs/gnutls-3"; Gentoo Linux, Library; UNCO; doctorwhoguy:python
[12:45:24] <marienz> no cycles to properly review, sorry
[12:46:01] <mrueg> otherwise maybe pmask it, because nothing else seems to depend on it anymore.
[12:48:47] <mgorny> looks like a big patch with no conditionals
[12:51:05] <mgorny> !rdep python-gnutls
[12:51:06] <willikins> mgorny: No packages have a reverse RDEPEND on dev-python/python-gnutls.
[12:53:08] <mgorny> mrueg: could you p.mask it please? possibly along with old gnutls
Comment 6 Patrick McMunn 2014-04-28 05:30:12 UTC
I didn't find any bug reporting facility on the project home page, so I emailed the developer directly. I'll report back if I get a reply.
Comment 7 Manuel Rüger (RETIRED) gentoo-dev 2014-06-02 09:36:03 UTC
Removed from the tree.