Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506814 - python-r1.eclass suggests an invalid value for USE_PYTHON
Summary: python-r1.eclass suggests an invalid value for USE_PYTHON
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-05 09:08 UTC by Denis Lisov
Modified: 2014-04-05 20:56 UTC (History)
0 users

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


Attachments
emerge --info (emerge-info.txt,19.25 KB, text/plain)
2014-04-05 09:09 UTC, Denis Lisov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Lisov 2014-04-05 09:08:27 UTC
With the following configuration in make.conf

PYTHON_TARGETS="python3_3 python3_4 python2_7 pypy"
USE_PYTHON="3.3 2.7"

during emerge python-r1 packages spit out the following warning

 * It seems that your USE_PYTHON setting lists different Python
 * implementations than your PYTHON_TARGETS variable. Please consider
 * using the following value instead:
 * 
 *      USE_PYTHON='3.3 2.7 3.4 2.7-pypy-'
 * 
 * Please note that after changing the USE_PYTHON variable, you may need
 * to run 'python-updater' to rebuild affected packages.
 * 
 * For more information on PYTHON_TARGETS and python.eclass
 * compatibility, please see the relevant Wiki article [1].
 * 
 * [1] https://wiki.gentoo.org/wiki/Project:Python/PYTHON_TARGETS

while according to https://wiki.gentoo.org/wiki/Project:Python/Implementations there are no USE_PYTHON equivalents for python3_4 and pypy. The new value suggested is invalid and causes python.eclass packages to fail with "USE_PYTHON variable contains invalid value" error.

Reproducible: Always

Actual Results:  
A misleading warning that suggests invalid modifications appears.

Expected Results:  
The eclass should take into account that these PYTHON_TARGETS have no USE_PYTHON equivalents and skip them when checking USE_PYTHON.
Comment 1 Denis Lisov 2014-04-05 09:09:40 UTC
Created attachment 374284 [details]
emerge --info
Comment 2 Denis Lisov 2014-04-05 09:12:13 UTC
Bugs 506390 and 506346 look like the result of a user following the incorrect suggestion.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-04-05 20:56:14 UTC
+  05 Apr 2014; Michał Górny <mgorny@gentoo.org> python-r1.eclass:
+  Fix improper suggestions to put unsupported implmentations in USE_PYTHON, bug
+  #506814.

I hope I got everything right.