commit:     1fc204c353e4abe8bb90aa5d59790e3af4586bbf
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 24 08:06:17 2021 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat Apr 24 08:07:42 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fc204c3

dev-util/perf: unconditionally require build-time python

libbpf generates it's API headers using python script.
As ebuild enabled libbpf inconditionally we need python
at build time unconditionally as well.

Reported-by: Agostino Sarubbo
Closes: https://bugs.gentoo.org/765397
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 | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-5.11.ebuild b/dev-util/perf/perf-5.11.ebuild
index 5bcbb7413e9..92f4c1ae43f 100644
--- a/dev-util/perf/perf-5.11.ebuild
+++ b/dev-util/perf/perf-5.11.ebuild
@@ -46,7 +46,9 @@ BDEPEND="
                app-text/sgml-common
                app-text/xmlto
                sys-process/time
-       )"
+       )
+       ${PYTHON_DEPS}
+"
 
 RDEPEND="audit? ( sys-process/audit )
        crypt? ( dev-libs/openssl:0= )
@@ -88,6 +90,9 @@ pkg_pretend() {
 
 pkg_setup() {
        use clang && LLVM_MAX_SLOT=9 llvm_pkg_setup
+       # We enable python unconditionally as libbpf always generates
+       # API headers using python script
+       python_setup
 }
 
 src_unpack() {

Reply via email to