commit: 60c1d43adfa2a17196ea83933e05415b33915465
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed May 15 14:18:41 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed May 15 14:18:41 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60c1d43a
dev-lang/python: Add a warning for experimental flags
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-lang/python/python-3.13.0_beta1_p1.ebuild | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/dev-lang/python/python-3.13.0_beta1_p1.ebuild
b/dev-lang/python/python-3.13.0_beta1_p1.ebuild
index 7226cd952199..07234f97460a 100644
--- a/dev-lang/python/python-3.13.0_beta1_p1.ebuild
+++ b/dev-lang/python/python-3.13.0_beta1_p1.ebuild
@@ -117,6 +117,14 @@ QA_CONFIG_IMPL_DECL_SKIP=( chflags lchflags )
pkg_pretend() {
use test && check-reqs_pkg_pretend
+
+ if ! use gil || use jit; then
+ ewarn "USE=-gil and USE=jit flags are considered experimental
upstream. Using"
+ ewarn "them 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[gil,-jit]. Instead,"
+ ewarn "please consider reporting freethreading / JIT problems
upstream."
+ fi
}
pkg_setup() {