From 9b6083569a3482fbae8d47c99a3b0415bd9164e3 Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 8 Sep 2025 07:08:58 +0000 Subject: [PATCH] eclass/python-utils-r1: Sync with Gentoo It's from Gentoo commit 07446fc250c157ce77518bcf61f30c405f9433ef. Signed-off-by: Flatcar Buildbot --- .../portage-stable/eclass/python-utils-r1.eclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sdk_container/src/third_party/portage-stable/eclass/python-utils-r1.eclass b/sdk_container/src/third_party/portage-stable/eclass/python-utils-r1.eclass index 13ed875012..f454a066a3 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/python-utils-r1.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/python-utils-r1.eclass @@ -929,8 +929,12 @@ _python_wrapper_setup() { chmod +x "${workdir}/bin/python-config" \ "${workdir}/bin/python3-config" || die - # Python 2.6+. - ln -s "${PYTHON/python/2to3-}" "${workdir}"/bin/2to3 || die + # Python 2.6+. Deprecated in 3.11, removed in 3.13. + if ver_test ${EPYTHON#python} -lt 3.13; then + ln -s "${PYTHON/python/2to3-}" "${workdir}"/bin/2to3 || die + else + nonsupp+=( 2to3 ) + fi # Python 2.7+. ln -s "${EPREFIX}"/usr/$(get_libdir)/pkgconfig/${EPYTHON/n/n-}.pc \