Skip to content

Commit

Permalink
python311 - update from 3.11.5 to 3.11.6
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus-it committed Nov 8, 2023
1 parent 6291d93 commit 46a198a
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 43 deletions.
2 changes: 1 addition & 1 deletion build/python311/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
. ../../lib/build.sh

PROG=Python
VER=3.11.5
VER=3.11.6
PKG=runtime/python-311
MVER=${VER%.*}
SUMMARY="$PROG $MVER"
Expand Down
4 changes: 2 additions & 2 deletions build/python311/patches/mod-posix-sched_priority.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ However, -1 alongside EINVAL represents an error.
diff -wpruN --no-dereference '--exclude=*.orig' a~/Modules/posixmodule.c a/Modules/posixmodule.c
--- a~/Modules/posixmodule.c 1970-01-01 00:00:00
+++ a/Modules/posixmodule.c 1970-01-01 00:00:00
@@ -6867,7 +6867,11 @@ os_sched_get_priority_max_impl(PyObject
@@ -6900,7 +6900,11 @@ os_sched_get_priority_max_impl(PyObject
int max;

max = sched_get_priority_max(policy);
Expand All @@ -19,7 +19,7 @@ diff -wpruN --no-dereference '--exclude=*.orig' a~/Modules/posixmodule.c a/Modul
return posix_error();
return PyLong_FromLong(max);
}
@@ -6886,7 +6890,11 @@ os_sched_get_priority_min_impl(PyObject
@@ -6919,7 +6923,11 @@ os_sched_get_priority_min_impl(PyObject
/*[clinic end generated code: output=7595c1138cc47a6d input=21bc8fa0d70983bf]*/
{
int min = sched_get_priority_min(policy);
Expand Down
1 change: 0 additions & 1 deletion build/python311/patches/series
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ test-zipfile.patch
test-pkgutil.patch
test-metadata.patch
test-tarfile.patch
test-httpservers.patch
revert-makedirs.patch
#
# Do not add ustack.patch to this file, it is used to build the debug
Expand Down
2 changes: 1 addition & 1 deletion build/python311/patches/test-filecomments.patch
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Support comments in the test ignore file (see ../files/test.exclude)
diff -wpruN --no-dereference '--exclude=*.orig' a~/Lib/test/libregrtest/cmdline.py a/Lib/test/libregrtest/cmdline.py
--- a~/Lib/test/libregrtest/cmdline.py 1970-01-01 00:00:00
+++ a/Lib/test/libregrtest/cmdline.py 1970-01-01 00:00:00
@@ -436,6 +436,7 @@ def _parse_args(args, **kwargs):
@@ -438,6 +438,7 @@ def _parse_args(args, **kwargs):
ns.ignore_tests = []
with open(ns.ignore_filename) as fp:
for line in fp:
Expand Down
20 changes: 10 additions & 10 deletions build/python311/patches/test-freeze.patch
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@ This patch:
diff -wpruN --no-dereference '--exclude=*.orig' a~/Tools/freeze/test/freeze.py a/Tools/freeze/test/freeze.py
--- a~/Tools/freeze/test/freeze.py 1970-01-01 00:00:00
+++ a/Tools/freeze/test/freeze.py 1970-01-01 00:00:00
@@ -10,7 +10,7 @@ TESTS_DIR = os.path.dirname(__file__)
@@ -18,7 +18,7 @@ TESTS_DIR = os.path.dirname(__file__)
TOOL_ROOT = os.path.dirname(TESTS_DIR)
SRCDIR = os.path.dirname(os.path.dirname(TOOL_ROOT))
SRCDIR = get_python_source_dir()

-MAKE = shutil.which('make')
+MAKE = shutil.which('gmake')
FREEZE = os.path.join(TOOL_ROOT, 'freeze.py')
OUTDIR = os.path.join(TESTS_DIR, 'outdir')

@@ -93,8 +93,6 @@ def copy_source_tree(newroot, oldroot):
return subdirs_to_skip
@@ -90,8 +90,6 @@ def copy_source_tree(newroot, oldroot):
shutil.rmtree(newroot)

shutil.copytree(oldroot, newroot, ignore=ignore_non_src)
shutil.copytree(oldroot, newroot, ignore=support.copy_python_src_ignore)
- if os.path.exists(os.path.join(newroot, 'Makefile')):
- _run_quiet([MAKE, 'clean'], newroot)


def get_makefile_var(builddir, name):
@@ -155,6 +153,7 @@ def prepare(script=None, outdir=None):
os.path.join(srcdir, 'configure'),
*shlex.split(get_config_var(srcdir, 'CONFIG_ARGS') or ''),
]
##################################
@@ -122,6 +120,7 @@ def prepare(script=None, outdir=None):
print(f'configuring python in {builddir}...')
config_args = shlex.split(sysconfig.get_config_var('CONFIG_ARGS') or '')
cmd = [os.path.join(srcdir, 'configure'), *config_args]
+ cmd = [c for c in cmd if not re.search(r'^--.*dir=', c)]
ensure_opt(cmd, 'cache-file', os.path.join(outdir, 'python-config.cache'))
prefix = os.path.join(outdir, 'python-installation')
Expand Down
16 changes: 0 additions & 16 deletions build/python311/patches/test-httpservers.patch

This file was deleted.

2 changes: 1 addition & 1 deletion build/python311/patches/test-processgroup.patch
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Disable the use of process groups for now.
diff -wpruN --no-dereference '--exclude=*.orig' a~/Lib/test/libregrtest/runtest_mp.py a/Lib/test/libregrtest/runtest_mp.py
--- a~/Lib/test/libregrtest/runtest_mp.py 1970-01-01 00:00:00
+++ a/Lib/test/libregrtest/runtest_mp.py 1970-01-01 00:00:00
@@ -38,7 +38,8 @@ assert MAIN_PROCESS_TIMEOUT >= PROGRESS_
@@ -41,7 +41,8 @@ assert MAIN_PROCESS_TIMEOUT >= PROGRESS_
# Time to wait until a worker completes: should be immediate
JOIN_TIMEOUT = 30.0 # seconds

Expand Down
2 changes: 1 addition & 1 deletion build/python311/patches/test-tarfile.patch
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Convert both timestamps to integer before comparing.
diff -wpruN --no-dereference '--exclude=*.orig' a~/Lib/test/test_tarfile.py a/Lib/test/test_tarfile.py
--- a~/Lib/test/test_tarfile.py 1970-01-01 00:00:00
+++ a/Lib/test/test_tarfile.py 1970-01-01 00:00:00
@@ -3058,7 +3058,7 @@ class NoneInfoExtractTests(ReadTest):
@@ -3066,7 +3066,7 @@ class NoneInfoExtractTests(ReadTest):
if not path.is_symlink():
raise
else:
Expand Down
25 changes: 16 additions & 9 deletions build/python311/testsuite.log
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
410 tests OK.
448 tests OK.

24 tests skipped:
test_dbm_gnu test_epoll test_gdb test_idle test_kqueue
test_launcher test_msilib test_ossaudiodev test_smtpnet
test_socketserver test_startfile test_tcl test_tix test_tk
test_ttk_guionly test_ttk_textonly test_turtle test_urllib2net
test_urllibnet test_winconsoleio test_winreg test_winsound
test_xmlrpc_net test_zipfile64
4 tests failed:
test_compileall test_dtrace test_import test_importlib

Tests result: SUCCESS
26 tests skipped:
test.test_asyncio.test_windows_events
test.test_asyncio.test_windows_utils test_dbm_gnu test_epoll
test_gdb test_idle test_kqueue test_launcher test_msilib
test_ossaudiodev test_smtpnet test_socketserver test_startfile
test_tcl test_tix test_tk test_ttk_guionly test_ttk_textonly
test_turtle test_urllib2net test_urllibnet test_winconsoleio
test_winreg test_winsound test_xmlrpc_net test_zipfile64

Total tests: run=39,619 failures=26 skipped=1,402
Total test files: success=448 failed=4 skipped=26 resource_denied=8
Result: FAILURE
make: *** [Makefile:1814: test] Error 2
2 changes: 1 addition & 1 deletion doc/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
| runtime/perl | 5.36.1 | https://www.cpan.org/src/README.html
| runtime/python-39 | 3.9.18 | https://www.python.org/downloads/source/
| runtime/python-310 | 3.10.13 | https://www.python.org/downloads/source/
| runtime/python-311 | 3.11.5 | https://www.python.org/downloads/source/
| runtime/python-311 | 3.11.6 | https://www.python.org/downloads/source/
| security/sudo | 1.9.14p3 | https://www.sudo.ws/
| service/network/chrony | 4.4 | https://download.tuxfamily.org/chrony/
| service/network/ntpsec | 1.2.2 | https://github.com/ntpsec/ntpsec/tags https://blog.ntpsec.org/
Expand Down

0 comments on commit 46a198a

Please sign in to comment.