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