@@ -, +, @@ in emerge -e system. Without this, portage is dying with _scproxy errors. This is actually in stage1, because that's when we bootstrap python. but hopefully we still don't need it anymore). --- a/scripts/bootstrap-prefix.sh +++ a/scripts/bootstrap-prefix.sh @@ -1147,6 +1147,12 @@ bootstrap_python() { export PYTHON_DISABLE_SSL=1 export OPT="${CFLAGS}" + if [[ ${CHOST} == *-darwin* ]]; then + PYTHON_DISABLE_MODULES+=" _scproxy" + sed -i -e '/sys.platform/s/darwin/disabled-darwin/' \ + Lib/urllib/request.py || return 1 + fi + einfo "Compiling ${A%-*}" # some ancient versions of hg fail with "hg id -i", so help @@ -1954,7 +1960,7 @@ bootstrap_stage3() { # (CBUILD, BDEPEND) and with the system being built # (CHOST, RDEPEND). To correctly bootstrap stage3, # PORTAGE_OVERRIDE_EPREFIX as BROOT is needed. - PREROOTPATH="${ROOT}"$(echo /{,tmp/}{usr/,}{,lib/llvm/{10,9,8,7,6,5}/}{s,}bin | sed "s, ,:${ROOT},g") \ + PREROOTPATH="${ROOT}"$(echo /{,tmp/}{usr/,}{,lib/llvm/{12,11,10,9,8,7,6,5}/}{s,}bin | sed "s, ,:${ROOT},g") \ EPREFIX="${ROOT}" PORTAGE_TMPDIR="${PORTAGE_TMPDIR}" \ FEATURES="${FEATURES} force-prefix" \ EMERGE_LOG_DIR="${ROOT}"/var/log \ @@ -2124,8 +2130,8 @@ bootstrap_stage3() { # However for some reason this nm doesn't quite get it on newer # platforms at least, resulting in bugs like #598336. To cater for # that, get rid of this nm and rely on the host one at this stage - [[ ${CHOST} == *-darwin* ]] && \ - rm -f "${ROOT}"{,/tmp}/usr/bin/{,${CHOST}-}nm + #[[ ${CHOST} == *-darwin* ]] && \ + # rm -f "${ROOT}"{,/tmp}/usr/bin/{,${CHOST}-}nm rm -f "${ROOT}"/etc/ld.so.conf.d/stage2.conf