From 84343e2a3739b7b6f6713952a5a70d612fbf6bca Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Tue, 31 Jan 2023 05:07:04 +0100 Subject: [PATCH] Disable the builtin hashlib hashes except blake2 Resolves: rhbz#2127923 --- python3.11.spec | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/python3.11.spec b/python3.11.spec index 44c6b9e..b4a362f 100644 --- a/python3.11.spec +++ b/python3.11.spec @@ -20,7 +20,7 @@ URL: https://www.python.org/ #global prerel ... %global upstream_version %{general_version}%{?prerel} Version: %{general_version}%{?prerel:~%{prerel}} -Release: 3%{?dist} +Release: 4%{?dist} License: Python @@ -725,6 +725,7 @@ BuildPython() { --with-dtrace \ --with-lto \ --with-ssl-default-suites=openssl \ + --with-builtin-hashlib-hashes=blake2 \ --without-static-libpython \ %if %{with rpmwheels} --with-wheel-pkg-dir=%{python_wheel_dir} \ @@ -1181,11 +1182,6 @@ CheckPython optimized %{pylibdir}/pydoc_data %{dynload_dir}/_blake2.%{SOABI_optimized}.so -%{dynload_dir}/_md5.%{SOABI_optimized}.so -%{dynload_dir}/_sha1.%{SOABI_optimized}.so -%{dynload_dir}/_sha256.%{SOABI_optimized}.so -%{dynload_dir}/_sha3.%{SOABI_optimized}.so -%{dynload_dir}/_sha512.%{SOABI_optimized}.so %{dynload_dir}/_asyncio.%{SOABI_optimized}.so %{dynload_dir}/_bisect.%{SOABI_optimized}.so @@ -1471,11 +1467,6 @@ CheckPython optimized # ...with debug builds of the built-in "extension" modules: %{dynload_dir}/_blake2.%{SOABI_debug}.so -%{dynload_dir}/_md5.%{SOABI_debug}.so -%{dynload_dir}/_sha1.%{SOABI_debug}.so -%{dynload_dir}/_sha256.%{SOABI_debug}.so -%{dynload_dir}/_sha3.%{SOABI_debug}.so -%{dynload_dir}/_sha512.%{SOABI_debug}.so %{dynload_dir}/_asyncio.%{SOABI_debug}.so %{dynload_dir}/_bisect.%{SOABI_debug}.so @@ -1601,6 +1592,9 @@ CheckPython optimized # ====================================================== %changelog +* Tue Jan 31 2023 Charalampos Stratakis - 3.11.1-4 +- Disable the builtin hashlib hashes except blake2 + * Mon Jan 30 2023 Charalampos Stratakis - 3.11.1-3 - Disable bootstrap - Bump release to sync with RHEL8