1 |
commit: 886edf0d01a975b3e4da8c39f999c999242f042c |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 30 01:06:19 2018 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 30 01:10:31 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=886edf0d |
7 |
|
8 |
ebuild-helpers: fix PORTAGE_OVERRIDE_EPREFIX usage |
9 |
|
10 |
In case PORTAGE_OVERRIDE_EPREFIX is modified in the environment, |
11 |
the actual ebuild-helpers PATH will not match PORTAGE_OVERRIDE_EPREFIX. |
12 |
Use the same ebuild-helpers pattern as the portageq wrapper script |
13 |
since daeb75b345c4433218ab9e7a5319e8914092f048. |
14 |
|
15 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
16 |
|
17 |
bin/ebuild-helpers/bsd/sed | 2 +- |
18 |
bin/ebuild-helpers/unprivileged/chown | 2 +- |
19 |
bin/ebuild-helpers/xattr/install | 2 +- |
20 |
3 files changed, 3 insertions(+), 3 deletions(-) |
21 |
|
22 |
diff --git a/bin/ebuild-helpers/bsd/sed b/bin/ebuild-helpers/bsd/sed |
23 |
index 9a7f2d4bb..2c252bd01 100755 |
24 |
--- a/bin/ebuild-helpers/bsd/sed |
25 |
+++ b/bin/ebuild-helpers/bsd/sed |
26 |
@@ -15,7 +15,7 @@ else |
27 |
|
28 |
for path in $PATH; do |
29 |
if [[ -x ${path}/${scriptname} ]]; then |
30 |
- [[ ${path} == ${PORTAGE_OVERRIDE_EPREFIX}/usr/lib*/portage/* ]] && continue |
31 |
+ [[ ${path} == */portage/*/ebuild-helpers* ]] && continue |
32 |
[[ ${path} == */._portage_reinstall_.* ]] && continue |
33 |
[[ ${path}/${scriptname} -ef ${scriptpath} ]] && continue |
34 |
exec "${path}/${scriptname}" "$@" |
35 |
|
36 |
diff --git a/bin/ebuild-helpers/unprivileged/chown b/bin/ebuild-helpers/unprivileged/chown |
37 |
index b57dc8aad..6a8b264d2 100755 |
38 |
--- a/bin/ebuild-helpers/unprivileged/chown |
39 |
+++ b/bin/ebuild-helpers/unprivileged/chown |
40 |
@@ -11,7 +11,7 @@ IFS=':' |
41 |
|
42 |
for path in ${PATH}; do |
43 |
[[ -x ${path}/${scriptname} ]] || continue |
44 |
- [[ ${path} == ${PORTAGE_OVERRIDE_EPREFIX}/usr/lib*/portage/* ]] && continue |
45 |
+ [[ ${path} == */portage/*/ebuild-helpers* ]] && continue |
46 |
[[ ${path} == */._portage_reinstall_.* ]] && continue |
47 |
[[ ${path}/${scriptname} -ef ${scriptpath} ]] && continue |
48 |
IFS=$' \t\n' |
49 |
|
50 |
diff --git a/bin/ebuild-helpers/xattr/install b/bin/ebuild-helpers/xattr/install |
51 |
index 4d596e148..171968ffd 100755 |
52 |
--- a/bin/ebuild-helpers/xattr/install |
53 |
+++ b/bin/ebuild-helpers/xattr/install |
54 |
@@ -28,7 +28,7 @@ IFS=':' |
55 |
set -f |
56 |
path= |
57 |
for x in ${PATH}; do |
58 |
- [[ ${x} == ${PORTAGE_OVERRIDE_EPREFIX}/usr/lib*/portage/* ]] && continue |
59 |
+ [[ ${x} == */portage/*/ebuild-helpers* ]] && continue |
60 |
[[ ${x} == */._portage_reinstall_.* ]] && continue |
61 |
path+=":${x}" |
62 |
done |