commit:     0449b9f5493299e97f4a7556e21767a16a79abf3
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat May  1 08:06:36 2021 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat May  1 08:06:36 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0449b9f5

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 <AT> 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(-)

diff --git a/dev-util/perf/perf-5.11.ebuild b/dev-util/perf/perf-5.11.ebuild
index 979b7517199..9de12cc7035 100644
--- a/dev-util/perf/perf-5.11.ebuild
+++ b/dev-util/perf/perf-5.11.ebuild
@@ -34,7 +34,7 @@ SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="audit clang crypt debug +demangle +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib"
 # TODO babeltrace
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 BDEPEND="
        ${LINUX_PATCH+dev-util/patchutils}

diff --git a/dev-util/perf/perf-5.12.ebuild b/dev-util/perf/perf-5.12.ebuild
index 9ca795b5dee..795634dc8cd 100644
--- a/dev-util/perf/perf-5.12.ebuild
+++ b/dev-util/perf/perf-5.12.ebuild
@@ -34,7 +34,7 @@ SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="audit babeltrace clang crypt debug +demangle +doc gtk java libpfm lzma 
numa perl python slang systemtap unwind zlib"
 # TODO babeltrace
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 BDEPEND="
        ${LINUX_PATCH+dev-util/patchutils}

Reply via email to