Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 679582 - >=www-client/firefox-60.5.2 should depend on dev-lang/python:2.7[ssl] - ImportError: cannot import name HTTPSHandler
Summary: >=www-client/firefox-60.5.2 should depend on dev-lang/python:2.7[ssl] - Impor...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-06 09:13 UTC by tt_1
Modified: 2019-03-08 22:50 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tt_1 2019-03-06 09:13:16 UTC
firefox-esr needs both python2 and python3 as a build time dependency, but as many packages try to get rid of python2 at the moment I probed for the minimum of python:2.7 it actually needs. 

turns out this setup for python:2.7

[ebuild   R   ~] dev-lang/python-2.7.16:2.7::gentoo  USE="readline sqlite (threads) (wide-unicode) xml (-berkdb) -bluetooth -build -doc -examples -gdbm -hardened -ipv6 -libressl -ncurses -ssl -tk -wininst" 0 KiB

is not sufficent, and the configure of firefox fails with: 

 0:01.10   Complete output from command /var/tmp/portage/www...ualenv/bin/python2.7 - setuptools pip wheel:
 0:01.10   Traceback (most recent call last):
 0:01.10   File "<stdin>", line 7, in <module>
 0:01.10   File "/var/tmp/portage/www-client/firefox-60.5.2/work/firefox-60.5.2/third_party/python/virtualenv/virtualenv_support/pip-8.1.2-py2.py3-none-any.whl/pip/__init__.py", line 16, in <module>
 0:01.10   File "/var/tmp/portage/www-client/firefox-60.5.2/work/firefox-60.5.2/third_party/python/virtualenv/virtualenv_support/pip-8.1.2-py2.py3-none-any.whl/pip/vcs/subversion.py", line 9, in <module>
 0:01.10   File "/var/tmp/portage/www-client/firefox-60.5.2/work/firefox-60.5.2/third_party/python/virtualenv/virtualenv_support/pip-8.1.2-py2.py3-none-any.whl/pip/index.py", line 30, in <module>
 0:01.10   File "/var/tmp/portage/www-client/firefox-60.5.2/work/firefox-60.5.2/third_party/python/virtualenv/virtualenv_support/pip-8.1.2-py2.py3-none-any.whl/pip/wheel.py", line 39, in <module>
 0:01.10   File "/var/tmp/portage/www-client/firefox-60.5.2/work/firefox-60.5.2/third_party/python/virtualenv/virtualenv_support/pip-8.1.2-py2.py3-none-any.whl/pip/_vendor/distlib/scripts.py", line 14, in <module>
 0:01.10   File "/var/tmp/portage/www-client/firefox-60.5.2/work/firefox-60.5.2/third_party/python/virtualenv/virtualenv_support/pip-8.1.2-py2.py3-none-any.whl/pip/_vendor/distlib/compat.py", line 31, in <module>
 0:01.10 ImportError: cannot import name HTTPSHandler
 0:01.10 ----------------------------------------

so please add ssl to the python deps for firefox, thanks.
Comment 1 tt_1 2019-03-06 09:20:07 UTC
It's very likely that >=firefox-65.0.2 needs the ssl useflag, but for python:3.x
Comment 2 Larry the Git Cow gentoo-dev 2019-03-08 22:50:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed2ace908b4d5dc23d0f3b873f6d5df867f513d5

commit ed2ace908b4d5dc23d0f3b873f6d5df867f513d5
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2019-03-08 20:33:03 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2019-03-08 22:49:55 +0000

    mozcoreconf-v6.eclass: add still required Python 2.7 dependency
    
    In commit 9d973365a74e58731b62caae87d4ad521c90d947 and
    af9298355290622e1ab2ec5253550e6b8196722a Python 3 support was added
    and PYTHON_COMPAT was moved from eclass to ebuild as requested by QA.
    
    However, Python 2 dependency, which is still required, was lost.
    
    This commit will bring back Python 2 dependency.
    
    Note that we use python-any-r1_pkg_setup in moz_pkgsetup to initialize
    Python 3 via PYTHON_COMPAT but we will switch back to Python 2 manually
    using python_export later.
    
    Closes: https://bugs.gentoo.org/679582
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 eclass/mozcoreconf-v6.eclass | 1 +
 1 file changed, 1 insertion(+)