Skip to content

Commit dee34af

Browse files
author
Git for Windows Build Agent
committed
Update 1 package
mingw-w64-i686-python (3.11.9-1 -> 3.11.10-1) Signed-off-by: Git for Windows Build Agent <[email protected]>
1 parent 401d7e3 commit dee34af

File tree

130 files changed

+1320
-330
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+1320
-330
lines changed

mingw32/bin/libpython3.11.dll

32.6 KB
Binary file not shown.

mingw32/bin/libpython3.dll

6 Bytes
Binary file not shown.

mingw32/bin/python-config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ exec_prefix="${prefix}"
4747
exec_prefix_real=${prefix_real}
4848
includedir=$(echo "${prefix}/include" | sed "s#$prefix#$prefix_real#")
4949
libdir=$(echo "${exec_prefix}/lib" | sed "s#$prefix#$prefix_real#")
50-
CFLAGS=$(echo "-march=pentium4 -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3" | sed "s#$prefix#$prefix_real#")
50+
CFLAGS=$(echo "-march=pentium4 -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1 -O3" | sed "s#$prefix#$prefix_real#")
5151
VERSION="3.11"
5252
LIBM="-lm"
5353
LIBC=""

mingw32/bin/python.exe

522 Bytes
Binary file not shown.

mingw32/bin/python3-config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ exec_prefix="${prefix}"
4747
exec_prefix_real=${prefix_real}
4848
includedir=$(echo "${prefix}/include" | sed "s#$prefix#$prefix_real#")
4949
libdir=$(echo "${exec_prefix}/lib" | sed "s#$prefix#$prefix_real#")
50-
CFLAGS=$(echo "-march=pentium4 -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3" | sed "s#$prefix#$prefix_real#")
50+
CFLAGS=$(echo "-march=pentium4 -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1 -O3" | sed "s#$prefix#$prefix_real#")
5151
VERSION="3.11"
5252
LIBM="-lm"
5353
LIBC=""

mingw32/bin/python3.11-config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ exec_prefix="${prefix}"
4747
exec_prefix_real=${prefix_real}
4848
includedir=$(echo "${prefix}/include" | sed "s#$prefix#$prefix_real#")
4949
libdir=$(echo "${exec_prefix}/lib" | sed "s#$prefix#$prefix_real#")
50-
CFLAGS=$(echo "-march=pentium4 -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3" | sed "s#$prefix#$prefix_real#")
50+
CFLAGS=$(echo "-march=pentium4 -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1 -O3" | sed "s#$prefix#$prefix_real#")
5151
VERSION="3.11"
5252
LIBM="-lm"
5353
LIBC=""

mingw32/bin/python3.11.exe

522 Bytes
Binary file not shown.

mingw32/bin/python3.exe

522 Bytes
Binary file not shown.

mingw32/bin/python3w.exe

522 Bytes
Binary file not shown.

mingw32/bin/pythonw.exe

522 Bytes
Binary file not shown.

mingw32/include/python3.11/patchlevel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
/*--start constants--*/
1919
#define PY_MAJOR_VERSION 3
2020
#define PY_MINOR_VERSION 11
21-
#define PY_MICRO_VERSION 9
21+
#define PY_MICRO_VERSION 10
2222
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL
2323
#define PY_RELEASE_SERIAL 0
2424

2525
/* Version as a string */
26-
#define PY_VERSION "3.11.9"
26+
#define PY_VERSION "3.11.10"
2727
/*--end constants--*/
2828

2929
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.

mingw32/include/python3.11/pyconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
/* #undef HAVE_BROKEN_SEM_GETVALUE */
121121

122122
/* Define if 'unsetenv' does not return an int. */
123-
/* #undef HAVE_BROKEN_UNSETENV */
123+
#define HAVE_BROKEN_UNSETENV 1
124124

125125
/* Has builtin __atomic_load_n() and __atomic_store_n() functions */
126126
#define HAVE_BUILTIN_ATOMIC 1

