summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2024-05-28 05:21:05 +0200
committerFabian Groffen <grobian@gentoo.org>2024-05-28 05:21:05 +0200
commit7032312c7616e5d19a62ada3b0bf594035bc984c (patch)
treeb8fdfb59a84cafb31d65940e730289ec9884d318
parentscripts/bootstrap-prefix: unbreak bootstraps due to silly meson dep (diff)
downloadprefix-7032312c7616e5d19a62ada3b0bf594035bc984c.tar.gz
prefix-7032312c7616e5d19a62ada3b0bf594035bc984c.tar.bz2
prefix-7032312c7616e5d19a62ada3b0bf594035bc984c.zip
scripts/bootstrap-prefix: attempt to fix b736fab6 do_emerge_pkgs
Use ROOT, which should be the same between stages, such that we don't reference tmp/tmp. Thanks huxnu for pointing out. Bug: https://bugs.gentoo.org/933079 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rwxr-xr-xscripts/bootstrap-prefix.sh18
1 files changed, 11 insertions, 7 deletions
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 4d4202945a..60f5a24347 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -1785,16 +1785,20 @@ do_emerge_pkgs() {
&& export CFLAGS="${OVERRIDE_CFLAGS}"
[[ -n ${OVERRIDE_CXXFLAGS} ]] \
&& export CXXFLAGS="${OVERRIDE_CXXFLAGS}"
- # In the stage3 bootstrap we always prefer to use tools that have been built for
- # stage3; to accomplish this we ensure that it is the first thing evaluated in PATH.
- # Unfortunately, Portage, Python, and Python-exec are often pulled into the depgraph
- # at some point before we're fully boostrapped. To ensure that we don't try and execute
- # ${EPREFIX}/usr/bin/emerge before we're ready, always provide the full path to the
- # bootstrap Python interpreter and emerge script.
+ # In the stage3 bootstrap we always prefer to use tools that
+ # have been built for stage3; to accomplish this we ensure
+ # that it is the first thing evaluated in PATH.
+ # Unfortunately, Portage, Python, and Python-exec are often
+ # pulled into the depgraph at some point before we're fully
+ # boostrapped. To ensure that we don't try and execute
+ # ${EPREFIX}/usr/bin/emerge before we're ready, always
+ # provide the full path to the bootstrap Python interpreter
+ # and emerge script.
PORTAGE_SYNC_STALE=0 \
FEATURES="-news ${FEATURES}" \
USE="${myuse[*]}" \
- "${EPREFIX}"/tmp/bin/python "${EPREFIX}"/tmp/usr/bin/emerge "${eopts[@]}" "${pkg}"
+ "${ROOT}"/tmp/bin/python \
+ "${ROOT}"/tmp/usr/bin/emerge "${eopts[@]}" "${pkg}"
) || return 1
done
}