commit: 26dca920b3f483627ddfff332aff7d4c5b47f6fd Author: Jacob Floyd <cognifloyd <AT> gmail <DOT> com> AuthorDate: Fri Dec 4 02:37:47 2020 +0000 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> CommitDate: Sun Jan 3 14:37:06 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=26dca920
scripts/bootstrap-prefix: Fix Python for stage3 on Darwin Patch stage1 bootstrapped python to disable _scproxy module (which is what the ebuild does), to avoid a backtrace when it tries to use the network. Bug: https://bugs.gentoo.org/758167 Signed-off-by: Jacob Floyd <cognifloyd <AT> gmail.com> Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> scripts/bootstrap-prefix.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh index 408ecb06c9..0dda8055df 100755 --- a/scripts/bootstrap-prefix.sh +++ b/scripts/bootstrap-prefix.sh @@ -1012,6 +1012,14 @@ bootstrap_python() { ;; esac + case ${CHOST} in + (*-darwin*) + # avoid triggering compiled out system proxy retrieval code (_scproxy) + sed -i -e '/sys.platform/s/darwin/disabled-darwin/' \ + Lib/urllib/request.py + ;; + esac + fix_config_sub local myconf=""