mingw32/lib/libpython3.11.dll.a

0 Bytes
Binary file not shown.

mingw32/lib/libpython3.dll.a

0 Bytes
Binary file not shown.

mingw32/lib/python3.11/_sysconfigdata__win32_.py

Lines changed: 138 additions & 125 deletions
Large diffs are not rendered by default.

mingw32/lib/python3.11/asyncio/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ def run(self):
9090

9191

9292
if __name__ == '__main__':
93+
sys.audit("cpython.run_stdin")
94+
9395
loop = asyncio.new_event_loop()
9496
asyncio.set_event_loop(loop)
9597

mingw32/lib/python3.11/config-3.11/Makefile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ MODLIBS= $(LOCALMODLIBS) $(BASEMODLIBS)
2929

3030
# === Variables set by configure
3131
VERSION= 3.11
32-
srcdir= ../Python-3.11.9
33-
VPATH= ../Python-3.11.9
34-
abs_srcdir= /c/M/B/src/build-MINGW32/../Python-3.11.9
32+
srcdir= ../Python-3.11.10
33+
VPATH= ../Python-3.11.10
34+
abs_srcdir= /c/M/B/src/build-MINGW32/../Python-3.11.10
3535
abs_builddir= /c/M/B/src/build-MINGW32
3636

3737

@@ -83,19 +83,19 @@ MAKESETUP= $(srcdir)/Modules/makesetup
8383
OPT= -DNDEBUG -g -fwrapv -O3 -Wall
8484
BASECFLAGS=
8585
BASECPPFLAGS= -IObjects -IInclude -IPython
86-
CONFIGURE_CFLAGS= -march=pentium4 -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3
86+
CONFIGURE_CFLAGS= -march=pentium4 -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1 -O3
8787
# CFLAGS_NODIST is used for building the interpreter and stdlib C extensions.
8888
# Use it when a compiler flag should _not_ be part of the distutils CFLAGS
8989
# once Python is installed (Issue #21121).
90-
CONFIGURE_CFLAGS_NODIST= -fno-semantic-interposition -std=c11 -Werror=implicit-function-declaration -fvisibility=hidden -D_WIN32_WINNT=0x0602 -DPY3_DLLNAME='L"libpython$(LDVERSION).dll"' -DMS_DLL_ID='"3.11-32"'
90+
CONFIGURE_CFLAGS_NODIST= -fno-semantic-interposition -std=c11 -Wno-error=incompatible-pointer-types -Werror=implicit-function-declaration -fvisibility=hidden -D_WIN32_WINNT=0x0602 -DPY3_DLLNAME='L"libpython$(LDVERSION).dll"' -DMS_DLL_ID='"3.11-32"'
9191
# LDFLAGS_NODIST is used in the same manner as CFLAGS_NODIST.
9292
# Use it when a linker flag should _not_ be part of the distutils LDFLAGS
9393
# once Python is installed (bpo-35257)
9494
CONFIGURE_LDFLAGS_NODIST= -fno-semantic-interposition
9595
# LDFLAGS_NOLTO is an extra flag to disable lto. It is used to speed up building
9696
# of _bootstrap_python and _freeze_module tools, which don't need LTO.
9797
CONFIGURE_LDFLAGS_NOLTO=
98-
CONFIGURE_CPPFLAGS= -I$(srcdir)/PC -D__USE_MINGW_ANSI_STDIO=1 -I.
98+
CONFIGURE_CPPFLAGS= -I$(srcdir)/PC -I.
9999
CONFIGURE_LDFLAGS= -Wl,--no-seh -Wl,--large-address-aware -Wl,--large-address-aware
100100
# Avoid assigning CFLAGS, LDFLAGS, etc. so users can use them on the
101101
# command line to append to these values without stomping the pre-set
@@ -125,7 +125,7 @@ PY_CORE_CFLAGS= $(PY_STDMODULE_CFLAGS) -DPy_BUILD_CORE
125125
PY_CORE_LDFLAGS=$(PY_LDFLAGS) $(PY_LDFLAGS_NODIST)
126126
# Strict or non-strict aliasing flags used to compile dtoa.c, see above
127127
CFLAGS_ALIASING=
128-
RCFLAGS= -DFIELD3=9150 -O COFF --target=pe-i386
128+
RCFLAGS= -DFIELD3=10150 -O COFF --target=pe-i386
129129

