Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506546 - sys-apps/portage has direct dependencies on python instead of specific SLOTS
Summary: sys-apps/portage has direct dependencies on python instead of specific SLOTS
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-02 12:21 UTC by Justin Lecher (RETIRED)
Modified: 2022-03-16 02:00 UTC (History)
1 user (show)

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 Justin Lecher (RETIRED) gentoo-dev 2014-04-02 12:21:33 UTC
python_dep_ssl="python3? ( =dev-lang/python-3*[ssl] )
    !pypy2_0? ( !python2? ( !python3? (
        || ( >=dev-lang/python-2.7[ssl] dev-lang/python:2.6[threads,ssl] )
    ) ) )
    pypy2_0? ( !python2? ( !python3? ( virtual/pypy:2.0[bzip2] ) ) )
    python2? ( !python3? ( || ( dev-lang/python:2.7[ssl] dev-lang/python:2.6[ssl,threads] ) ) )"


produces deps pulling latest version of python.

Here on ~arch with default PYTON_TARGETS and portage[python3], python:3.4 gets pulled in although pyhton:3.3 has ssl support enabled.

Could we get this correctly slotted?
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2014-04-02 14:30:15 UTC
Just use PYTHON_TARGETS, no need for the python3 or python2 use flags to be enabled.  It has been working on my system all along without setting either of those.

That python2,3 use flags are a leftover from before the -r1 python eclasses and when portage was still under conversion to work with py3.

Currently the portage ebuild doesn't use the -r1 eclasses but manually replicates the behavior it needs.

mgorny has opened bug 506158 for portage to migrate to the eclasses.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2014-04-02 14:34:30 UTC
Thanks for the explanation.
Comment 3 Arfrever Frehtes Taifersar Arahesis 2014-04-03 10:32:24 UTC
python2 and python3 USE flags are not any leftover. They control shebangs in installed scripts (e.g. /usr/bin/emerge) and they will be needed after potential conversion to mgorny's eclasses. python_targets_* USE flags control installation of symlinks for usage by reverse dependencies of Portage.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-16 02:00:33 UTC
Fixed a long time ago, although a little bit related to bug 702806.