Skip to content

Commit 93ee263

Browse files
committed
downloads: CPython 3.11.4 -> 3.11.5
We remove a patch for limits.h handling because upstream incorporated a fix (from a bug report I filed). And it looks like upstream backported build system changes to build with OpenSSL 3.0 on Windows. We need to update our code accordingly. We really should be building against OpenSSL 3.0. But that's scope bloat. We'll get there.
1 parent a5710cc commit 93ee263

File tree

4 files changed

+15
-31
lines changed

4 files changed

+15
-31
lines changed

cpython-unix/build-cpython.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,6 @@ if [[ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_9}" && -n "${PYTHON_MEETS_MAXIMUM_VER
239239
patch -p1 -i ${ROOT}/patch-posixmodule-remove-system.patch
240240
fi
241241

242-
# posixmodule.c unconditionally includes linux/limits.h on musl. This breaks
243-
# because we're building with old Linux headers not having this file. This is
244-
# effectively a revert of CPython commit 8be8101bca34b60481ec3d7ecaea4a3379fb7dbb.
245-
# Upstream bug report: https://github.com/python/cpython/issues/106881.
246-
if [ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_11}" ]; then
247-
patch -p1 -i ${ROOT}/patch-posixmodule-musl-limits.patch
248-
fi
249-
250242
# Python 3.11 has configure support for configuring extension modules. We really,
251243
# really, really want to use this feature because it looks promising. But at the
252244
# time we added this code the functionality didn't support all extension modules

cpython-unix/patch-posixmodule-musl-limits.patch

Lines changed: 0 additions & 15 deletions
This file was deleted.

cpython-windows/build.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -859,17 +859,24 @@ def hack_props(
859859
)
860860
else:
861861
if arch == "amd64":
862-
suffix = b"x64"
862+
suffix = b"-x64"
863863
elif arch == "win32":
864-
suffix = None
864+
suffix = b""
865865
else:
866866
raise Exception("unhandled architecture: %s" % arch)
867867

868-
if suffix:
868+
try:
869+
# CPython 3.11+ builds with OpenSSL 3.0 by default.
870+
static_replace_in_file(
871+
openssl_props,
872+
b"<_DLLSuffix>-3</_DLLSuffix>",
873+
b"<_DLLSuffix>-1_1%s</_DLLSuffix>" % suffix,
874+
)
875+
except NoSearchStringError:
869876
static_replace_in_file(
870877
openssl_props,
871878
b"<_DLLSuffix>-1_1</_DLLSuffix>",
872-
b"<_DLLSuffix>-1_1-%s</_DLLSuffix>" % suffix,
879+
b"<_DLLSuffix>-1_1%s</_DLLSuffix>" % suffix,
873880
)
874881

875882
libffi_props = pcbuild_path / "libffi.props"

pythonbuild/downloads.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@
6262
"python_tag": "cp310",
6363
},
6464
"cpython-3.11": {
65-
"url": "https://www.python.org/ftp/python/3.11.4/Python-3.11.4.tar.xz",
66-
"size": 19954828,
67-
"sha256": "2f0e409df2ab57aa9fc4cbddfb976af44e4e55bf6f619eee6bc5c2297264a7f6",
68-
"version": "3.11.4",
65+
"url": "https://www.python.org/ftp/python/3.11.5/Python-3.11.5.tar.xz",
66+
"size": 20053580,
67+
"sha256": "85cd12e9cf1d6d5a45f17f7afe1cebe7ee628d3282281c492e86adf636defa3f",
68+
"version": "3.11.5",
6969
"licenses": ["Python-2.0", "CNRI-Python"],
7070
"license_file": "LICENSE.cpython.txt",
7171
"python_tag": "cp311",

0 commit comments

Comments
 (0)