130130

131131
# Machine-dependent subdirectories
@@ -145,8 +145,8 @@ exec_prefix= ${prefix}
145145
datarootdir= ${prefix}/share
146146

147147
# Locations needed for semi-native fixup of sysconfig.
148-
srcdir_b2h= C:/M/B/src/Python-3.11.9
149-
abs_srcdir_b2h= C:/M/B/src/Python-3.11.9
148+
srcdir_b2h= C:/M/B/src/Python-3.11.10
149+
abs_srcdir_b2h= C:/M/B/src/Python-3.11.10
150150
abs_builddir_b2h= C:/M/B/src/build-MINGW32
151151
prefix_b2h= D:/a/msys64/mingw32
152152

@@ -367,7 +367,7 @@ EXEMODE= 755
367367
FILEMODE= 644
368368

369369
# configure script arguments
370-
CONFIG_ARGS= '--prefix=/mingw32' '--host=i686-w64-mingw32' '--build=i686-w64-mingw32' '--enable-shared' '--with-system-expat' '--with-system-ffi' '--with-system-libmpdec' '--without-ensurepip' '--enable-loadable-sqlite-extensions' '--with-tzpath=/mingw32/share/zoneinfo' '--enable-optimizations' 'build_alias=i686-w64-mingw32' 'host_alias=i686-w64-mingw32' 'PKG_CONFIG_PATH=/mingw32/lib/pkgconfig:/mingw32/share/pkgconfig' 'CC=gcc' 'CFLAGS=-march=pentium4 -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -O3' 'LDFLAGS=-Wl,--no-seh -Wl,--large-address-aware -Wl,--large-address-aware' 'CPPFLAGS=-D__USE_MINGW_ANSI_STDIO=1'
370+
CONFIG_ARGS= '--prefix=/mingw32' '--host=i686-w64-mingw32' '--build=i686-w64-mingw32' '--enable-shared' '--with-system-expat' '--with-system-ffi' '--with-system-libmpdec' '--without-ensurepip' '--enable-loadable-sqlite-extensions' '--with-tzpath=/mingw32/share/zoneinfo' '--enable-optimizations' 'build_alias=i686-w64-mingw32' 'host_alias=i686-w64-mingw32' 'PKG_CONFIG_PATH=/mingw32/lib/pkgconfig:/mingw32/share/pkgconfig' 'CC=gcc' 'CFLAGS=-march=pentium4 -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1 -O3' 'LDFLAGS=-Wl,--no-seh -Wl,--large-address-aware -Wl,--large-address-aware' 'CPPFLAGS='
371371

372372

