This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Silently fails to build hashlib if openssl has disabled algorithms
Type: Stage: resolved
Components: Build Versions: Python 3.10
process
Status: closed Resolution: not a bug
Dependencies: Superseder: OpenSSL 1.1.1 still implements some disable-flags for Blake2, Scrypt
View: 45627
Assigned To: Nosy List: christian.heimes, rossburton2
Priority: normal Keywords:

Created on 2021-11-08 15:43 by rossburton2, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (4)
msg405954 - (view) Author: Ross Burton (rossburton2) Date: 2021-11-08 15:43
If my openssl is built with no-scrypt then the Python build of hashlib fails (as EVP_PBE_scrypt isn't present), but the overall compile succeeds.
msg405955 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-11-08 16:18
This is by design. As of PEP 644, Python 3.10 requires a full OpenSSL 1.1.1 build. See bpo-45627 for a discussion why we need a full build.

Traditionally we also don't fail the entire build if one or more optional modules fail to build. You only get error output on stdout/stderr. Python 3.10.1 will perform additional checks in the configure step, see bpo-45536.
msg405957 - (view) Author: Ross Burton (rossburton2) Date: 2021-11-08 16:43
Cool, glad to see the additional checks.
msg405959 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-11-08 16:46
Out of curiosity, which vendor / platform provides OpenSSL builds without scrypt?
History
Date User Action Args
2022-04-11 14:59:52adminsetgithub: 89912
2021-11-08 16:46:46christian.heimessetmessages: + msg405959
2021-11-08 16:43:34rossburton2setmessages: + msg405957
2021-11-08 16:18:21christian.heimessetstatus: open -> closed

superseder: OpenSSL 1.1.1 still implements some disable-flags for Blake2, Scrypt

nosy: + christian.heimes
messages: + msg405955
resolution: not a bug
stage: resolved
2021-11-08 15:43:57rossburton2setversions: + Python 3.10
2021-11-08 15:43:49rossburton2create