head 1.4; access; symbols pkgsrc-2026Q1:1.4.0.10 pkgsrc-2026Q1-base:1.4 pkgsrc-2025Q4:1.4.0.8 pkgsrc-2025Q4-base:1.4 pkgsrc-2025Q3:1.4.0.6 pkgsrc-2025Q3-base:1.4 pkgsrc-2025Q2:1.4.0.4 pkgsrc-2025Q2-base:1.4 pkgsrc-2025Q1:1.4.0.2 pkgsrc-2025Q1-base:1.4 pkgsrc-2024Q4:1.3.0.2 pkgsrc-2024Q4-base:1.3 pkgsrc-2024Q3:1.2.0.8 pkgsrc-2024Q3-base:1.2 pkgsrc-2024Q2:1.2.0.6 pkgsrc-2024Q2-base:1.2 pkgsrc-2024Q1:1.2.0.4 pkgsrc-2024Q1-base:1.2 pkgsrc-2023Q4:1.2.0.2 pkgsrc-2023Q4-base:1.2; locks; strict; comment @# @; 1.4 date 2024.12.24.10.13.40; author wiz; state Exp; branches; next 1.3; commitid SuwuFEJrSOc0VJCF; 1.3 date 2024.12.05.07.52.32; author adam; state Exp; branches 1.3.2.1; next 1.2; commitid AkFWgaAky6FbKhAF; 1.2 date 2023.12.08.09.22.42; author adam; state Exp; branches; next 1.1; commitid EpMgQLfYFjcpUDPE; 1.1 date 2023.10.02.20.07.15; author adam; state Exp; branches; next ; commitid 7rrTGLnCkOmhD5HE; 1.3.2.1 date 2025.01.02.12.41.10; author bsiegert; state Exp; branches; next ; commitid lY4ToAMsFUZLrUDF; desc @@ 1.4 log @python312: fix float detection on x86 Document patch a bit. Bump PKGREVISION. @ text @$NetBSD: patch-configure,v 1.3 2024/12/05 07:52:32 adam Exp $ Chunks 1, 4, 5: Changes for consistency across pkgsrc platforms. Chunk 1: Simplify _sysconfigdata to include only platform name. Chunk 2: Disable barrier to cross-compilation. Chunk 3: should be handled in the Makefile? Chunk 6: ? --- configure.orig 2024-12-03 18:42:41.000000000 +0000 +++ configure @@@@ -3689,7 +3689,7 @@@@ fi fi ac_cv_prog_PYTHON_FOR_REGEN=$with_build_python PYTHON_FOR_FREEZE="$with_build_python" - PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '$with_build_python + PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(MACHDEP) '$with_build_python { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_build_python" >&5 printf "%s\n" "$with_build_python" >&6; } @@@@ -4321,7 +4321,7 @@@@ fi printf "%s\n" "\"$MACHDEP\"" >&6; } -if test "$cross_compiling" = yes; then +if false && test "$cross_compiling" = yes; then case "$host" in *-*-linux*) case "$host_cpu" in @@@@ -9500,7 +9500,7 @@@@ fi case $GCC in yes) - CFLAGS_NODIST="$CFLAGS_NODIST -std=c11" + CFLAGS_NODIST="$CFLAGS_NODIST -std=gnu11" @@@@ -24399,7 +24399,7 @@@@ printf "%s\n" "#define ALT_SOABI \"${ALT fi -EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX} +EXT_SUFFIX=${SHLIB_SUFFIX} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 printf %s "checking LDVERSION... " >&6; } @@@@ -24453,11 +24453,7 @@@@ fi -if test x$PLATFORM_TRIPLET = x; then - LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}" -else - LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" -fi +LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}" # Check for --with-wheel-pkg-dir=PATH @@@@ -26112,7 +26108,7 @@@@ fi fi CURSES_CFLAGS=$(echo $CURSES_CFLAGS | sed 's/-D_XOPEN_SOURCE=600//g') -if test "$have_curses" != no -a "$ac_sys_system" = "Darwin"; then +if test "$have_curses" = no -a "$ac_sys_system" = "Darwin"; then as_fn_append CURSES_CFLAGS " -D_XOPEN_SOURCE_EXTENDED=1" printf "%s\n" "#define HAVE_NCURSESW 1" >>confdefs.h @ 1.3 log @python312 py312-html-docs: updated to 3.12.8 Python 3.12.8 macOS gh-124448: Update bundled Tcl/Tk in macOS installer to 8.6.15. Windows gh-126911: Update credits command output. gh-125315: Avoid crashing in platform due to slow WMI calls on some Windows machines. gh-125550: Enable the Python Launcher for Windows to detect Python 3.14 installs from the Windows Store. gh-124448: Updated bundled Tcl/Tk to 8.6.15. Tools/Demos gh-126807: Fix extraction warnings in pygettext.py caused by mistaking function definitions for function calls. Tests gh-126909: Fix test_os extended attribute tests to work on filesystems with 1 KiB xattr size limit. gh-125041: Re-enable skipped tests for zlib on the s390x architecture: only skip checks of the compressed bytes, which can be different between zlib’s software implementation and the hardware-accelerated implementation. gh-124295: Add translation tests to the argparse module. Security gh-126623: Upgrade libexpat to 2.6.4 Library gh-127303: Publicly expose EXACT_TOKEN_TYPES in token.__all__. gh-123967: Fix faulthandler for trampoline frames. If the top-most frame is a trampoline frame, skip it. Patch by Victor Stinner. gh-127182: Fix io.StringIO.__setstate__() crash, when None was passed as the first value. gh-127217: Fix urllib.request.pathname2url() for paths starting with multiple slashes on Posix. gh-127035: Fix shutil.which on Windows. Now it looks at direct match if and only if the command ends with a PATHEXT extension or X_OK is not in mode. Support extensionless files if “.” is in PATHEXT. Support PATHEXT extensions that end with a dot. gh-127078: Fix issue where urllib.request.url2pathname() failed to discard an extra slash before a UNC drive in the URL path on Windows. gh-126766: Fix issue where urllib.request.url2pathname() failed to discard any ‘localhost’ authority present in the URL. gh-126997: Fix support of STRING and GLOBAL opcodes with non-ASCII arguments in pickletools. pickletools.dis() now outputs non-ASCII bytes in STRING, BINSTRING and SHORT_BINSTRING arguments as escaped (\xXX). gh-126618: Fix the representation of itertools.count objects when the count value is sys.maxsize. gh-85168: Fix issue where urllib.request.url2pathname() and pathname2url() always used UTF-8 when quoting and unquoting file URIs. They now use the filesystem encoding and error handler. gh-67877: Fix memory leaks when regular expression matching terminates abruptly, either because of a signal or because memory allocation fails. gh-126789: Fixed the values of sysconfig.get_config_vars(), sysconfig.get_paths(), and their siblings when the site initialization happens after sysconfig has built a cache for sysconfig.get_config_vars(). gh-126188: Update bundled pip to 24.3.1 gh-126766: Fix issue where urllib.request.url2pathname() failed to discard two leading slashes introducing an empty authority section. gh-126727: locale.nl_langinfo(locale.ERA) now returns multiple era description segments separated by semicolons. Previously it only returned the first segment on platforms with Glibc. gh-126699: Allow collections.abc.AsyncIterator to be a base for Protocols. gh-104745: Limit starting a patcher (from unittest.mock.patch() or unittest.mock.patch.object()) more than once without stopping it gh-126595: Fix a crash when instantiating itertools.count with an initial count of sys.maxsize on debug builds. Patch by Bénédikt Tran. gh-120423: Fix issue where urllib.request.pathname2url() mishandled Windows paths with embedded forward slashes. gh-126565: Improve performances of zipfile.Path.open() for non-reading modes. gh-126505: Fix bugs in compiling case-insensitive regular expressions with character classes containing non-BMP characters: upper-case non-BMP character did was ignored and the ASCII flag was ignored when matching a character range whose upper bound is beyond the BMP region. gh-117378: Fixed the multiprocessing "forkserver" start method forkserver process to correctly inherit the parent’s sys.path during the importing of multiprocessing.set_forkserver_preload() modules in the same manner as sys.path is configured in workers before executing work items. This bug caused some forkserver module preloading to silently fail to preload. This manifested as a performance degration in child processes when the sys.path was required due to additional repeated work in every worker. It could also have a side effect of "" remaining in sys.path during forkserver preload imports instead of the absolute path from os.getcwd() at multiprocessing import time used in the worker sys.path. The sys.path differences between phases in the child process could potentially have caused preload to import incorrect things from the wrong location. We are unaware of that actually having happened in practice. gh-125679: The multiprocessing.Lock and multiprocessing.RLock repr values no longer say “unknown” on macOS. gh-126476: Raise calendar.IllegalMonthError (now a subclass of IndexError) for calendar.month() when the input month is not correct. gh-126489: The Python implementation of pickle no longer calls pickle.Pickler.persistent_id() for the result of persistent_id(). gh-126303: Fix pickling and copying of os.sched_param objects. gh-126138: Fix a use-after-free crash on asyncio.Task objects whose underlying coroutine yields an object that implements an evil __getattribute__(). Patch by Nico Posada. gh-126220: Fix crash in cProfile.Profile and _lsprof.Profiler when their callbacks were directly called with 0 arguments. gh-126212: Fix issue where urllib.request.pathname2url() and url2pathname() removed slashes from Windows DOS drive paths and URLs. gh-126205: Fix issue where urllib.request.pathname2url() generated URLs beginning with four slashes (rather than two) when given a Windows UNC path. gh-126105: Fix a crash in ast when the ast.AST._fields attribute is deleted. gh-126106: Fixes a possible NULL pointer dereference in ssl. gh-126080: Fix a use-after-free crash on asyncio.Task objects for which the underlying event loop implements an evil __getattribute__(). Reported by Nico-Posada. Patch by Bénédikt Tran. gh-126083: Fixed a reference leak in asyncio.Task objects when reinitializing the same object with a non-None context. Patch by Nico Posada. gh-125984: Fix use-after-free crashes on asyncio.Future objects for which the underlying event loop implements an evil __getattribute__(). Reported by Nico-Posada. Patch by Bénédikt Tran. gh-125969: Fix an out-of-bounds crash when an evil asyncio.loop.call_soon() mutates the length of the internal callbacks list. Patch by Bénédikt Tran. gh-125966: Fix a use-after-free crash in asyncio.Future.remove_done_callback(). Patch by Bénédikt Tran. gh-125789: Fix possible crash when mutating list of callbacks returned by asyncio.Future._callbacks. It now always returns a new copy in C implementation _asyncio. Patch by Kumar Aditya. gh-124452: Fix an issue in email.policy.EmailPolicy.header_source_parse() and email.policy.Compat32.header_source_parse() that introduced spurious leading whitespaces into header values when the header includes a newline character after the header name delimiter (:) and before the value. gh-125884: Fixed the bug for pdb where it can’t set breakpoints on functions with certain annotations. gh-125355: Fix several bugs in argparse.ArgumentParser.parse_intermixed_args(). The parser no longer changes temporarily during parsing. Default values are not processed twice. Required mutually exclusive groups containing positional arguments are now supported. The missing arguments report now includes the names of all required optional and positional arguments. Unknown options can be intermixed with positional arguments in parse_known_intermixed_args(). gh-125682: Reject non-ASCII digits in the Python implementation of json.loads() conforming to the JSON specification. gh-125660: Reject invalid unicode escapes for Python implementation of json.loads(). gh-125259: Fix the notes removal logic for errors thrown in enum initialization. gh-125519: Improve traceback if importlib.reload() is called with an object that is not a module. Patch by Alex Waygood. gh-125451: Fix deadlock when concurrent.futures.ProcessPoolExecutor shuts down concurrently with an error when feeding a job to a worker process. gh-125422: Fixed the bug where pdb and bdb can step into the bottom caller frame. gh-100141: Fixed the bug where pdb will be stuck in an infinite loop when debugging an empty file. gh-53203: Fix time.strptime() for %c, %x and %X formats in many locales that use non-ASCII digits, like Persian, Burmese, Odia and Shan. gh-125254: Fix a bug where ArgumentError includes the incorrect ambiguous option in argparse. gh-61011: Fix inheritance of nested mutually exclusive groups from parent parser in argparse.ArgumentParser. Previously, all nested mutually exclusive groups lost their connection to the group containing them and were displayed as belonging directly to the parser. gh-52551: Fix encoding issues in time.strftime(), the strftime() method of the datetime classes datetime, date and time and formatting of these classes. Characters not encodable in the current locale are now acceptable in the format string. Surrogate pairs and sequence of surrogatescape-encoded bytes are no longer recombinated. Embedded null character no longer terminates the format string. gh-125118: Don’t copy arbitrary values to _Bool in the struct module. gh-125069: Fix an issue where providing a pathlib.PurePath object as an initializer argument to a second PurePath object with a different flavour resulted in arguments to the former object’s initializer being joined by the latter object’s flavour. gh-124969: Fix locale.nl_langinfo(locale.ALT_DIGITS) on platforms with glibc. Now it returns a string consisting of up to 100 semicolon-separated symbols (an empty string in most locales) on all Posix platforms. Previously it only returned the first symbol or an empty string. gh-124958: Fix refcycles in exceptions raised from asyncio.TaskGroup and the python implementation of asyncio.Future gh-53203: Fix time.strptime() for %c and %x formats in many locales: Arabic, Bislama, Breton, Bodo, Kashubian, Chuvash, Estonian, French, Irish, Ge’ez, Gurajati, Manx Gaelic, Hebrew, Hindi, Chhattisgarhi, Haitian Kreyol, Japanese, Kannada, Korean, Marathi, Malay, Norwegian, Nynorsk, Punjabi, Rajasthani, Tok Pisin, Yoruba, Yue Chinese, Yau/Nungon and Chinese. gh-124917: Allow calling os.path.exists() and os.path.lexists() with keyword arguments on Windows. Fixes a regression in 3.12.4. gh-124653: Fix detection of the minimal Queue API needed by the logging module. Patch by Bénédikt Tran. gh-124858: Fix reference cycles left in tracebacks in asyncio.open_connection() when used with happy_eyeballs_delay gh-124390: Fixed AssertionError when using asyncio.staggered.staggered_race() with asyncio.eager_task_factory. gh-124651: Properly quote template strings in venv activation scripts. gh-124594: All asyncio REPL prompts run in the same context. Contributed by Bartosz Sławecki. gh-120378: Fix a crash related to an integer overflow in curses.resizeterm() and curses.resize_term(). gh-123884: Fixed bug in itertools.tee() handling of other tee inputs (a tee in a tee). The output now has the promised n independent new iterators. Formerly, the first iterator was identical (not independent) to the input iterator. This would sometimes give surprising results. gh-123978: Remove broken time.thread_time() and time.thread_time_ns() on NetBSD. gh-124008: Fix possible crash (in debug build), incorrect output or returning incorrect value from raw binary write() when writing to console on Windows. gh-123370: Fix the canvas not clearing after running turtledemo clock. gh-120754: Update unbounded read calls in zipfile to specify an explicit size putting a limit on how much data they may read. This also updates handling around ZIP max comment size to match the standard instead of reading comments that are one byte too long. gh-70764: Fixed an issue where inspect.getclosurevars() would incorrectly classify an attribute name as a global variable when the name exists both as an attribute name and a global variable. gh-119826: Always return an absolute path for os.path.abspath() on Windows. gh-117766: Always use str() to print choices in argparse. gh-101955: Fix SystemError when match regular expression pattern containing some combination of possessive quantifier, alternative and capture group. gh-88110: Fixed multiprocessing.Process reporting a .exitcode of 1 even on success when using the "fork" start method while using a concurrent.futures.ThreadPoolExecutor. gh-71936: Fix a race condition in multiprocessing.pool.Pool. bpo-46128: Strip unittest.IsolatedAsyncioTestCase stack frames from reported stacktraces. bpo-14074: Fix argparse metavar processing to allow positional arguments to have a tuple metavar. IDLE gh-122392: Increase currently inadequate vertical spacing for the IDLE browsers (path, module, and stack) on high-resolution monitors. Documentation gh-125277: Require Sphinx 7.2.6 or later to build the Python documentation. Patch by Adam Turner. gh-125018: The importlib.metadata documentation now includes semantic cross-reference targets for the significant documented APIs. This means intersphinx references like importlib.metadata.version() will now work as expected. gh-121277: Writers of CPython’s documentation can now use next as the version for the versionchanged, versionadded, deprecated directives. gh-60712: Include the object type in the lists of documented types. Change by Furkan Onder and Martin Panter. Core and Builtins gh-113841: Fix possible undefined behavior division by zero in complex’s _Py_c_pow(). gh-126341: Now ValueError is raised instead of SystemError when trying to iterate over a released memoryview object. gh-126066: Fix importlib to not write an incomplete .pyc files when a ulimit or some other operating system mechanism is preventing the write to go through fully. gh-126139: Provide better error location when attempting to use a future statement with an unknown future feature. gh-125008: Fix tokenize.untokenize() producing invalid syntax for double braces preceded by certain escape characters. gh-123378: Fix a crash in the __str__() method of UnicodeError objects when the UnicodeError.start and UnicodeError.end values are invalid or out-of-range. Patch by Bénédikt Tran. gh-116510: Fix a crash caused by immortal interned strings being shared between sub-interpreters that use basic single-phase init. In that case, the string can be used by an interpreter that outlives the interpreter that created and interned it. For interpreters that share obmalloc state, also share the interned dict with the main interpreter. gh-118950: Fix bug where SSLProtocol.connection_lost wasn’t getting called when OSError was thrown on writing to socket. gh-113570: Fixed a bug in reprlib.repr where it incorrectly called the repr method on shadowed Python built-in types. gh-109746: If _thread.start_new_thread() fails to start a new thread, it deletes its state from interpreter and thus avoids its repeated cleanup on finalization. C API gh-113601: Removed debug build assertions related to interning strings, which were falsely triggered by stable ABI extensions. Build gh-89640: Hard-code float word ordering as little endian on WASM. gh-89640: Improve detection of float word ordering on Linux when link-time optimizations are enabled. @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.2 2023/12/08 09:22:42 adam Exp $ d3 5 a7 4 Fix linking on Darwin; don't use -stack_size. Changes for consistency across pkgsrc platforms. Simplify _sysconfigdata to include only platform name. Disable barrier to cross-compilation. a37 13 @@@@ -23541,10 +23541,10 @@@@ if ac_fn_c_try_link "$LINENO" then : -if grep noonsees conftest$EXEEXT >/dev/null ; then +if strings -a conftest.$ac_objext | grep noonsees >/dev/null ; then ax_cv_c_float_words_bigendian=yes fi -if grep seesnoon conftest$EXEEXT >/dev/null ; then +if strings -a conftest.$ac_objext | grep seesnoon >/dev/null ; then if test "$ax_cv_c_float_words_bigendian" = unknown; then ax_cv_c_float_words_bigendian=no else @ 1.3.2.1 log @Pullup ticket #6923 - requested by wiz lang/python312: build fix Revisions pulled up: - lang/python312/Makefile 1.24 - lang/python312/distinfo 1.12 - lang/python312/patches/patch-configure 1.4 --- Module Name: pkgsrc Committed By: wiz Date: Tue Dec 24 10:13:41 UTC 2024 Modified Files: pkgsrc/lang/python312: Makefile distinfo pkgsrc/lang/python312/patches: patch-configure Log Message: python312: fix float detection on x86 Document patch a bit. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ d3 4 a6 5 Chunks 1, 4, 5: Changes for consistency across pkgsrc platforms. Chunk 1: Simplify _sysconfigdata to include only platform name. Chunk 2: Disable barrier to cross-compilation. Chunk 3: should be handled in the Makefile? Chunk 6: ? d37 13 @ 1.2 log @python312 py312-html-docs: updated to 3.12.1 Python 3.12.1 final Core and Builtins gh-112125: Fix None.__ne__(None) returning NotImplemented instead of False gh-112625: Fixes a bug where a bytearray object could be cleared while iterating over an argument in the bytearray.join() method that could result in reading memory after it was freed. gh-105967: Workaround a bug in Apple’s macOS platform zlib library where zlib.crc32() and binascii.crc32() could produce incorrect results on multi-gigabyte inputs. Including when using zipfile on zips containing large data. gh-112356: Stopped erroneously deleting a LOAD_NULL bytecode instruction when optimized twice. gh-111058: Change coro.cr_frame/gen.gi_frame to return None after the coroutine/generator has been closed. This fixes a bug where getcoroutinestate() and getgeneratorstate() return the wrong state for a closed coroutine/generator. gh-112388: Fix an error that was causing the parser to try to overwrite tokenizer errors. Patch by pablo Galindo gh-112387: Fix error positions for decoded strings with backwards tokenize errors. Patch by Pablo Galindo gh-112367: Avoid undefined behaviour when using the perf trampolines by not freeing the code arenas until shutdown. Patch by Pablo Galindo gh-112243: Don’t include comments in f-string debug expressions. Patch by Pablo Galindo gh-112266: Change docstrings of __dict__ and __weakref__. gh-111654: Fix runtime crash when some error happens in opcode LOAD_FROM_DICT_OR_DEREF. gh-109181: Speed up Traceback object creation by lazily compute the line number. Patch by Pablo Galindo gh-102388: Fix a bug where iso2022_jp_3 and iso2022_jp_2004 codecs read out of bounds gh-111366: Fix an issue in the codeop that was causing SyntaxError exceptions raised in the presence of invalid syntax to not contain precise error messages. Patch by Pablo Galindo gh-111380: Fix a bug that was causing SyntaxWarning to appear twice when parsing if invalid syntax is encountered later. Patch by Pablo galindo gh-94438: Fix a regression that prevented jumping across is None and is not None when debugging. Patch by Savannah Ostrowski. gh-110938: Fix error messages for indented blocks with functions and classes with generic type parameters. Patch by Pablo Galindo gh-109894: Fixed crash due to improperly initialized static MemoryError in subinterpreter. gh-110782: Fix crash when typing.TypeVar is constructed with a keyword argument. Patch by Jelle Zijlstra. gh-110696: Fix incorrect error message for invalid argument unpacking. Patch by Pablo Galindo gh-110543: Fix regression in Python 3.12 where types.CodeType.replace() would produce a broken code object if called on a module or class code object that contains a comprehension. Patch by Jelle Zijlstra. gh-110514: Add PY_THROW to sys.setprofile() events gh-110455: Guard assert(tstate->thread_id > 0) with #ifndef HAVE_PTHREAD_STUBS. This allows for for pydebug builds to work under WASI which (currently) lacks thread support. gh-110259: Correctly identify the format spec in f-strings (with single or triple quotes) that have multiple lines in the expression part and include a formatting spec. Patch by Pablo Galindo gh-110237: Fix missing error checks for calls to PyList_Append in _PyEval_MatchClass. gh-109889: Fix the compiler’s redundant NOP detection algorithm to skip over NOPs with no line number when looking for the next instruction’s lineno. gh-109853: sys.path[0] is now set correctly for subinterpreters. gh-105716: Subinterpreters now correctly handle the case where they have threads running in the background. Before, such threads would interfere with cleaning up and destroying them, as well as prevent running another script. gh-109793: The main thread no longer exits prematurely when a subinterpreter is cleaned up during runtime finalization. The bug was a problem particularly because, when triggered, the Python process would always return with a 0 exitcode, even if it failed. gh-109596: Fix some tokens in the grammar that were incorrectly marked as soft keywords. Also fix some repeated rule names and ensure that repeated rules are not allowed. Patch by Pablo Galindo gh-109351: Fix crash when compiling an invalid AST involving a named (walrus) expression. gh-109216: Fix possible memory leak in BUILD_MAP. gh-109207: Fix a SystemError in __repr__ of symtable entry object. gh-109179: Fix bug where the C traceback display drops notes from SyntaxError. gh-109052: Use the base opcode when comparing code objects to avoid interference from instrumentation gh-88943: Improve syntax error for non-ASCII character that follows a numerical literal. It now points on the invalid non-ASCII character, not on the valid numerical literal. gh-106931: Statically allocated string objects are now interned globally instead of per-interpreter. This fixes a situation where such a string would only be interned in a single interpreter. Normal string objects are unaffected. Library gh-79325: Fix an infinite recursion error in tempfile.TemporaryDirectory() cleanup on Windows. gh-112645: Remove deprecation error on passing onerror to shutil.rmtree(). gh-112618: Fix a caching bug relating to typing.Annotated. Annotated[str, True] is no longer identical to Annotated[str, 1]. gh-112334: Fixed a performance regression in 3.12’s subprocess on Linux where it would no longer use the fast-path vfork() system call when it should have due to a logic bug, instead always falling back to the safe but slower fork(). Also fixed a related 3.12 security regression: If a value of extra_groups=[] was passed to subprocess.Popen or related APIs, the underlying setgroups(0, NULL) system call to clear the groups list would not be made in the child process prior to exec(). This has been assigned CVE-2023-6507. This was identified via code inspection in the process of fixing the first bug. gh-110190: Fix ctypes structs with array on Arm platform by setting MAX_STRUCT_SIZE to 32 in stgdict. Patch by Diego Russo. gh-112578: Fix a spurious RuntimeWarning when executing the zipfile module. gh-112509: Fix edge cases that could cause a key to be present in both the __required_keys__ and __optional_keys__ attributes of a typing.TypedDict. Patch by Jelle Zijlstra. gh-112414: Fix regression in Python 3.12 where calling repr() on a module that had been imported using a custom loader could fail with AttributeError. Patch by Alex Waygood. gh-112358: Revert change to struct.Struct initialization that broke some cases of subclassing. gh-94722: Fix bug where comparison between instances of DocTest fails if one of them has None as its lineno. gh-112105: Make readline.set_completer_delims() work with libedit gh-111942: Fix SystemError in the TextIOWrapper constructor with non-encodable “errors” argument in non-debug mode. gh-109538: Issue warning message instead of having RuntimeError be displayed when event loop has already been closed at StreamWriter.__del__(). gh-111942: Fix crashes in io.TextIOWrapper.reconfigure() when pass invalid arguments, e.g. non-string encoding. gh-111460: curses: restore wide character support (including curses.unget_wch() and get_wch()) on macOS, which was unavailable due to a regression in Python 3.12. gh-103791: contextlib.suppress now supports suppressing exceptions raised as part of a BaseExceptionGroup, in addition to the recent support for ExceptionGroup. gh-111804: Remove posix.fallocate() under WASI as the underlying posix_fallocate() is not available in WASI preview2. gh-111841: Fix truncating arguments on an embedded null character in os.putenv() and os.unsetenv() on Windows. gh-111541: Fix doctest for SyntaxError not-builtin subclasses. gh-110894: Call loop exception handler for exceptions in client_connected_cb of asyncio.start_server() so that applications can handle it. Patch by Kumar Aditya. gh-111531: Fix reference leaks in bind_class() and bind_all() methods of tkinter widgets. gh-111356: Added io.text_encoding(), io.DEFAULT_BUFFER_SIZE, and io.IncrementalNewlineDecoder to io.__all__. gh-111342: Fixed typo in math.sumprod(). gh-68166: Remove mention of not supported “vsapi” element type in tkinter.ttk.Style.element_create(). Add tests for element_create() and other ttk.Style methods. Add examples for element_create() in the documentation. gh-75666: Fix the behavior of tkinter widget’s unbind() method with two arguments. Previously, widget.unbind(sequence, funcid) destroyed the current binding for sequence, leaving sequence unbound, and deleted the funcid command. Now it removes only funcid from the binding for sequence, keeping other commands, and deletes the funcid command. It leaves sequence unbound only if funcid was the last bound command. gh-79033: Another attempt at fixing asyncio.Server.wait_closed(). It now blocks until both conditions are true: the server is closed, and there are no more active connections. (This means that in some cases where in 3.12.0 this function would incorrectly have returned immediately, it will now block; in particular, when there are no active connections but the server hasn’t been closed yet.) gh-111295: Fix time not checking for errors when initializing. gh-111253: Add error checking during _socket module init. gh-111251: Fix _blake2 not checking for errors when initializing. gh-111174: Fix crash in io.BytesIO.getbuffer() called repeatedly for empty BytesIO. gh-111187: Postpone removal version for locale.getdefaultlocale() to Python 3.15. gh-111159: Fix doctest output comparison for exceptions with notes. gh-110910: Fix invalid state handling in asyncio.TaskGroup and asyncio.Timeout. They now raise proper RuntimeError if they are improperly used and are left in consistent state after this. gh-111092: Make turtledemo run without default root enabled. gh-110488: Fix a couple of issues in pathlib.PurePath.with_name(): a single dot was incorrectly considered a valid name, and in PureWindowsPath, a name with an NTFS alternate data stream, like a:b, was incorrectly considered invalid. gh-110392: Fix tty.setraw() and tty.setcbreak(): previously they returned partially modified list of the original tty attributes. tty.cfmakeraw() and tty.cfmakecbreak() now make a copy of the list of special characters before modifying it. gh-110590: Fix a bug in _sre.compile() where TypeError would be overwritten by OverflowError when the code argument was a list of non-ints. gh-65052: Prevent pdb from crashing when trying to display undisplayable objects gh-110519: Deprecation warning about non-integer number in gettext now alwais refers to the line in the user code where gettext function or method is used. Previously it could refer to a line in gettext code. gh-110395: Ensure that select.kqueue() objects correctly appear as closed in forked children, to prevent operations on an invalid file descriptor. gh-110378: contextmanager() and asynccontextmanager() context managers now close an invalid underlying generator object that yields more then one value. gh-110365: Fix termios.tcsetattr() bug that was overwritting existing errors during parsing integers from term list. gh-109653: Fix a Python 3.12 regression in the import time of random. Patch by Alex Waygood. gh-110196: Add __reduce__ method to IPv6Address in order to keep scope_id gh-110036: On Windows, multiprocessing Popen.terminate() now catchs PermissionError and get the process exit code. If the process is still running, raise again the PermissionError. Otherwise, the process terminated as expected: store its exit code. Patch by Victor Stinner. gh-110038: Fixed an issue that caused KqueueSelector.select() to not return all the ready events in some cases when a file descriptor is registered for both read and write. gh-109631: re functions such as re.findall(), re.split(), re.search() and re.sub() which perform short repeated matches can now be interrupted by user. gh-109747: Improve errors for unsupported look-behind patterns. Now re.error is raised instead of OverflowError or RuntimeError for too large width of look-behind pattern. gh-109818: Fix reprlib.recursive_repr() not copying __type_params__ from decorated function. gh-109047: concurrent.futures: The executor manager thread now catches exceptions when adding an item to the call queue. During Python finalization, creating a new thread can now raise RuntimeError. Catch the exception and call terminate_broken() in this case. Patch by Victor Stinner. gh-109782: Ensure the signature of os.path.isdir() is identical on all platforms. Patch by Amin Alaee. gh-109590: shutil.which() will prefer files with an extension in PATHEXT if the given mode includes os.X_OK on win32. If no PATHEXT match is found, a file without an extension in PATHEXT can be returned. This change will have shutil.which() act more similarly to previous behavior in Python 3.11. gh-109786: Fix possible reference leaks and crash when re-enter the __next__() method of itertools.pairwise. gh-109593: Avoid deadlocking on a reentrant call to the multiprocessing resource tracker. Such a reentrant call, though unlikely, can happen if a GC pass invokes the finalizer for a multiprocessing object such as SemLock. gh-109613: Fix os.stat() and os.DirEntry.stat(): check for exceptions. Previously, on Python built in debug mode, these functions could trigger a fatal Python error (and abort the process) when a function succeeded with an exception set. Patch by Victor Stinner. gh-109375: The pdb alias command now prevents registering aliases without arguments. gh-107219: Fix a race condition in concurrent.futures. When a process in the process pool was terminated abruptly (while the future was running or pending), close the connection write end. If the call queue is blocked on sending bytes to a worker process, closing the connection write end interrupts the send, so the queue can be closed. Patch by Victor Stinner. gh-50644: Attempts to pickle or create a shallow or deep copy of codecs streams now raise a TypeError. Previously, copying failed with a RecursionError, while pickling produced wrong results that eventually caused unpickling to fail with a RecursionError. gh-108987: Fix _thread.start_new_thread() race condition. If a thread is created during Python finalization, the newly spawned thread now exits immediately instead of trying to access freed memory and lead to a crash. Patch by Victor Stinner. gh-108791: Improved error handling in pdb command line interface, making it produce more concise error messages. gh-105829: Fix concurrent.futures.ProcessPoolExecutor deadlock gh-106584: Fix exit code for unittest if all tests are skipped. Patch by Egor Eliseev. gh-102956: Fix returning of empty byte strings after seek in zipfile module gh-84867: unittest.TestLoader no longer loads test cases from exact unittest.TestCase and unittest.FunctionTestCase classes. gh-91133: Fix a bug in tempfile.TemporaryDirectory cleanup, which now no longer dereferences symlinks when working around file system permission errors. gh-73561: Omit the interface scope from an IPv6 address when used as Host header by http.client. gh-86826: zipinfo now supports the full range of values in the TZ string determined by RFC 8536 and detects all invalid formats. Both Python and C implementations now raise exceptions of the same type on invalid data. bpo-43153: On Windows, tempfile.TemporaryDirectory previously masked a PermissionError with NotADirectoryError during directory cleanup. It now correctly raises PermissionError if errors are not ignored. Patch by Andrei Kulakov and Ken Jin. bpo-35332: The shutil.rmtree() function now ignores errors when calling os.close() when ignore_errors is True, and os.close() no longer retried after error. bpo-41422: Fixed memory leaks of pickle.Pickler and pickle.Unpickler involving cyclic references via the internal memo mapping. bpo-40262: The ssl.SSLSocket.recv_into() method no longer requires the buffer argument to implement __len__ and supports buffers with arbitrary item size. Documentation gh-111699: Relocate smtpd deprecation notice to its own section rather than under locale in What’s New in Python 3.12 document gh-108826: dis module command-line interface is now mentioned in documentation. Tests gh-112769: The tests now correctly compare zlib version when zlib.ZLIB_RUNTIME_VERSION contains non-integer suffixes. For example zlib-ng defines the version as 1.3.0.zlib-ng. gh-110367: Make regrtest --verbose3 option compatible with --huntrleaks -jN options. The ./python -m test -j1 -R 3:3 --verbose3 command now works as expected. Patch by Victor Stinner. gh-111165: Remove no longer used functions run_unittest() and run_doctest() from the test.support module. gh-110932: Fix regrtest if the SOURCE_DATE_EPOCH environment variable is defined: use the variable value as the random seed. Patch by Victor Stinner. gh-110995: test_gdb: Fix detection of gdb built without Python scripting support. Patch by Victor Stinner. gh-110918: Test case matching patterns specified by options --match, --ignore, --matchfile and --ignorefile are now tested in the order of specification, and the last match determines whether the test case be run or ignored. gh-110647: Fix test_stress_modifying_handlers() of test_signal. Patch by Victor Stinner. gh-103053: Fix test_tools.test_freeze on FreeBSD: run “make distclean” instead of “make clean” in the copied source directory to remove also the “python” program. Patch by Victor Stinner. gh-110167: Fix a deadlock in test_socket when server fails with a timeout but the client is still running in its thread. Don’t hold a lock to call cleanup functions in doCleanups(). One of the cleanup function waits until the client completes, whereas the client could deadlock if it called addCleanup() in such situation. Patch by Victor Stinner. gh-110388: Add tests for tty. gh-81002: Add tests for termios. gh-110267: Add tests for pickling and copying PyStructSequence objects. Patched by Xuehai Pan. gh-110031: Skip test_threading tests using thread+fork if Python is built with Address Sanitizer (ASAN). Patch by Victor Stinner. gh-110088: Fix test_asyncio timeouts: don’t measure the maximum duration, a test should not measure a CI performance. Only measure the minimum duration when a task has a timeout or delay. Add CLOCK_RES to test_asyncio.utils. Patch by Victor Stinner. gh-109974: Fix race conditions in test_threading lock tests. Wait until a condition is met rather than using time.sleep() with a hardcoded number of seconds. Patch by Victor Stinner. gh-110033: Fix test_interprocess_signal() of test_signal. Make sure that the subprocess.Popen object is deleted before the test raising an exception in a signal handler. Otherwise, Popen.__del__() can get the exception which is logged as Exception ignored in: ... and the test fails. Patch by Victor Stinner. gh-109594: Fix test_timeout() of test_concurrent_futures.test_wait. Remove the future which may or may not complete depending if it takes longer than the timeout ot not. Keep the second future which does not complete before wait() timeout. Patch by Victor Stinner. gh-109972: Split test_gdb.py file into a test_gdb package made of multiple tests, so tests can now be run in parallel. Patch by Victor Stinner. gh-103053: Skip test_freeze_simple_script() of test_tools.test_freeze if Python is built with ./configure --enable-optimizations, which means with Profile Guided Optimization (PGO): it just makes the test too slow. The freeze tool is tested by many other CIs with other (faster) compiler flags. Patch by Victor Stinner. gh-109580: Skip test_perf_profiler if Python is built with ASAN, MSAN or UBSAN sanitizer. Python does crash randomly in this test on such build. Patch by Victor Stinner. gh-104736: Fix test_gdb on Python built with LLVM clang 16 on Linux ppc64le (ex: Fedora 38). Search patterns in gdb “bt” command output to detect when gdb fails to retrieve the traceback. For example, skip a test if Backtrace stopped: frame did not save the PC is found. Patch by Victor Stinner. gh-108927: Fixed order dependence in running tests in the same process when a test that has submodules (e.g. test_importlib) follows a test that imports its submodule (e.g. test_importlib.util) and precedes a test (e.g. test_unittest or test_compileall) that uses that submodule. Build gh-112088: Add Tools/build/regen-configure.sh script to regenerate the configure with an Ubuntu container image. The quay.io/tiran/cpython_autoconf:271 container image (tiran/cpython_autoconf) is no longer used. Patch by Victor Stinner. gh-111046: For wasi-threads, memory is now exported to fix compatibility issues with some wasm runtimes. gh-103053: “make check-clean-src” now also checks if the “python” program is found in the source directory: fail with an error if it does exist. Patch by Victor Stinner. gh-109191: Fix compile error when building with recent versions of libedit. Windows gh-111856: Fixes fstat() on file systems that do not support file ID requests. This includes FAT32 and exFAT. gh-111293: Fix os.DirEntry.inode dropping higher 64 bits of a file id on some filesystems on Windows. gh-110913: WindowsConsoleIO now correctly chunks large buffers without splitting up UTF-8 sequences. gh-110437: Allows overriding the source of VC redistributables so that releases can be guaranteed to never downgrade between updates. gh-109286: Update Windows installer to use SQLite 3.43.1. macOS gh-109981: Use /dev/fd on macOS to determine the number of open files in test.support.os_helper.fd_count to avoid a crash with “guarded” file descriptors when probing for open files. gh-110950: Update macOS installer to include an upstream Tcl/Tk fix for the Secure coding is not enabled for restorable state! warning encountered in Tkinter on macOS 14 Sonoma. gh-111015: Ensure that IDLE.app and Python Launcher.app are installed with appropriate permissions on macOS builds. gh-109286: Update macOS installer to use SQLite 3.43.1. gh-71383: Update macOS installer to include an upstream Tcl/Tk fix for the ttk::ThemeChanged error encountered in Tkinter. gh-92603: Update macOS installer to include a fix accepted by upstream Tcl/Tk for a crash encountered after the first tkinter.Tk() instance is destroyed. IDLE bpo-35668: Add docstrings to the IDLE debugger module. Fix two bugs: initialize Idb.botframe (should be in Bdb); in Idb.in_rpc_code, check whether prev_frame is None before trying to use it. Greatly expand test_debugger. C API gh-106560: Fix redundant declarations in the public C API. Declare PyBool_Type and PyLong_Type only once. Patch by Victor Stinner. gh-112438: Fix support of format units “es”, “et”, “es#”, and “et#” in nested tuples in PyArg_ParseTuple()-like functions. gh-109521: PyImport_GetImporter() now sets RuntimeError if it fails to get sys.path_hooks or sys.path_importer_cache or they are not list and dict correspondingly. Previously it could return NULL without setting error in obscure cases, crash or raise SystemError if these attributes have wrong type. @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.1 2023/10/02 20:07:15 adam Exp $ d8 1 a8 1 --- configure.orig 2023-12-07 20:45:44.000000000 +0000 d10 1 a10 1 @@@@ -3686,7 +3686,7 @@@@ fi d19 1 a19 1 @@@@ -4318,7 +4318,7 @@@@ fi d28 1 a28 1 @@@@ -9494,7 +9494,7 @@@@ fi d37 1 a37 1 @@@@ -23502,10 +23502,10 @@@@ if ac_fn_c_try_compile "$LINENO" d41 1 a41 1 -if grep noonsees conftest.$ac_objext >/dev/null ; then d45 1 a45 1 -if grep seesnoon conftest.$ac_objext >/dev/null ; then d50 1 a50 1 @@@@ -24366,7 +24366,7 @@@@ printf "%s\n" "#define ALT_SOABI \"${ALT d59 1 a59 1 @@@@ -24420,11 +24420,7 @@@@ fi d72 1 a72 1 @@@@ -26079,7 +26075,7 @@@@ fi @ 1.1 log @python312 py312-html-docs: added version 3.12.0 Python 3.12 New syntax features: PEP 695, type parameter syntax and the type statement New grammar features: PEP 701, f-strings in the grammar Interpreter improvements: PEP 684, a unique per-interpreter GIL PEP 669, low impact monitoring Improved ‘Did you mean …’ suggestions for NameError, ImportError, and SyntaxError exceptions Python data model improvements: PEP 688, using the buffer protocol from Python Significant improvements in the standard library: The pathlib.Path class now supports subclassing The os module received several improvements for Windows support A command-line interface has been added to the sqlite3 module isinstance() checks against runtime-checkable protocols enjoy a speed up of between two and 20 times The asyncio package has had a number of performance improvements, with some benchmarks showing a 75% speed up. A command-line interface has been added to the uuid module Due to the changes in PEP 701, producing tokens via the tokenize module is up to up to 64% faster. Security improvements: Replace the builtin hashlib implementations of SHA1, SHA3, SHA2-384, SHA2-512, and MD5 with formally verified code from the HACL* project. These builtin implementations remain as fallbacks that are only used when OpenSSL does not provide them. C API improvements: PEP 697, unstable C API tier PEP 683, immortal objects CPython implementation improvements: PEP 709, comprehension inlining CPython support for the Linux perf profiler Implement stack overflow protection on supported platforms New typing features: PEP 692, using TypedDict to annotate **kwargs PEP 698, typing.override() decorator Important deprecations, removals or restrictions: PEP 623: Remove wstr from Unicode objects in Python’s C API, reducing the size of every str object by at least 8 bytes. PEP 632: Remove the distutils package. See the migration guide for advice replacing the APIs it provided. The third-party Setuptools package continues to provide distutils, if you still require it in Python 3.12 and beyond. gh-95299: Do not pre-install setuptools in virtual environments created with venv. This means that distutils, setuptools, pkg_resources, and easy_install will no longer available by default; to access these run pip install setuptools in the activated virtual environment. The asynchat, asyncore, and imp modules have been removed, along with several unittest.TestCase method aliases. @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.5 2023/08/25 08:28:22 adam Exp $ d8 1 a8 1 --- configure.orig 2023-08-05 12:11:26.000000000 +0000 d19 1 a19 1 @@@@ -4309,7 +4309,7 @@@@ fi d28 1 a28 1 @@@@ -9480,7 +9480,7 @@@@ fi d37 1 a37 1 @@@@ -23488,10 +23488,10 @@@@ if ac_fn_c_try_compile "$LINENO" d50 1 a50 1 @@@@ -24352,7 +24352,7 @@@@ printf "%s\n" "#define ALT_SOABI \"${ALT d59 1 a59 1 @@@@ -24406,11 +24406,7 @@@@ fi d72 9 @