git: 25d1ba0de013 - main - lang/python313: prevent building JIT with newer CPython

From: Charlie Li <vishwin_at_FreeBSD.org>
Date: Fri, 12 Jun 2026 17:47:49 UTC
The branch main has been updated by vishwin:

URL: https://cgit.FreeBSD.org/ports/commit/?id=25d1ba0de013d2f69f826d8f20c37bb42a2af014

commit 25d1ba0de013d2f69f826d8f20c37bb42a2af014
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2026-06-12 17:41:45 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2026-06-12 17:47:09 +0000

    lang/python313: prevent building JIT with newer CPython
    
    While such combos build successfully outside of ports, a circular
    build dependency forms when said newer ports also have JIT enabled.
---
 lang/python313/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lang/python313/Makefile b/lang/python313/Makefile
index 842ca0965534..8c34bfd1f786 100644
--- a/lang/python313/Makefile
+++ b/lang/python313/Makefile
@@ -106,7 +106,7 @@ ABIFLAGS:=	d${ABIFLAGS}
 
 # Python 3.11 or newer is required to build the JIT
 .if ${PORT_OPTIONS:MJIT}
-.  if ${PYTHON_DEFAULT:S/t$//} == 3.13 || ${PYTHON_DEFAULT:S/t$//} < 3.11
+.  if ${PYTHON_DEFAULT:S/t$//} >= 3.13 || ${PYTHON_DEFAULT:S/t$//} < 3.11
 BUILD_DEPENDS+=	python3.12:lang/python312
 .  else
 BUILD_DEPENDS+=	python${PYTHON_DEFAULT}:lang/python${PYTHON_DEFAULT:S/.//g}