Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 450936 - Revision 1.12 of python-single-r1.eclass breaks net-misc/youtube-dl
Summary: Revision 1.12 of python-single-r1.eclass breaks net-misc/youtube-dl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-08 19:37 UTC by Siim Ainsaar
Modified: 2013-01-08 20:18 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 Siim Ainsaar 2013-01-08 19:37:44 UTC
Since revision 1.12, python-single-r1.eclass has a broken python-single-r1_pkg_setup() that always errs. The revision is supposed to fix bug 447808. See the diff at http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/python-single-r1.eclass?r1=1.11&r2=1.12 . I guess the function needs a "return" somewhere.

For example, net-misc/youtube-dl fails with the following output, whether I set the mentioned variable in make.conf (previously it was not needed) or not.

 * No Python implementation selected for the build. Please set
 * the PYTHON_SINGLE_TARGET variable in your make.conf to one
 * of the following values:
 *
 * python2_5 python2_6 python2_7
 
 * ERROR: net-misc/youtube-dl-2013.01.06 failed (setup phase):
 *   No supported Python implementation in PYTHON_SINGLE_TARGET.
 *
 * Call stack:
 *                 ebuild.sh, line  93:  Called pkg_setup
 *                 ebuild.sh, line 327:  Called python-single-r1_pkg_setup
 *   python-single-r1.eclass, line 207:  Called die
 * The specific snippet of code:
 *      die "No supported Python implementation in PYTHON_SINGLE_TARGET."
 *
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-01-08 20:09:38 UTC
Yes, you are correct, I'm sorry. I was committing this in a hurry and forgot to test the 'working case'. I'll fix this in 10 minutes, after testing thoroughly this time.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-01-08 20:18:51 UTC
Now it should work fine.