Jelajahi Sumber

Ports: Update Python to 3.10.0

Released on 2021-10-04.
https://www.python.org/downloads/release/python-3100/
Linus Groh 3 tahun lalu
induk
melakukan
fb98e12f86

+ 1 - 1
Ports/AvailablePorts.md

@@ -132,7 +132,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
 | [`SDLPoP`](SDLPoP/)                    | Prince of Persia game                                           |                          | https://github.com/NagyD/SDLPoP                                                |
 | [`printf`](printf/)                    | printf (OpenBSD)                                                | 6.6                      | https://github.com/ibara/libpuffy                                              |
 | [`pt2-clone`](pt2-clone/)              | ProTracker 2 clone                                              | 1.28                     | https://github.com/8bitbubsy/pt2-clone                                         |
-| [`python3`](python3/)                  | Python                                                          | 3.10.0rc2                | https://www.python.org/                                                        |
+| [`python3`](python3/)                  | Python                                                          | 3.10.0                   | https://www.python.org/                                                        |
 | [`quake`](quake/)                      | Quake                                                           | 0.65                     | https://github.com/SerenityOS/SerenityQuake                                    |
 | [`quake2`](quake2/)                    | QuakeII                                                         | 0.1                      | https://github.com/SerenityOS/SerenityQuakeII                                  |
 | [`r0`](r0/)                            | r0 (minimalistic commandline hexadecimal editor)                | 0.8                      | https://github.com/radareorg/r0                                                |

+ 2 - 2
Ports/python3/patches/define-have-sigset-t.patch

@@ -1,5 +1,5 @@
---- Python-3.10.0rc2/Modules/posixmodule.h	2021-08-03 19:01:36.368000000 +0100
-+++ Python-3.10.0rc2/Modules/posixmodule.h	2021-08-03 19:01:54.120205211 +0100
+--- Python-3.10.0/Modules/posixmodule.h	2021-08-03 19:01:36.368000000 +0100
++++ Python-3.10.0/Modules/posixmodule.h	2021-08-03 19:01:54.120205211 +0100
 @@ -19,7 +19,8 @@
  #endif /* MS_WINDOWS */
  

+ 2 - 2
Ports/python3/patches/define-py-force-utf8-locale.patch

@@ -1,5 +1,5 @@
---- Python-3.10.0rc2/Include/pyport.h	2021-08-03 18:40:05.313000000 +0100
-+++ Python-3.10.0rc2/Include/pyport.h	2021-08-03 18:40:28.722351782 +0100
+--- Python-3.10.0/Include/pyport.h	2021-08-03 18:40:05.313000000 +0100
++++ Python-3.10.0/Include/pyport.h	2021-08-03 18:40:28.722351782 +0100
 @@ -843,7 +843,7 @@
  #  error "Py_TRACE_REFS ABI is not compatible with release and debug ABI"
  #endif

+ 6 - 6
Ports/python3/patches/fix-autoconf.patch

@@ -1,5 +1,5 @@
---- Python-3.10.0rc2/config.sub	2021-08-03 19:03:07.361000000 +0100
-+++ Python-3.10.0rc2/config.sub	2021-08-03 19:04:06.425786525 +0100
+--- Python-3.10.0/config.sub	2021-08-03 19:03:07.361000000 +0100
++++ Python-3.10.0/config.sub	2021-08-03 19:04:06.425786525 +0100
 @@ -1485,6 +1485,8 @@
  	-oss*)
  		os=-sysv3
@@ -9,8 +9,8 @@
  	-svr4*)
  		os=-sysv4
  		;;
---- Python-3.10.0rc2/configure.ac	2021-08-03 19:04:59.784000000 +0100
-+++ Python-3.10.0rc2/configure.ac	2021-08-03 19:08:42.069896469 +0100
+--- Python-3.10.0/configure.ac	2021-08-03 19:04:59.784000000 +0100
++++ Python-3.10.0/configure.ac	2021-08-03 19:08:42.069896469 +0100
 @@ -391,6 +391,9 @@
         # a lot of different things including 'define_xopen_source'
         # in the case statement below.
@@ -48,8 +48,8 @@
  	# -u libsys_s pulls in all symbols in libsys
  	Darwin/*)
  		LINKFORSHARED="$extra_undefs -framework CoreFoundation"
---- Python-3.10.0rc2/configure	2021-09-07 15:18:28.000000000 +0200
-+++ Python-3.10.0rc2/configure	2021-09-18 17:01:57.104963183 +0200
+--- Python-3.10.0/configure	2021-09-07 15:18:28.000000000 +0200
++++ Python-3.10.0/configure	2021-09-18 17:01:57.104963183 +0200
 @@ -3325,6 +3325,9 @@
         # a lot of different things including 'define_xopen_source'
         # in the case statement below.

+ 3 - 3
Ports/python3/patches/include-sys-uio.patch

@@ -1,6 +1,6 @@
---- Python-3.10.0rc2/Modules/socketmodule.c	2021-09-09 01:14:41.120232921 +0800
-+++ Python-3.10.0rc2/Modules/socketmodule.c	2021-08-03 03:53:59.000000000 +0800
-@@ -171,7 +171,7 @@
+--- Python-3.10.0/Modules/socketmodule.c	2021-09-09 01:14:41.120232921 +0800
++++ Python-3.10.0/Modules/socketmodule.c	2021-08-03 03:53:59.000000000 +0800
+@@ -168,7 +168,7 @@
  # undef HAVE_GETHOSTBYNAME_R_6_ARG
  #endif
  

+ 2 - 2
Ports/python3/patches/tweak-setup-py.patch

@@ -1,5 +1,5 @@
---- Python-3.10.0rc2/setup.py	2021-09-18 16:58:59.857000000 +0200
-+++ Python-3.10.0rc2/setup.py	2021-09-18 16:59:10.448465217 +0200
+--- Python-3.10.0/setup.py	2021-09-18 16:58:59.857000000 +0200
++++ Python-3.10.0/setup.py	2021-09-18 16:59:10.448465217 +0200
 @@ -832,8 +832,8 @@
              add_dir_to_list(self.compiler.include_dirs,
                              sysconfig.get_config_var("INCLUDEDIR"))

+ 2 - 2
Ports/python3/version.sh

@@ -1,5 +1,5 @@
-PYTHON_VERSION="3.10.0rc2"
+PYTHON_VERSION="3.10.0"
 PYTHON_VERSION_WITHOUT_SUFFIX="3.10.0"  # PYTHON_VERSION but without the a1/b1/rc1/... suffix
 PYTHON_ARCHIVE="Python-${PYTHON_VERSION}.tar.xz"
 PYTHON_ARCHIVE_URL="https://www.python.org/ftp/python/${PYTHON_VERSION_WITHOUT_SUFFIX}/${PYTHON_ARCHIVE}"
-PYTHON_ARCHIVE_SHA256SUM="e75b56088548b7b9ad1f2571e6f5a2315e4808cb6b5fbe8288502afc802b2f24"
+PYTHON_ARCHIVE_SHA256SUM="5a99f8e7a6a11a7b98b4e75e0d1303d3832cada5534068f69c7b6222a7b1b002"