diff options
author | Guilherme Amadio <amadio@gentoo.org> | 2020-05-06 10:18:44 +0200 |
---|---|---|
committer | Guilherme Amadio <amadio@gentoo.org> | 2020-05-06 10:25:38 +0200 |
commit | 8aeb1a1a3c517297a4cdb6942f1ff38a61776950 (patch) | |
tree | 11b923f32473b4455c258093f2725ccc6c098c6e /dev-util/perf | |
parent | dev-util/perf: run llvm_pkg_setup only with USE=clang, bug #720376 (diff) | |
download | gentoo-8aeb1a1a3c517297a4cdb6942f1ff38a61776950.tar.gz gentoo-8aeb1a1a3c517297a4cdb6942f1ff38a61776950.tar.bz2 gentoo-8aeb1a1a3c517297a4cdb6942f1ff38a61776950.zip |
dev-util/perf: use python from prefix
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
Diffstat (limited to 'dev-util/perf')
-rw-r--r-- | dev-util/perf/perf-5.6.4.ebuild | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dev-util/perf/perf-5.6.4.ebuild b/dev-util/perf/perf-5.6.4.ebuild index 79a230faed36..3067d7243be6 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; } |