From fc8ff18f3a1a54c592dcfdb3a5c0a514de6f0ad7 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Fri, 29 Mar 2024 12:51:23 +0100 Subject: scripts/bootstrap-prefix: fix Gentoo host shortcut path Thanks flow for pointing out. Closes: https://bugs.gentoo.org/927957 Signed-off-by: Fabian Groffen --- scripts/bootstrap-prefix.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh index c3daad42ca..cb15d53cd6 100755 --- a/scripts/bootstrap-prefix.sh +++ b/scripts/bootstrap-prefix.sh @@ -1591,8 +1591,10 @@ bootstrap_stage1() { # Host compiler can output a variety of libdirs. At stage1, # they should be the same as lib. Otherwise libffi may not be - # found by python. - if is-rap ; then + # found by python. Don't do this when we're using a Gentoo host to + # speed up bootstrapping, it should be good, and we shouldn't be + # touching the host either. Bug #927957 + if is-rap && [[ ! -L "${ROOT}"/tmp ]] ; then [[ -d ${ROOT}/tmp/usr/lib ]] || mkdir -p "${ROOT}"/tmp/usr/lib local libdir for libdir in lib64 lib32 libx32; do -- cgit v1.2.3-65-gdbad