From 6563b323b395baaba6877c5fc9d4d8d7510760b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 4 Nov 2026 18:39:17 +0100 Subject: [PATCH] dev-lang/python: Remove JIT from 3.13.x MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny Part-of: https://codeberg.org/gentoo/gentoo/pulls/2334 --- dev-lang/python/python-3.13.18.ebuild | 23 ++--------------------- dev-lang/python/python-3.13.18_p1.ebuild | 23 ++--------------------- dev-lang/python/python-3.13.9999.ebuild | 23 ++--------------------- 3 files changed, 6 insertions(+), 63 deletions(-) diff --git a/dev-lang/python/python-3.13.18.ebuild b/dev-lang/python/python-3.13.18.ebuild index 99c2aa0951171..6d823117d6afa 100644 --- a/dev-lang/python/python-3.13.18.ebuild +++ b/dev-lang/python/python-3.13.18.ebuild @@ -3,11 +3,9 @@ EAPI="8" -LLVM_COMPAT=( 18 ) -LLVM_OPTIONAL=1 WANT_LIBTOOL="none" -inherit autotools check-reqs flag-o-matic linux-info llvm-r1 +inherit autotools check-reqs flag-o-matic linux-info inherit multiprocessing pax-utils python-utils-r1 toolchain-funcs inherit verify-sig @@ -34,10 +32,9 @@ LICENSE="PSF-2" SLOT="${PYVER}" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" IUSE=" - bluetooth debug +ensurepip examples gdbm jit libedit +ncurses pgo + bluetooth debug +ensurepip examples gdbm libedit +ncurses pgo +readline +sqlite +ssl test tk valgrind " -REQUIRED_USE="jit? ( ${LLVM_REQUIRED_USE} )" RESTRICT="!test? ( test )" # Do not add a dependency on dev-lang/python to this ebuild. @@ -87,12 +84,6 @@ BDEPEND=" dev-build/autoconf-archive app-alternatives/awk virtual/pkgconfig - jit? ( - $(llvm_gen_dep ' - llvm-core/clang:${LLVM_SLOT} - llvm-core/llvm:${LLVM_SLOT} - ') - ) verify-sig? ( >=sec-keys/openpgp-keys-python-20260805 ) " if [[ ${PV} != *_alpha* ]]; then @@ -122,19 +113,10 @@ pkg_pretend() { if use pgo || use test; then check-reqs_pkg_pretend fi - - if use jit; then - ewarn "USE=jit is considered experimental upstream. Using it" - ewarn "could lead to unexpected breakage, including race conditions" - ewarn "and crashes, respectively. Please do not file Gentoo bugs, unless" - ewarn "you can reproduce the problem with dev-lang/python[-jit]. Instead," - ewarn "please consider reporting JIT problems upstream." - fi } pkg_setup() { if [[ ${MERGE_TYPE} != binary ]]; then - use jit && llvm-r1_pkg_setup if use test || use pgo; then check-reqs_pkg_setup @@ -401,7 +383,6 @@ src_configure() { --enable-gil $(use_with debug assertions) - $(use_enable jit experimental-jit) $(use_enable pgo optimizations) $(use_with readline readline "$(usex libedit editline readline)") $(use_with valgrind) diff --git a/dev-lang/python/python-3.13.18_p1.ebuild b/dev-lang/python/python-3.13.18_p1.ebuild index dc4a5830ce8a2..dc7d92f01de5d 100644 --- a/dev-lang/python/python-3.13.18_p1.ebuild +++ b/dev-lang/python/python-3.13.18_p1.ebuild @@ -3,11 +3,9 @@ EAPI="8" -LLVM_COMPAT=( 18 ) -LLVM_OPTIONAL=1 WANT_LIBTOOL="none" -inherit autotools check-reqs flag-o-matic linux-info llvm-r1 +inherit autotools check-reqs flag-o-matic linux-info inherit multiprocessing pax-utils python-utils-r1 toolchain-funcs inherit verify-sig @@ -34,10 +32,9 @@ LICENSE="PSF-2" SLOT="${PYVER}" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc x86" IUSE=" - bluetooth debug +ensurepip examples gdbm jit libedit +ncurses pgo + bluetooth debug +ensurepip examples gdbm libedit +ncurses pgo +readline +sqlite +ssl test tk valgrind " -REQUIRED_USE="jit? ( ${LLVM_REQUIRED_USE} )" RESTRICT="!test? ( test )" # Do not add a dependency on dev-lang/python to this ebuild. @@ -87,12 +84,6 @@ BDEPEND=" dev-build/autoconf-archive app-alternatives/awk virtual/pkgconfig - jit? ( - $(llvm_gen_dep ' - llvm-core/clang:${LLVM_SLOT} - llvm-core/llvm:${LLVM_SLOT} - ') - ) verify-sig? ( >=sec-keys/openpgp-keys-python-20260805 ) " if [[ ${PV} != *_alpha* ]]; then @@ -122,19 +113,10 @@ pkg_pretend() { if use pgo || use test; then check-reqs_pkg_pretend fi - - if use jit; then - ewarn "USE=jit is considered experimental upstream. Using it" - ewarn "could lead to unexpected breakage, including race conditions" - ewarn "and crashes, respectively. Please do not file Gentoo bugs, unless" - ewarn "you can reproduce the problem with dev-lang/python[-jit]. Instead," - ewarn "please consider reporting JIT problems upstream." - fi } pkg_setup() { if [[ ${MERGE_TYPE} != binary ]]; then - use jit && llvm-r1_pkg_setup if use test || use pgo; then check-reqs_pkg_setup @@ -401,7 +383,6 @@ src_configure() { --enable-gil $(use_with debug assertions) - $(use_enable jit experimental-jit) $(use_enable pgo optimizations) $(use_with readline readline "$(usex libedit editline readline)") $(use_with valgrind) diff --git a/dev-lang/python/python-3.13.9999.ebuild b/dev-lang/python/python-3.13.9999.ebuild index 11b7c889cca88..ad55581500a52 100644 --- a/dev-lang/python/python-3.13.9999.ebuild +++ b/dev-lang/python/python-3.13.9999.ebuild @@ -3,11 +3,9 @@ EAPI="8" -LLVM_COMPAT=( 18 ) -LLVM_OPTIONAL=1 WANT_LIBTOOL="none" -inherit autotools check-reqs flag-o-matic git-r3 linux-info llvm-r1 +inherit autotools check-reqs flag-o-matic git-r3 linux-info inherit multiprocessing pax-utils python-utils-r1 toolchain-funcs PYVER=$(ver_cut 1-2) @@ -27,10 +25,9 @@ EGIT_BRANCH=${PYVER} LICENSE="PSF-2" SLOT="${PYVER}" IUSE=" - bluetooth debug +ensurepip examples gdbm jit libedit +ncurses pgo + bluetooth debug +ensurepip examples gdbm libedit +ncurses pgo +readline +sqlite +ssl test tk valgrind " -REQUIRED_USE="jit? ( ${LLVM_REQUIRED_USE} )" RESTRICT="!test? ( test )" # Do not add a dependency on dev-lang/python to this ebuild. @@ -80,12 +77,6 @@ BDEPEND=" dev-build/autoconf-archive app-alternatives/awk virtual/pkgconfig - jit? ( - $(llvm_gen_dep ' - llvm-core/clang:${LLVM_SLOT} - llvm-core/llvm:${LLVM_SLOT} - ') - ) " if [[ ${PV} != *_alpha* ]]; then RDEPEND+=" @@ -112,19 +103,10 @@ pkg_pretend() { if use pgo || use test; then check-reqs_pkg_pretend fi - - if use jit; then - ewarn "USE=jit is considered experimental upstream. Using it" - ewarn "could lead to unexpected breakage, including race conditions" - ewarn "and crashes, respectively. Please do not file Gentoo bugs, unless" - ewarn "you can reproduce the problem with dev-lang/python[-jit]. Instead," - ewarn "please consider reporting JIT problems upstream." - fi } pkg_setup() { if [[ ${MERGE_TYPE} != binary ]]; then - use jit && llvm-r1_pkg_setup if use test || use pgo; then check-reqs_pkg_setup @@ -389,7 +371,6 @@ src_configure() { --enable-gil $(use_with debug assertions) - $(use_enable jit experimental-jit) $(use_enable pgo optimizations) $(use_with readline readline "$(usex libedit editline readline)") $(use_with valgrind)