Bug 256150 - lang/python310: Interpreted object-oriented programming language
Summary: lang/python310: Interpreted object-oriented programming language
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-python (Nobody)
URL: https://reviews.freebsd.org/D30475
Keywords: feature, needs-qa
Depends on:
Blocks:
 
Reported: 2021-05-25 14:26 UTC by Dmitry Marakasov
Modified: 2021-06-06 01:18 UTC (History)
2 users (show)

See Also:
koobs: maintainer-feedback? (python)


Attachments
Patch (512.72 KB, patch)
2021-05-25 14:26 UTC, Dmitry Marakasov
no flags Details | Diff
Patch (1.28 KB, patch)
2021-05-26 16:20 UTC, Dmitry Marakasov
no flags Details | Diff
Patch (512.72 KB, patch)
2021-05-26 16:21 UTC, Dmitry Marakasov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Marakasov freebsd_committer 2021-05-25 14:26:32 UTC
Created attachment 225249 [details]
Patch

Add lang/python310 at version 3.10.0b1

Changes to python39 are minimal (plus some removed patches which were already upstreamed):

--- python39/Makefile	2021-05-25 16:55:44.272237000 +0300
+++ python310/Makefile	2021-05-25 16:58:41.519315000 +0300
@@ -3,13 +3,13 @@
 PORTNAME=	python
 DISTVERSION=	${PYTHON_DISTVERSION}
 CATEGORIES=	lang python
-MASTER_SITES=	PYTHON/ftp/python/${DISTVERSION}
+MASTER_SITES=	PYTHON/ftp/python/3.10.0
 PKGNAMESUFFIX=	${PYTHON_SUFFIX}
 DISTNAME=	Python-${DISTVERSION}
 DIST_SUBDIR=	python
 
 MAINTAINER=	python@FreeBSD.org
-COMMENT=	Interpreted object-oriented programming language
+COMMENT=	Interpreted object-oriented programming language (beta version)
 
 LICENSE=	PSFL
 
@@ -46,7 +46,7 @@
 PLIST_SUB=		ABI=${ABIFLAGS} \
 			XY=${PYTHON_SUFFIX} \
 			XYDOT=${PYTHON_VER} \
-			XYZDOT=${DISTVERSION} \
+			XYZDOT=${DISTVERSION:C/[a-z].*//} \
 			OSMAJOR=${OSVERSION:C/([0-9]*)[0-9]{5}/\1/}		# For plat-freebsd* in pkg-plist. https://bugs.python.org/issue19554
 
 OPTIONS_DEFINE=		DEBUG IPV6 LIBFFI LIBMPDEC NLS PYMALLOC
@@ -116,6 +116,12 @@
 DISABLED_EXTENSIONS+=	nis
 .else
 PLIST_SUB+=	NO_NIS=""
+.endif
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000
+PLIST_SUB+=	NEWOPENSSL="@comment "
+.else
+PLIST_SUB+=	NEWOPENSSL=""
 .endif
 
 post-patch:
diff -ruN python39/Makefile.version python310/Makefile.version
--- python39/Makefile.version	2021-05-25 16:55:44.272304000 +0300
+++ python310/Makefile.version	2021-05-25 16:58:40.856247000 +0300
@@ -2,4 +2,4 @@
 
 # Do not forget to update python documentation (lang/python-doc-*)
 # Run "make -C lang/python-doc-html makesum"
-PYTHON_DISTVERSION=	3.9.5
+PYTHON_DISTVERSION=	3.10.0b1
Comment 1 Dmitry Marakasov freebsd_committer 2021-05-26 16:20:09 UTC
Created attachment 225282 [details]
Patch
Comment 2 Dmitry Marakasov freebsd_committer 2021-05-26 16:21:01 UTC
Created attachment 225285 [details]
Patch