1 |
commit: 8e1dd215fb9401641e04199d1e69e7a5b498a7a3 |
2 |
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 1 10:17:37 2019 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 1 10:17:37 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=8e1dd215 |
7 |
|
8 |
s/bootstrap-prefix.sh: no /bin symlinks in prefix/standalone. |
9 |
|
10 |
In prefix/standalone, we keep USE=split-usr enabled to align with |
11 |
the default of Gentoo vanilla. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/674084 |
14 |
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org> |
15 |
|
16 |
scripts/bootstrap-prefix.sh | 15 +++++++++++---- |
17 |
1 file changed, 11 insertions(+), 4 deletions(-) |
18 |
|
19 |
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh |
20 |
index 6af97eaba6..d393c4d498 100755 |
21 |
--- a/scripts/bootstrap-prefix.sh |
22 |
+++ b/scripts/bootstrap-prefix.sh |
23 |
@@ -503,14 +503,21 @@ do_tree() { |
24 |
do |
25 |
[[ -d ${ROOT}/${x} ]] || mkdir -p "${ROOT}/${x}" |
26 |
done |
27 |
- # We can make bin a symlink because /usr is never split, this is |
28 |
+ # Make symlinks as USE=split-usr is masked in prefix/rpath. This is |
29 |
# necessary for Cygwin, as there is no such thing like an |
30 |
# embedded runpath. Instead we put all the dlls next to the |
31 |
# exes, to get them working even without the PATH environment |
32 |
# variable being set up. |
33 |
- for x in lib sbin bin; do |
34 |
- [[ -e ${ROOT}/${x} ]] || ( cd "${ROOT}" && ln -s usr/${x} ) |
35 |
- done |
36 |
+ # |
37 |
+ # In prefix/standalone, however, no symlink is desired. |
38 |
+ # Because we keep USE=split-usr enabled to align with the |
39 |
+ # default of Gentoo vanilla. |
40 |
+ if ! is-rap; then |
41 |
+ for x in lib sbin bin; do |
42 |
+ [[ -e ${ROOT}/${x} ]] || ( cd "${ROOT}" && ln -s usr/${x} ) |
43 |
+ done |
44 |
+ fi |
45 |
+ |
46 |
mkdir -p "${PORTDIR}" |
47 |
if [[ ! -e ${PORTDIR}/.unpacked ]]; then |
48 |
efetch "$1/$2" || return 1 |