Summary: | app-misc/ca-certificates - enable dev-lang/python-3 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Felix Tiede <info> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | michael.morak |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
http://bugs.debian.org/789753 https://bugs.gentoo.org/show_bug.cgi?id=561586 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Make mozilla-supplied certificate conversion script work with python-3.
Patch ebuild to use a patched mozilla script, depending on system's default python version Update certdata2pem for Python 3 |
Description
Felix Tiede
2015-05-02 06:52:02 UTC
Created attachment 402418 [details, diff]
Make mozilla-supplied certificate conversion script work with python-3.
Unfortunately I don't think the script can be patched to work with python-2 and python-3 without further changes, thus the ebuild needs to figure whether or not this patch needs to be applied.
Created attachment 402420 [details, diff]
Patch ebuild to use a patched mozilla script, depending on system's default python version
Comment on attachment 402420 [details, diff]
Patch ebuild to use a patched mozilla script, depending on system's default python version
we don't want conditional patching, and this isn't how you do detection -- it needs to be at the eclass level otherwise people can switch the default and break things
Comment on attachment 402418 [details, diff]
Make mozilla-supplied certificate conversion script work with python-3.
the raise format is the same between the two
for print, just import the future version to make it work in both
for the encoding, i think the open functions need tweaking
Created attachment 412862 [details, diff] Update certdata2pem for Python 3 A bug report recently submitted to Debian (Debian Bug #789753) addresses this issue. I have attached the patch submitted there, which, according to the Debian bug report has been tested with Python 2.7, 3.3, 3.4 and PyPy 2.4. This should make the certdata2pem.py script run on all relevant python architectures, no conditional patching necessary. (In reply to wothram from comment #5) thanks for the update. now in the tree: http://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e28397b91d9a84ccc36f8fdb3499f747d50e3d9 |