commit: 8aeb1a1a3c517297a4cdb6942f1ff38a61776950
Author: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
AuthorDate: Wed May 6 08:18:44 2020 +0000
Commit: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Wed May 6 08:25:38 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8aeb1a1a
dev-util/perf: use python from prefix
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>
dev-util/perf/perf-5.6.4.ebuild | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/dev-util/perf/perf-5.6.4.ebuild b/dev-util/perf/perf-5.6.4.ebuild
index 79a230faed3..3067d7243be 100644
--- a/dev-util/perf/perf-5.6.4.ebuild
+++ b/dev-util/perf/perf-5.6.4.ebuild
@@ -4,7 +4,7 @@
EAPI=7
PYTHON_COMPAT=( python2_7 python3_{6,7} )
-inherit bash-completion-r1 estack eutils llvm toolchain-funcs python-r1
linux-info
+inherit bash-completion-r1 estack eutils llvm toolchain-funcs prefix python-r1
linux-info
MY_PV="${PV/_/-}"
MY_PV="${MY_PV/-pre/-git}"
@@ -130,6 +130,11 @@ src_prepare() {
# The code likes to compile local assembly files which lack ELF
markings.
find -name '*.S' -exec sed -i '$a.section .note.GNU-stack,"",%progbits'
{} +
+
+ # Fix shebang to use python from prefix
+ if [[ -n "${EPREFIX}" ]]; then
+ hprefixify ${S_K}/scripts/bpf_helpers_doc.py
+ fi
}
puse() { usex $1 "" no; }