summaryrefslogtreecommitdiff
path: root/dev-lang/python
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2025-10-11 08:50:34 +0100
committerSam James <sam@gentoo.org>2025-10-11 08:50:34 +0100
commitf5d37c450823325ee43519dc710c21018f89f6ad (patch)
treee73dbfc2309e6a3516d3ba6e76b7ed3106f35d21 /dev-lang/python
parent512f6b916df58c4df24d84b1a46c1eea7a4e8cb2 (diff)
downloadgentoo-f5d37c450823325ee43519dc710c21018f89f6ad.tar.gz
gentoo-f5d37c450823325ee43519dc710c21018f89f6ad.tar.bz2
gentoo-f5d37c450823325ee43519dc710c21018f89f6ad.zip
dev-lang/python: check for new enough GCC/Clang for USE=tail-call-interp
I've kept the p.use.stable.mask entry as users enabling it on stable would still have to manually set CC=clang etc and it doesn't seem worth it. Hopefully we can stable GCC 15 soonish anyway. Closes: https://bugs.gentoo.org/963989 Thanks-to: Jerome C <me@jeromec.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang/python')
-rw-r--r--dev-lang/python/python-0.3.14.0.ebuild10
-rw-r--r--dev-lang/python/python-0.3.14.9999.ebuild10
-rw-r--r--dev-lang/python/python-0.3.15.9999.ebuild10
-rw-r--r--dev-lang/python/python-3.14.0.ebuild10
-rw-r--r--dev-lang/python/python-3.14.9999.ebuild10
-rw-r--r--dev-lang/python/python-3.15.9999.ebuild10
6 files changed, 60 insertions, 0 deletions
diff --git a/dev-lang/python/python-0.3.14.0.ebuild b/dev-lang/python/python-0.3.14.0.ebuild
index df2b42ecd15e..1c94364453a7 100644
--- a/dev-lang/python/python-0.3.14.0.ebuild
+++ b/dev-lang/python/python-0.3.14.0.ebuild
@@ -86,6 +86,12 @@ BDEPEND="
dev-build/autoconf-archive
app-alternatives/awk
virtual/pkgconfig
+ tail-call-interp? (
+ || (
+ >=sys-devel/gcc-15:*
+ >=llvm-core/clang-19:*
+ )
+ )
"
if [[ ${PV} != *_alpha* ]]; then
RDEPEND+="
@@ -129,6 +135,10 @@ pkg_setup() {
done
linux-info_pkg_setup
fi
+ if use tail-call-interp; then
+ tc-check-min_ver gcc 15
+ tc-check-min_ver clang 19
+ fi
fi
}
diff --git a/dev-lang/python/python-0.3.14.9999.ebuild b/dev-lang/python/python-0.3.14.9999.ebuild
index 9d9d70958f7a..a82f1b2c6f4b 100644
--- a/dev-lang/python/python-0.3.14.9999.ebuild
+++ b/dev-lang/python/python-0.3.14.9999.ebuild
@@ -77,6 +77,12 @@ BDEPEND="
dev-build/autoconf-archive
app-alternatives/awk
virtual/pkgconfig
+ tail-call-interp? (
+ || (
+ >=sys-devel/gcc-15:*
+ >=llvm-core/clang-19:*
+ )
+ )
"
if [[ ${PV} != *_alpha* ]]; then
RDEPEND+="
@@ -122,6 +128,10 @@ pkg_setup() {
done
linux-info_pkg_setup
fi
+ if use tail-call-interp; then
+ tc-check-min_ver gcc 15
+ tc-check-min_ver clang 19
+ fi
fi
}
diff --git a/dev-lang/python/python-0.3.15.9999.ebuild b/dev-lang/python/python-0.3.15.9999.ebuild
index 246ae13dfe7a..126aefe73c6b 100644
--- a/dev-lang/python/python-0.3.15.9999.ebuild
+++ b/dev-lang/python/python-0.3.15.9999.ebuild
@@ -77,6 +77,12 @@ BDEPEND="
dev-build/autoconf-archive
app-alternatives/awk
virtual/pkgconfig
+ tail-call-interp? (
+ || (
+ >=sys-devel/gcc-15:*
+ >=llvm-core/clang-19:*
+ )
+ )
"
PDEPEND="
ensurepip? ( dev-python/ensurepip-pip )
@@ -117,6 +123,10 @@ pkg_setup() {
done
linux-info_pkg_setup
fi
+ if use tail-call-interp; then
+ tc-check-min_ver gcc 15
+ tc-check-min_ver clang 19
+ fi
fi
}
diff --git a/dev-lang/python/python-3.14.0.ebuild b/dev-lang/python/python-3.14.0.ebuild
index dac8cefa2176..1ce0497e573d 100644
--- a/dev-lang/python/python-3.14.0.ebuild
+++ b/dev-lang/python/python-3.14.0.ebuild
@@ -94,6 +94,12 @@ BDEPEND="
llvm-core/llvm:${LLVM_SLOT}
')
)
+ tail-call-interp? (
+ || (
+ >=sys-devel/gcc-15:*
+ >=llvm-core/clang-19:*
+ )
+ )
"
if [[ ${PV} != *_alpha* ]]; then
RDEPEND+="
@@ -146,6 +152,10 @@ pkg_setup() {
done
linux-info_pkg_setup
fi
+ if use tail-call-interp; then
+ tc-check-min_ver gcc 15
+ tc-check-min_ver clang 19
+ fi
fi
}
diff --git a/dev-lang/python/python-3.14.9999.ebuild b/dev-lang/python/python-3.14.9999.ebuild
index 6b946baf9083..f40e1772bf94 100644
--- a/dev-lang/python/python-3.14.9999.ebuild
+++ b/dev-lang/python/python-3.14.9999.ebuild
@@ -86,6 +86,12 @@ BDEPEND="
llvm-core/llvm:${LLVM_SLOT}
')
)
+ tail-call-interp? (
+ || (
+ >=sys-devel/gcc-15:*
+ >=llvm-core/clang-19:*
+ )
+ )
"
if [[ ${PV} != *_alpha* ]]; then
RDEPEND+="
@@ -134,6 +140,10 @@ pkg_setup() {
done
linux-info_pkg_setup
fi
+ if use tail-call-interp; then
+ tc-check-min_ver gcc 15
+ tc-check-min_ver clang 19
+ fi
fi
}
diff --git a/dev-lang/python/python-3.15.9999.ebuild b/dev-lang/python/python-3.15.9999.ebuild
index f85907c04d29..fe95c1ff7303 100644
--- a/dev-lang/python/python-3.15.9999.ebuild
+++ b/dev-lang/python/python-3.15.9999.ebuild
@@ -86,6 +86,12 @@ BDEPEND="
llvm-core/llvm:${LLVM_SLOT}
')
)
+ tail-call-interp? (
+ || (
+ >=sys-devel/gcc-15:*
+ >=llvm-core/clang-19:*
+ )
+ )
"
PDEPEND="
ensurepip? ( dev-python/ensurepip-pip )
@@ -129,6 +135,10 @@ pkg_setup() {
done
linux-info_pkg_setup
fi
+ if use tail-call-interp; then
+ tc-check-min_ver gcc 15
+ tc-check-min_ver clang 19
+ fi
fi
}