commit:     11eab5fbabe90810766d435244bb3d49814a9962
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 30 08:47:19 2025 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Nov 30 08:47:19 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=11eab5fb

scripts/bootstrap-prefix: revert bootstrap Python back to 3.11

3.13 is highly unsuitable to be built in a bootstrap environment, so try
staging from 3.11.

Closes: https://bugs.gentoo.org/966544
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 scripts/bootstrap-prefix.sh | 21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 852f4a402e..e84408b97f 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -1002,14 +1002,19 @@ bootstrap_gnu() {
 }
 
 python_ver() {
-       # keep this number in line with PV below for stage1,2
-       # also, note that this version must match the Python version in the
-       # snapshot for stage3, else packages will break with some python
-       # mismatch error due to Portage using a different version after it
-       # upgraded itself with a newer Python
-       echo 3.13
-       export PYTHON_FULL_VERSION="3.13.3-gentoo-prefix-patched"
-       # keep this number in line with PV below for stage1,2
+       # stage1 and 2 should call python_ver if they need the version, such
+       # that we can change it in a single place (here)
+       local PYVER=3.11
+       echo ${PYVER}
+       export PYTHON_FULL_VERSION="${PYVER}.7-gentoo-prefix-patched"
+
+       # note on upgrading Python versions
+       # At least Python 3.13 requires pkg-config and a lot of external
+       # dependencies which makes bootstrapping more complicated.  For that
+       # reason, the Python version is now locked to 3.11, bug #966544
+       # This ultimately means that the bootstrap Python here, and the
+       # Portage snapshot we use should work together, and that we must
+       # update Python versions from Portage.
 }
 
 bootstrap_python() {

Reply via email to