Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

games-emulation/retroarch: "python" USE Flag Broken #26

Closed
leycec opened this issue Mar 25, 2015 · 1 comment · Fixed by #28
Closed

games-emulation/retroarch: "python" USE Flag Broken #26

leycec opened this issue Mar 25, 2015 · 1 comment · Fixed by #28

Comments

@leycec
Copy link
Collaborator

leycec commented Mar 25, 2015

Emerging retroarch with the python USE flag enabled currently fails with the following fatal error:

>>> Emerging (12 of 12) games-emulation/retroarch-9999::abendbrot
 * No Python implementation selected for the build. Please set
 * the PYTHON_SINGLE_TARGET variable in your make.conf to one
 * of the following values:
 * 
 * python3_3 python3_4

 * ERROR: games-emulation/retroarch-9999::abendbrot failed (setup phase):
 *   No supported Python implementation in PYTHON_SINGLE_TARGET/PYTHON_TARGETS.
 * 
 * Call stack:
 *                 ebuild.sh, line  93:  Called pkg_setup
 *     retroarch-9999.ebuild, line  69:  Called python-single-r1_pkg_setup
 *   python-single-r1.eclass, line 446:  Called python_setup
 *   python-single-r1.eclass, line 436:  Called die
 * The specific snippet of code:
 *          die "No supported Python implementation in PYTHON_SINGLE_TARGET/PYTHON_TARGETS."
 * 
 * If you need support, post the output of `emerge --info '=games-emulation/retroarch-9999::abendbrot'`,
 * the complete build log and the output of `emerge -pqv '=games-emulation/retroarch-9999::abendbrot'`.
 * The complete build log is located at '/var/tmp/portage/games-emulation/retroarch-9999/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/games-emulation/retroarch-9999/temp/die.env'.
 * Working directory: '/usr/lib64/python3.3/site-packages'
 * S: '/var/tmp/portage/games-emulation/retroarch-9999/work/retroarch-9999'

>>> Failed to emerge games-emulation/retroarch-9999, Log file:

>>>  '/var/tmp/portage/games-emulation/retroarch-9999/temp/build.log.gz'

Contrary to the error message, the PYTHON_SINGLE_TARGET variable should never be explicitly set – either in make.conf or package.use. Rather, the ebuild itself should be patched to enable either the python_single_target_python3_3 or python_single_target_python3_4 USE flag (but not both) by default.

Happily, I've fixed this locally and will be submitting a pull request shortly.

leycec added a commit to leycec/abendbrot that referenced this issue Mar 25, 2015
This corrects the "python" USE flag as well installation under multilib systems.
@leycec leycec mentioned this issue Mar 25, 2015
@stefan-gr
Copy link
Owner

Thank you for the patch, will merge your pull request soon.

stefan-gr added a commit that referenced this issue Mar 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants