mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-util/bcc: fix dirname $0 in tools
Closes: https://bugs.gentoo.org/964734 Signed-off-by: Zac Medico <zmedico@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -193,6 +193,7 @@ src_install() {
|
||||
for tool in "${ED}"/usr/share/bcc/tools/*; do
|
||||
[[ -d ${tool} || ! -x ${tool} || ${tool} =~ .*[.](c|txt) ]] && continue
|
||||
grep -qE '^#!/usr/bin/(env |)python' "${tool}" && continue
|
||||
sed -e 's:dirname \$0:dirname "$(realpath "$0")":' -i "${tool}" || die
|
||||
|
||||
target="/usr/sbin/$(bcc_tool_name "${tool}")"
|
||||
[[ -e ${ED}${target} ]] && continue
|
||||
|
||||
@@ -193,6 +193,7 @@ src_install() {
|
||||
for tool in "${ED}"/usr/share/bcc/tools/*; do
|
||||
[[ -d ${tool} || ! -x ${tool} || ${tool} =~ .*[.](c|txt) ]] && continue
|
||||
grep -qE '^#!/usr/bin/(env |)python' "${tool}" && continue
|
||||
sed -e 's:dirname \$0:dirname "$(realpath "$0")":' -i "${tool}" || die
|
||||
|
||||
target="/usr/sbin/$(bcc_tool_name "${tool}")"
|
||||
[[ -e ${ED}${target} ]] && continue
|
||||
|
||||
@@ -193,6 +193,7 @@ src_install() {
|
||||
for tool in "${ED}"/usr/share/bcc/tools/*; do
|
||||
[[ -d ${tool} || ! -x ${tool} || ${tool} =~ .*[.](c|txt) ]] && continue
|
||||
grep -qE '^#!/usr/bin/(env |)python' "${tool}" && continue
|
||||
sed -e 's:dirname \$0:dirname "$(realpath "$0")":' -i "${tool}" || die
|
||||
|
||||
target="/usr/sbin/$(bcc_tool_name "${tool}")"
|
||||
[[ -e ${ED}${target} ]] && continue
|
||||
|
||||
@@ -193,6 +193,7 @@ src_install() {
|
||||
for tool in "${ED}"/usr/share/bcc/tools/*; do
|
||||
[[ -d ${tool} || ! -x ${tool} || ${tool} =~ .*[.](c|txt) ]] && continue
|
||||
grep -qE '^#!/usr/bin/(env |)python' "${tool}" && continue
|
||||
sed -e 's:dirname \$0:dirname "$(realpath "$0")":' -i "${tool}" || die
|
||||
|
||||
target="/usr/sbin/$(bcc_tool_name "${tool}")"
|
||||
[[ -e ${ED}${target} ]] && continue
|
||||
|
||||
Reference in New Issue
Block a user