Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 955376 - www-servers/uwsgi should set ${PYTHON_REQUIRED_USE} unconditionally
Summary: www-servers/uwsgi should set ${PYTHON_REQUIRED_USE} unconditionally
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ultrabug
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-04 06:20 UTC by Anna Vyalkova
Modified: 2025-05-04 13:50 UTC (History)
0 users

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 Anna Vyalkova 2025-05-04 06:20:40 UTC
Since the ebuild calls ${EPYTHON} unconditionally, the following error occurs when no PYTHON_TARGETS are enabled:

 * No Python implementation selected for the build. Please add one
 * of the following values to your PYTHON_TARGETS (in make.conf):
 *
 * python3_10 python3_11 python3_12 python3_13

 * ERROR: www-servers/uwsgi-2.0.27::gentoo failed (setup phase):
 *   No supported Python implementation in PYTHON_TARGETS.
 *
 * Call stack:
 *             ebuild.sh, line 136:  Called pkg_setup
 *   uwsgi-2.0.27.ebuild, line 150:  Called python_setup
 *      python-r1.eclass, line 714:  Called _python_validate_useflags
 *      python-r1.eclass, line 268:  Called die
 * The specific snippet of code:
 *      die "No supported Python implementation in PYTHON_TARGETS."

Setting ${PYTHON_REQUIRED_USE} unconditionally would catch this at calculating dependencies.
Comment 1 Larry the Git Cow gentoo-dev 2025-05-04 13:50:40 UTC
The bug has been closed via the following commit(s):

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

commit 9e625ce2cdd393bb4eea7ee76717b40db2cb27c1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-05-04 13:49:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-05-04 13:49:56 +0000

    www-servers/uwsgi: fix Python deps
    
    We always need Python at build-time.
    
    Closes: https://bugs.gentoo.org/955376
    Signed-off-by: Sam James <sam@gentoo.org>

 www-servers/uwsgi/uwsgi-2.0.23.ebuild | 6 +++++-
 www-servers/uwsgi/uwsgi-2.0.27.ebuild | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)