Some versions of app-misc/ca-certificates convert the certificates from mozilla certificate store to PEM format. The mozilla-supplied script for this task requires python-2. app-misc/ca-certificates is the last package to require dev-lang/python-2 on some of my systems, hence I created a patch to make it work with dev-lang/python-3. A patch for script and ebuild, which works for me with current dev-lang/python-3 on x86 and amd64 will follow. Reproducible: Always
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