Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions cpython-unix/build-openssl-3.5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ tar -xf openssl-${OPENSSL_3_5_VERSION}.tar.gz

pushd openssl-${OPENSSL_3_5_VERSION}

# hardcode the vlenb CSR address (0xc22) as our GCC version doesn't know it
# https://github.com/riscv/riscv-isa-manual/blob/c001fa237cdd8b6079384044462a89eb0e3fd9cf/src/v-st-ext.adoc?plain=1#L74
if [[ "${TARGET_TRIPLE}" = "riscv64-unknown-linux-gnu" ]]; then
patch -p1 -i "${ROOT}/patch-openssl-3.5-riscv-vlenb-register.patch"
fi

# Otherwise it gets set to /tools/deps/ssl by default.
case "${TARGET_TRIPLE}" in
*apple*)
Expand Down
5 changes: 1 addition & 4 deletions cpython-unix/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,10 @@ def simple_build(

add_target_env(env, host_platform, target_triple, build_env)

# for OpenSSL, set the OPENSSL_TARGET environment variable and copy in patches
# for OpenSSL, set the OPENSSL_TARGET environment variable
if entry.startswith("openssl-"):
settings = get_targets(TARGETS_CONFIG)[target_triple]
env["OPENSSL_TARGET"] = settings["openssl_target"]
build_env.copy_file(
SUPPORT / "patch-openssl-3.5-riscv-vlenb-register.patch"
)

build_env.run("build-%s.sh" % entry, environment=env)

Expand Down
15 changes: 0 additions & 15 deletions cpython-unix/patch-openssl-3.5-riscv-vlenb-register.patch

This file was deleted.

8 changes: 4 additions & 4 deletions pythonbuild/downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,10 @@
},
# Remember to update OPENSSL_VERSION_INFO in verify_distribution.py whenever upgrading.
"openssl-3.5": {
"url": "https://github.com/openssl/openssl/releases/download/openssl-3.5.2/openssl-3.5.2.tar.gz",
"size": 53180161,
"sha256": "c53a47e5e441c930c3928cf7bf6fb00e5d129b630e0aa873b08258656e7345ec",
"version": "3.5.2",
"url": "https://github.com/openssl/openssl/releases/download/openssl-3.5.3/openssl-3.5.3.tar.gz",
"size": 53183370,
"sha256": "c9489d2abcf943cdc8329a57092331c598a402938054dc3a22218aea8a8ec3bf",
"version": "3.5.3",
"library_names": ["crypto", "ssl"],
"licenses": ["Apache-2.0"],
"license_file": "LICENSE.openssl-3.txt",
Expand Down
2 changes: 1 addition & 1 deletion src/verify_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def test_ssl(self):
if os.name == "nt" and sys.version_info[0:2] < (3, 11):
wanted_version = (1, 1, 1, 23, 15)
else:
wanted_version = (3, 5, 0, 2, 0)
wanted_version = (3, 5, 0, 3, 15)

self.assertEqual(ssl.OPENSSL_VERSION_INFO, wanted_version)

Expand Down
Loading