* [gentoo-commits] repo/proj/prefix:master commit in: eclass/, scripts/
@ 2018-12-29 14:00 Fabian Groffen
0 siblings, 0 replies; only message in thread
From: Fabian Groffen @ 2018-12-29 14:00 UTC (permalink / raw
To: gentoo-commits
commit: 7bde6813090d05e2158b6eadca2f759e38630a07
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 29 13:54:54 2018 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sat Dec 29 13:54:54 2018 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=7bde6813
PREFIX_DISABLE_GEN_USR_LDSCRIPT: remove
The migration path should long be no longer necessary, and the existance
of any non-migrated installs is disputable. (None exist to the best of
knowledge of all consulted.)
Closes: https://bugs.gentoo.org/673324
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
eclass/toolchain-funcs.eclass | 9 +-------
scripts/bootstrap-prefix.sh | 48 ++++++++++++-------------------------------
2 files changed, 14 insertions(+), 43 deletions(-)
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index 7b82db8e40..392cf02e27 100644
--- a/eclass/toolchain-funcs.eclass
+++ b/eclass/toolchain-funcs.eclass
@@ -997,14 +997,7 @@ gen_usr_ldscript() {
[[ -z ${ED+set} ]] && local ED=${D%/}${EPREFIX}/
tc-is-static-only && return
-
- # In Prefix we like to avoid people moving over, while we do want to get
- # rid of this, like toolchain (see below). We implement it differently,
- # that is, we allow new bootstraps to disable this function, while existing
- # installs just remain doing what they did to avoid breakage. Due to this,
- # the case below is modified and emptied, because for known Prefix targets
- # we keep on using gen_usr_ldscript.
- [[ -n ${PREFIX_DISABLE_GEN_USR_LDSCRIPT} ]] && return
+ use prefix && return
# We only care about stuffing / for the native ABI. #479448
if [[ $(type -t multilib_is_native_abi) == "function" ]] ; then
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index f79751b135..ea6bc9313f 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -339,11 +339,6 @@ bootstrap_setup() {
echo "# sandbox does not work well on Prefix, bug 490246"
echo 'FEATURES="${FEATURES} -usersandbox -sandbox"'
fi
- if [[ !is-rap && -n ${PREFIX_DISABLE_USR_SPLIT} ]] ; then
- echo
- echo "# This disables /usr-split, removing this will break"
- echo "PREFIX_DISABLE_GEN_USR_LDSCRIPT=yes"
- fi
if [[ ${FS_INSENSITIVE} == 1 ]] ; then
echo
echo "# Avoid problems due to case-insensitivity, bug #524236"
@@ -508,22 +503,14 @@ do_tree() {
do
[[ -d ${ROOT}/${x} ]] || mkdir -p "${ROOT}/${x}"
done
- if [[ ${PREFIX_DISABLE_USR_SPLIT} == "yes" ]] ; then
- # note to self: since coreutils now listens to
- # PREFIX_DISABLE_GEN_USR_LDSCRIPT to avoid symlinks
- # from usr/bin to bin, we can make bin a symlink as well
- # This is necessary for Cygwin, as there is no such thing
- # like an embedded runpath. Instead we put all the dlls
- # next to the exes, to get them working even without the
- # PATH environment variable being set up.
- for x in lib sbin bin; do
- [[ -e ${ROOT}/${x} ]] || ( cd "${ROOT}" && ln -s usr/${x} )
- done
- else
- for x in $(rapx "" lib) sbin ; do
- [[ -d ${ROOT}/${x} ]] || mkdir -p "${ROOT}/${x}"
- done
- fi
+ # We can make bin a symlink because /usr is never split, this is
+ # necessary for Cygwin, as there is no such thing like an
+ # embedded runpath. Instead we put all the dlls next to the
+ # exes, to get them working even without the PATH environment
+ # variable being set up.
+ for x in lib sbin bin; do
+ [[ -e ${ROOT}/${x} ]] || ( cd "${ROOT}" && ln -s usr/${x} )
+ done
mkdir -p "${PORTDIR}"
if [[ ! -e ${PORTDIR}/.unpacked ]]; then
efetch "$1/$2" || return 1
@@ -1263,13 +1250,11 @@ bootstrap_stage1() {
# whatever the native toolchain is here, is what in general works
# best.
- if [[ ${PREFIX_DISABLE_USR_SPLIT} == "yes" ]] ; then
- # See comments in do_tree().
- for x in lib sbin bin; do
- mkdir -p "${ROOT}"/tmp/usr/${x}
- [[ -e ${ROOT}/tmp/${x} ]] || ( cd "${ROOT}"/tmp && ln -s usr/${x} )
- done
- fi
+ # See comments in do_tree().
+ for x in lib sbin bin; do
+ mkdir -p "${ROOT}"/tmp/usr/${x}
+ [[ -e ${ROOT}/tmp/${x} ]] || ( cd "${ROOT}"/tmp && ln -s usr/${x} )
+ done
configure_toolchain
export CC CXX
@@ -1916,13 +1901,6 @@ set_helper_vars() {
}
bootstrap_interactive() {
- # No longer support gen_usr_ldscript stuff and the /usr split it
- # works around for in new bootstraps, this must be in line with what
- # eventually ends up in make.conf, see the end of stage3. We don't
- # do this in bootstrap_setup() because in that case we'd also have
- # to cater for getting this right with manual bootstraps.
- is-rap || export PREFIX_DISABLE_USR_SPLIT=yes
-
# TODO should immediately die on platforms that we know are
# impossible due extremely hard dependency chains
# (NetBSD/OpenBSD)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-12-29 14:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-29 14:00 [gentoo-commits] repo/proj/prefix:master commit in: eclass/, scripts/ Fabian Groffen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox