1 |
commit: 7bde6813090d05e2158b6eadca2f759e38630a07 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 29 13:54:54 2018 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 29 13:54:54 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=7bde6813 |
7 |
|
8 |
PREFIX_DISABLE_GEN_USR_LDSCRIPT: remove |
9 |
|
10 |
The migration path should long be no longer necessary, and the existance |
11 |
of any non-migrated installs is disputable. (None exist to the best of |
12 |
knowledge of all consulted.) |
13 |
|
14 |
Closes: https://bugs.gentoo.org/673324 |
15 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
16 |
|
17 |
eclass/toolchain-funcs.eclass | 9 +------- |
18 |
scripts/bootstrap-prefix.sh | 48 ++++++++++++------------------------------- |
19 |
2 files changed, 14 insertions(+), 43 deletions(-) |
20 |
|
21 |
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass |
22 |
index 7b82db8e40..392cf02e27 100644 |
23 |
--- a/eclass/toolchain-funcs.eclass |
24 |
+++ b/eclass/toolchain-funcs.eclass |
25 |
@@ -997,14 +997,7 @@ gen_usr_ldscript() { |
26 |
[[ -z ${ED+set} ]] && local ED=${D%/}${EPREFIX}/ |
27 |
|
28 |
tc-is-static-only && return |
29 |
- |
30 |
- # In Prefix we like to avoid people moving over, while we do want to get |
31 |
- # rid of this, like toolchain (see below). We implement it differently, |
32 |
- # that is, we allow new bootstraps to disable this function, while existing |
33 |
- # installs just remain doing what they did to avoid breakage. Due to this, |
34 |
- # the case below is modified and emptied, because for known Prefix targets |
35 |
- # we keep on using gen_usr_ldscript. |
36 |
- [[ -n ${PREFIX_DISABLE_GEN_USR_LDSCRIPT} ]] && return |
37 |
+ use prefix && return |
38 |
|
39 |
# We only care about stuffing / for the native ABI. #479448 |
40 |
if [[ $(type -t multilib_is_native_abi) == "function" ]] ; then |
41 |
|
42 |
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh |
43 |
index f79751b135..ea6bc9313f 100755 |
44 |
--- a/scripts/bootstrap-prefix.sh |
45 |
+++ b/scripts/bootstrap-prefix.sh |
46 |
@@ -339,11 +339,6 @@ bootstrap_setup() { |
47 |
echo "# sandbox does not work well on Prefix, bug 490246" |
48 |
echo 'FEATURES="${FEATURES} -usersandbox -sandbox"' |
49 |
fi |
50 |
- if [[ !is-rap && -n ${PREFIX_DISABLE_USR_SPLIT} ]] ; then |
51 |
- echo |
52 |
- echo "# This disables /usr-split, removing this will break" |
53 |
- echo "PREFIX_DISABLE_GEN_USR_LDSCRIPT=yes" |
54 |
- fi |
55 |
if [[ ${FS_INSENSITIVE} == 1 ]] ; then |
56 |
echo |
57 |
echo "# Avoid problems due to case-insensitivity, bug #524236" |
58 |
@@ -508,22 +503,14 @@ do_tree() { |
59 |
do |
60 |
[[ -d ${ROOT}/${x} ]] || mkdir -p "${ROOT}/${x}" |
61 |
done |
62 |
- if [[ ${PREFIX_DISABLE_USR_SPLIT} == "yes" ]] ; then |
63 |
- # note to self: since coreutils now listens to |
64 |
- # PREFIX_DISABLE_GEN_USR_LDSCRIPT to avoid symlinks |
65 |
- # from usr/bin to bin, we can make bin a symlink as well |
66 |
- # This is necessary for Cygwin, as there is no such thing |
67 |
- # like an embedded runpath. Instead we put all the dlls |
68 |
- # next to the exes, to get them working even without the |
69 |
- # PATH environment variable being set up. |
70 |
- for x in lib sbin bin; do |
71 |
- [[ -e ${ROOT}/${x} ]] || ( cd "${ROOT}" && ln -s usr/${x} ) |
72 |
- done |
73 |
- else |
74 |
- for x in $(rapx "" lib) sbin ; do |
75 |
- [[ -d ${ROOT}/${x} ]] || mkdir -p "${ROOT}/${x}" |
76 |
- done |
77 |
- fi |
78 |
+ # We can make bin a symlink because /usr is never split, this is |
79 |
+ # necessary for Cygwin, as there is no such thing like an |
80 |
+ # embedded runpath. Instead we put all the dlls next to the |
81 |
+ # exes, to get them working even without the PATH environment |
82 |
+ # variable being set up. |
83 |
+ for x in lib sbin bin; do |
84 |
+ [[ -e ${ROOT}/${x} ]] || ( cd "${ROOT}" && ln -s usr/${x} ) |
85 |
+ done |
86 |
mkdir -p "${PORTDIR}" |
87 |
if [[ ! -e ${PORTDIR}/.unpacked ]]; then |
88 |
efetch "$1/$2" || return 1 |
89 |
@@ -1263,13 +1250,11 @@ bootstrap_stage1() { |
90 |
# whatever the native toolchain is here, is what in general works |
91 |
# best. |
92 |
|
93 |
- if [[ ${PREFIX_DISABLE_USR_SPLIT} == "yes" ]] ; then |
94 |
- # See comments in do_tree(). |
95 |
- for x in lib sbin bin; do |
96 |
- mkdir -p "${ROOT}"/tmp/usr/${x} |
97 |
- [[ -e ${ROOT}/tmp/${x} ]] || ( cd "${ROOT}"/tmp && ln -s usr/${x} ) |
98 |
- done |
99 |
- fi |
100 |
+ # See comments in do_tree(). |
101 |
+ for x in lib sbin bin; do |
102 |
+ mkdir -p "${ROOT}"/tmp/usr/${x} |
103 |
+ [[ -e ${ROOT}/tmp/${x} ]] || ( cd "${ROOT}"/tmp && ln -s usr/${x} ) |
104 |
+ done |
105 |
|
106 |
configure_toolchain |
107 |
export CC CXX |
108 |
@@ -1916,13 +1901,6 @@ set_helper_vars() { |
109 |
} |
110 |
|
111 |
bootstrap_interactive() { |
112 |
- # No longer support gen_usr_ldscript stuff and the /usr split it |
113 |
- # works around for in new bootstraps, this must be in line with what |
114 |
- # eventually ends up in make.conf, see the end of stage3. We don't |
115 |
- # do this in bootstrap_setup() because in that case we'd also have |
116 |
- # to cater for getting this right with manual bootstraps. |
117 |
- is-rap || export PREFIX_DISABLE_USR_SPLIT=yes |
118 |
- |
119 |
# TODO should immediately die on platforms that we know are |
120 |
# impossible due extremely hard dependency chains |
121 |
# (NetBSD/OpenBSD) |