python3: 3.11.5 -> 3.12.0

This commit is contained in:
Tim Biermann 2023-11-05 11:23:08 +01:00
parent 4f0898fc7f
commit e9a00f4157
Signed by: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 7935 additions and 3459 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/core.pub
RWRJc1FUaeVeqn/UtoT1DX9pLb73HUqyIl/SFh0PWSac0wIW+DL/0k6jh435cYaEO/DDdsKB6V5qgs5Z7nWCrpk7Yf+0ByY3bgE=
SHA256 (Pkgfile) = b6fe996f081a7e4fe02ec6c1f396ed2f6344aeb85d24e03827df93e08f1b77ef
SHA256 (.footprint) = 6e6ce3a214f0b67d410ce7329db49945e4f4c093325f11cca830506040dbe0e3
SHA256 (Python-3.11.5.tar.xz) = 85cd12e9cf1d6d5a45f17f7afe1cebe7ee628d3282281c492e86adf636defa3f
RWRJc1FUaeVeqsnjY37/HYWrGmxP529MXZSBQoc3owRFoMf37Qoo7NxPerAXdJBflIGEscdXES4Bh5Z4J3zTcF320Ihpjdg0Wwc=
SHA256 (Pkgfile) = 56a481c932f3a345532a584953ad1b66d6c853342dafa5ad14422aa881adb4b4
SHA256 (.footprint) = a693b4a4b037afca895acfb1b0f3c67c118b108b88d2e9194fc68494ce6998c9
SHA256 (Python-3.12.0.tar.xz) = 795c34f44df45a0e9b9710c8c71c15c671871524cd412ca14def212e8ccb155d

View File

@ -4,7 +4,7 @@
# Depends on: bzip2 expat gdbm libffi libnsl libtirpc mpdecimal sqlite3 xz
name=python3
version=3.11.5
version=3.12.0
release=1
source=(https://www.python.org/ftp/python/${version%rc*}/Python-$version.tar.xz)
@ -14,6 +14,7 @@ build() {
sed -i -e "s|-flto |-flto=4 |g" configure configure.ac
sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python3|" Lib/cgi.py
CFLAGS="${CFLAGS/-O2/-O3} -ffat-lto-objects"
sed -i -e "s:-j0:-j$(nproc):" Makefile.pre.in
local _pgojobs=$(nproc)
export PROFILE_TASK="-m test -j${_pgojobs} --pgo-extended -x test_gdb -u-network"
PROFILE_TASK+=" -x test_socket -x test_asyncio -x test_httpservers -x test_logging -x test_multiprocessing_fork -x test_xmlrpc"
@ -22,14 +23,9 @@ build() {
local -x COLUMNS=80
local -x PYTHONDONTWRITEBYTECODE=
# Ensure that we are using the system copy of various libraries
rm -r Modules/expat
rm -r Modules/_ctypes/{darwin,libffi}*
rm -r Modules/_decimal/libmpdec
# Remove tests
rm -r Lib/{test,{ctypes,tkinter,unittest}/test}
rm -r Lib/{{distutils,lib2to3}/tests,idlelib/idle_test}
## Remove tests
#rm -r Lib/{test,{ctypes,tkinter,unittest}/test}
#rm -r Lib/{{distutils,lib2to3}/tests,idlelib/idle_test}
./configure \
--prefix=/usr \