373373
# Subdirectories with code
@@ -879,10 +879,10 @@ $(BUILDPYTHON): Programs/python.o $(LINK_PYTHON_DEPS) python_exe.o
879879
$(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -municode -o $@ Programs/python.o $(LINK_PYTHON_OBJS) $(LIBS) $(MODLIBS) $(SYSLIBS) python_exe.o
880880

881881
$(BUILDVENVLAUNCHER): $(BUILDPYTHON) venvlauncher.o $(srcdir)/PC/launcher.c
882-
$(LINKCC) -D_CONSOLE -DVENV_REDIRECT -DPYTHON_EXECUTABLE_WITH_VERSION="L\"python$(LDVERSION)$(EXE)\"" -municode -static -static-libgcc -static-libstdc++ venvlauncher.o $(srcdir)/PC/launcher.c -o $@ -lversion
882+
$(LINKCC) -D_CONSOLE -DVENV_REDIRECT -DPYTHON_EXECUTABLE_WITH_VERSION="L\"python$(LDVERSION)$(EXE)\"" $(PY_STDMODULE_CFLAGS) -municode -static -static-libgcc -static-libstdc++ venvlauncher.o $(srcdir)/PC/launcher.c -o $@ -lversion
883883

884884
$(BUILDVENVWLAUNCHER): $(BUILDPYTHONW) venvwlauncher.o $(srcdir)/PC/launcher.c
885-
$(LINKCC) -D_WINDOWS -DVENV_REDIRECT -DPYTHON_EXECUTABLE_WITH_VERSION="L\"pythonw$(LDVERSION)$(EXE)\"" -mwindows -municode -static -static-libgcc -static-libstdc++ venvwlauncher.o $(srcdir)/PC/launcher.c -o $@ -lversion
885+
$(LINKCC) -D_WINDOWS -DVENV_REDIRECT -DPYTHON_EXECUTABLE_WITH_VERSION="L\"pythonw$(LDVERSION)$(EXE)\"" $(PY_STDMODULE_CFLAGS) -mwindows -municode -static -static-libgcc -static-libstdc++ venvwlauncher.o $(srcdir)/PC/launcher.c -o $@ -lversion
886886

887887
platform: $(PYTHON_FOR_BUILD_DEPS) pybuilddir.txt
888888
$(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print("%s-%d.%d" % (get_platform(), *sys.version_info[:2]))' >platform

mingw32/lib/python3.11/config-3.11/config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Generated automatically from ../Python-3.11.9/Modules/config.c.in by makesetup. */
1+
/* Generated automatically from ../Python-3.11.10/Modules/config.c.in by makesetup. */
22
/* -*- C -*- ***********************************************
33
Copyright (c) 2000, BeOpen.com.
44
Copyright (c) 1995-2000, Corporation for National Research Initiatives.
4 Bytes
Binary file not shown.

mingw32/lib/python3.11/email/_header_value_parser.py

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@
9292
ASPECIALS = TSPECIALS | set("*'%")
9393
ATTRIBUTE_ENDS = ASPECIALS | WSP
9494
EXTENDED_ATTRIBUTE_ENDS = ATTRIBUTE_ENDS - set('%')
95+
NLSET = {'\n', '\r'}
96+
SPECIALSNL = SPECIALS | NLSET
9597

9698
def quote_string(value):
9799
return '"'+str(value).replace('\\', '\\\\').replace('"', r'\"')+'"'
@@ -950,6 +952,7 @@ class _InvalidEwError(errors.HeaderParseError):
950952
DOT = ValueTerminal('.', 'dot')
951953
ListSeparator = ValueTerminal(',', 'list-separator')
952954
ListSeparator.as_ew_allowed = False
955+
ListSeparator.syntactic_break = False
953956
RouteComponentMarker = ValueTerminal('@', 'route-component-marker')
954957

955958
#
@@ -2780,9 +2783,13 @@ def _refold_parse_tree(parse_tree, *, policy):
27802783
wrap_as_ew_blocked -= 1
27812784
continue
27822785
tstr = str(part)
2783-
if part.token_type == 'ptext' and set(tstr) & SPECIALS:
2784-
# Encode if tstr contains special characters.
2785-
want_encoding = True
2786+
if not want_encoding:
2787+
if part.token_type == 'ptext':
2788+
# Encode if tstr contains special characters.
2789+
want_encoding = not SPECIALSNL.isdisjoint(tstr)
2790+
else:
2791+
# Encode if tstr contains newlines.
2792+
want_encoding = not NLSET.isdisjoint(tstr)
27862793
try:
27872794
tstr.encode(encoding)
27882795
charset = encoding
@@ -2821,7 +2828,9 @@ def _refold_parse_tree(parse_tree, *, policy):
28212828
if not hasattr(part, 'encode'):
28222829
# It's not a Terminal, do each piece individually.
28232830
parts = list(part) + parts
2824-
else:
2831+
want_encoding = False
2832+
continue
2833+
elif part.as_ew_allowed:
28252834
# It's a terminal, wrap it as an encoded word, possibly
28262835
# combining it with previously encoded words if allowed.
28272836
if (last_ew is not None and
@@ -2832,8 +2841,15 @@ def _refold_parse_tree(parse_tree, *, policy):
28322841
last_ew = _fold_as_ew(tstr, lines, maxlen, last_ew,
28332842
part.ew_combine_allowed, charset)
28342843
last_charset = charset
2835-
want_encoding = False
2836-
continue
2844+
want_encoding = False
2845+
continue
2846+
else:
2847+
# It's a terminal which should be kept non-encoded
2848+
# (e.g. a ListSeparator).
2849+
last_ew = None
2850+
want_encoding = False
2851+
# fall through
2852+
28372853
if len(tstr) <= maxlen - len(lines[-1]):
28382854
lines[-1] += tstr
28392855
continue

mingw32/lib/python3.11/email/_policybase.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,13 @@ class Policy(_PolicyBase, metaclass=abc.ABCMeta):
157157
message_factory -- the class to use to create new message objects.
158158
If the value is None, the default is Message.
159159
160+
verify_generated_headers
161+
-- if true, the generator verifies that each header
162+
they are properly folded, so that a parser won't
163+
treat it as multiple headers, start-of-body, or
164+
part of another header.
165+
This is a check against custom Header & fold()
166+
implementations.
160167
"""
161168

162169
raise_on_defect = False
@@ -165,6 +172,7 @@ class Policy(_PolicyBase, metaclass=abc.ABCMeta):
165172
max_line_length = 78
166173
mangle_from_ = False
167174
message_factory = None
175+
verify_generated_headers = True
168176

169177
def handle_defect(self, obj, defect):
170178
"""Based on policy, either raise defect or call register_defect.

mingw32/lib/python3.11/email/errors.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ class CharsetError(MessageError):
2929
"""An illegal charset was given."""
3030

3131

32+
class HeaderWriteError(MessageError):
33+
"""Error while writing headers."""
34+
35+
3236
# These are parsing defects which the parser was able to work around.
3337
class MessageDefect(ValueError):
3438
"""Base class for a message defect."""

mingw32/lib/python3.11/email/generator.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
from copy import deepcopy
1515
from io import StringIO, BytesIO
1616
from email.utils import _has_surrogates
17+
from email.errors import HeaderWriteError
1718

1819
UNDERSCORE = '_'
1920
NL = '\n' # XXX: no longer used by the code below.
2021

2122
NLCRE = re.compile(r'\r\n|\r|\n')
2223
fcre = re.compile(r'^From ', re.MULTILINE)
24+
NEWLINE_WITHOUT_FWSP = re.compile(r'\r\n[^ \t]|\r[^ \n\t]|\n[^ \t]')
2325

2426

2527
class Generator:
@@ -222,7 +224,16 @@ def _dispatch(self, msg):
222224

223225
def _write_headers(self, msg):
224226
for h, v in msg.raw_items():
225-
self.write(self.policy.fold(h, v))
227+
folded = self.policy.fold(h, v)
228+
if self.policy.verify_generated_headers:
229+
linesep = self.policy.linesep
230+
if not folded.endswith(self.policy.linesep):
231+
raise HeaderWriteError(
232+
f'folded header does not end with {linesep!r}: {folded!r}')
233+
if NEWLINE_WITHOUT_FWSP.search(folded.removesuffix(linesep)):
234+
raise HeaderWriteError(
235+
f'folded header contains newline: {folded!r}')
236+
self.write(folded)
226237
# A blank line always separates headers from body
227238
self.write(self._NL)
228239

0 commit comments

Comments
 (0)