Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 656204 - dev-lang/python-exec should ignore negatives for old pythons
Summary: dev-lang/python-exec should ignore negatives for old pythons
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-21 05:22 UTC by Robin Johnson
Modified: 2018-05-27 09:03 UTC (History)
2 users (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 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2018-05-21 05:22:47 UTC
The python-exec.conf text has this comment:
# A specific implementation can be disabled by preceding it with
# a hyphen (-). In this case, the implementation will never be used.

It does not say that the implementation must be current.
On infra machines, in the switchover, I temporarily added "-python3.3", because Python 3.3 was still present on the hosts. However python-exec throws an error:

python-exec: Invalid impl in /etc/python-exec/python-exec.conf: -python3.3

The error should be suppressed (Yes, it does go away as soon as py3.3 is removed, but it's a bad false positive during the upgrade).
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-05-27 08:32:14 UTC
commit b345cca49d06c5a89fd85c98cb19d29aa974cc93
Author: Michał Górny <mgorny@gentoo.org>
Date:   Sun May 27 10:24:26 2018

    Do not report invalid disabled implementations
    
    Only report invalid implementations when they're requested.  Reporting
    obsolete implementation that are disabled makes little sense.
    
    Bug: https://bugs.gentoo.org/656204


I'll make a release soonish.  However, I think I'll also need to take a look at processing multiple preferences for the same impl.
Comment 2 Larry the Git Cow gentoo-dev 2018-05-27 09:03:58 UTC
The bug has been closed via the following commit(s):

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

commit c040fc6dca43c5203e135412c814af7c26ec0040
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2018-05-27 09:00:32 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2018-05-27 09:03:51 +0000

    dev-lang/python-exec: Bump to 2.4.6
    
    Closes: https://bugs.gentoo.org/656204

 dev-lang/python-exec/Manifest                 |   1 +
 dev-lang/python-exec/python-exec-2.4.6.ebuild | 134 ++++++++++++++++++++++++++
 2 files changed, 135 insertions(+)