summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-08-29 16:19:15 (GMT)
committerGitHub <noreply@github.com>2022-08-29 16:19:15 (GMT)
commit873554ef84011773618911ffa698cea181cec9fd (patch)
tree0a6ab93b46ac49381178e369bbb4699e657978fe /Mac
parent9c2b9348e21a4ba3e995345501898c383972752d (diff)
downloadcpython-873554ef84011773618911ffa698cea181cec9fd.zip
cpython-873554ef84011773618911ffa698cea181cec9fd.tar.gz
cpython-873554ef84011773618911ffa698cea181cec9fd.tar.bz2
gh-94682: Build and test with OpenSSL 1.1.1q (gh-94683)
Diffstat (limited to 'Mac')
-rwxr-xr-xMac/BuildScript/build-installer.py18
1 files changed, 12 insertions, 6 deletions
diff --git a/Mac/BuildScript/build-installer.py b/Mac/BuildScript/build-installer.py
index a1d31c4..65fc013 100755
--- a/Mac/BuildScript/build-installer.py
+++ b/Mac/BuildScript/build-installer.py
@@ -246,9 +246,9 @@ def library_recipes():
result.extend([
dict(
- name="OpenSSL 1.1.1n",
- url="https://www.openssl.org/source/openssl-1.1.1n.tar.gz",
- checksum='2aad5635f9bb338bc2c6b7d19cbc9676',
+ name="OpenSSL 1.1.1q",
+ url="https://www.openssl.org/source/openssl-1.1.1q.tar.gz",
+ checksum='d7939ce614029cdff0b6c20f0e2e5703158a489a72b2507b8bd51bf8c8fd10ca',
buildrecipe=build_universal_openssl,
configure=None,
install=None,
@@ -797,10 +797,16 @@ def verifyThirdPartyFile(url, checksum, fname):
print("Downloading %s"%(name,))
downloadURL(url, fname)
print("Archive for %s stored as %s"%(name, fname))
+ if len(checksum) == 32:
+ algo = 'md5'
+ elif len(checksum) == 64:
+ algo = 'sha256'
+ else:
+ raise ValueError(checksum)
if os.system(
- 'MD5=$(openssl md5 %s) ; test "${MD5##*= }" = "%s"'
- % (shellQuote(fname), checksum) ):
- fatal('MD5 checksum mismatch for file %s' % fname)
+ 'CHECKSUM=$(openssl %s %s) ; test "${CHECKSUM##*= }" = "%s"'
+ % (algo, shellQuote(fname), checksum) ):
+ fatal('%s checksum mismatch for file %s' % (algo, fname))
def build_universal_openssl(basedir, archList):
"""