Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 787242 - dev-util/perf-5.12: No supported Python implementation in PYTHON_TARGETS
Summary: dev-util/perf-5.12: No supported Python implementation in PYTHON_TARGETS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Naohiro Aota
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-30 21:58 UTC by Daniel M. Weeks
Modified: 2021-05-01 08:07 UTC (History)
4 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 Daniel M. Weeks 2021-04-30 21:58:58 UTC
It appears the fix from bug # 765397 may be incomplete (see below). I think the python? condition needs to be dropped from REQUIRED_USE now.

> REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"

>>> Emerging (8 of 21) dev-util/perf-5.12::gentoo
 * linux-5.12.tar.xz BLAKE2B SHA512 size ;-) ...                                                               [ ok ]
 * No Python implementation selected for the build. Please add one
 * of the following values to your PYTHON_TARGETS (in make.conf):
 *
 * python3_7 python3_8 python3_9
 
 * ERROR: dev-util/perf-5.12::gentoo failed (setup phase):
 *   No supported Python implementation in PYTHON_TARGETS.
 *
 * Call stack:
 *          ebuild.sh, line 125:  Called pkg_setup
 *   perf-5.12.ebuild, line  96:  Called python_setup
 *   python-r1.eclass, line 776:  Called _python_validate_useflags
 *   python-r1.eclass, line 296:  Called die
 * The specific snippet of code:
 *      die "No supported Python implementation in PYTHON_TARGETS."
 *
 * If you need support, post the output of `emerge --info '=dev-util/perf-5.12::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-util/perf-5.12::gentoo'`.
 * The complete build log is located at '/tmp/portage/dev-util/perf-5.12/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/dev-util/perf-5.12/temp/die.env'.
 * Working directory: '/tmp/portage/dev-util/perf-5.12/homedir'
 * S: '/tmp/portage/dev-util/perf-5.12/work/linux-5.12/tools/perf'

Reproducible: Always
Comment 1 Ionen Wolkens gentoo-dev 2021-05-01 04:17:04 UTC
(In reply to Daniel M. Weeks from comment #0)
> It appears the fix from bug # 765397 may be incomplete (see below). I think
> the python? condition needs to be dropped from REQUIRED_USE now.
Yes, not common but this would happen if PYTHON_TARGETS is wrong/empty now.

CC'ing commit author.
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2021-05-01 08:02:28 UTC
Yeah, good catch! REQUIRED_USE has to be unconditional. I'll fix it.
Comment 3 Larry the Git Cow gentoo-dev 2021-05-01 08:07:17 UTC
The bug has been closed via the following commit(s):

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

commit 0449b9f5493299e97f4a7556e21767a16a79abf3
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-05-01 08:06:36 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-05-01 08:06:36 +0000

    dev-util/perf: unconditionally apply PYTHON_REQUIRED_USE
    
    Bug #765397 declared unconditional use of python at build time.
    REQUIRED_USE needs to enforce that. Otherwise users could provide
    incompatible python_* USEs and get late build failures.
    
    Reported-by: Daniel M. Weeks
    Bug: https://bugs.gentoo.org/765397
    Closes: https://bugs.gentoo.org/787242
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-util/perf/perf-5.11.ebuild | 2 +-
 dev-util/perf/perf-5.12.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)