git: 7a1a2f8f2e3d - 2025Q2 - lang/python311: pull in upstream commit addressing CVE-2025-4516

From: Charlie Li <vishwin_at_FreeBSD.org>
Date: Sun, 01 Jun 2025 18:25:13 UTC
The branch 2025Q2 has been updated by vishwin:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7a1a2f8f2e3d6a41ebd7120f14c31e6a2dfba809

commit 7a1a2f8f2e3d6a41ebd7120f14c31e6a2dfba809
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2025-05-29 04:36:01 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2025-06-01 18:24:17 +0000

    lang/python311: pull in upstream commit addressing CVE-2025-4516
    
    Reference: https://github.com/python/cpython/pull/134341
    
    PR: 287009
    (cherry picked from commit 5e57ff8453ec6c1172fc575274cb5c466dd0bd30)
---
 lang/python311/Makefile | 4 ++++
 lang/python311/distinfo | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/lang/python311/Makefile b/lang/python311/Makefile
index ab53f485c3be..d5f997e72b3d 100644
--- a/lang/python311/Makefile
+++ b/lang/python311/Makefile
@@ -1,11 +1,15 @@
 PORTNAME=	python
 DISTVERSION=	${PYTHON_DISTVERSION}
+PORTREVISION=	1
 CATEGORIES=	lang python
 MASTER_SITES=	PYTHON/ftp/python/${DISTVERSION:C/[a-z].*//}
 PKGNAMESUFFIX=	${PYTHON_SUFFIX}
 DISTNAME=	Python-${DISTVERSION}
 DIST_SUBDIR=	python
 
+PATCH_SITES=	https://github.com/python/cpython/commit/
+PATCHFILES=	0c33e5baedf18ebcb04bc41dff7cfc614d5ea5fe.patch:-p1
+
 MAINTAINER=	python@FreeBSD.org
 COMMENT=	Interpreted object-oriented programming language
 WWW=		https://www.python.org/
diff --git a/lang/python311/distinfo b/lang/python311/distinfo
index 678ccf903b10..ad8e4eb4d944 100644
--- a/lang/python311/distinfo
+++ b/lang/python311/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1744937483
+TIMESTAMP = 1748493299
 SHA256 (python/Python-3.11.12.tar.xz) = 849da87af4df137710c1796e276a955f7a85c9f971081067c8f565d15c352a09
 SIZE (python/Python-3.11.12.tar.xz) = 20112232
+SHA256 (python/0c33e5baedf18ebcb04bc41dff7cfc614d5ea5fe.patch) = 2b9857d46cb45cbf0db322a7149f940f8aae8265f66f8ff8f5cd88d2af4015c5
+SIZE (python/0c33e5baedf18ebcb04bc41dff7cfc614d5ea5fe.patch) = 23930