From 3787850c3ce0d776e2fe84e2936e985ac5df0e95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 16 Jun 2024 14:49:29 +0200 Subject: [PATCH] Run just-built Python with -s -S Add `-s` and `-S` flags to `PYTHON_FOR_BUILD` to ensure that the new executable does not access the system site-packages. This avoids sandbox errors when upgrading from 3.13.0b1. Bug: https://bugs.gentoo.org/934079 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c5631a2380f0f1..70c3fb7f0a1f0c 100644 --- a/configure.ac +++ b/configure.ac @@ -170,7 +170,7 @@ AC_ARG_WITH([build-python], AS_VAR_IF([cross_compiling], [yes], [AC_MSG_ERROR([Cross compiling requires --with-build-python])] ) - PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' + PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E -s -S' PYTHON_FOR_FREEZE="./_bootstrap_python" ] )