From 56bc05d5d6de2f380f438240f4d2c01afe7afd5a Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Fri, 26 Dec 2025 22:35:22 +0300 Subject: [PATCH] python-build: Use no-tests only for OpenSSL 1.1.1+ Introduced in 1.1.1-pre1 --- plugins/python-build/bin/python-build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 3071c6e0..deecea52 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -1769,12 +1769,16 @@ build_package_mac_openssl() { local nokerberos [[ "$1" != openssl-1.0.* ]] || nokerberos=1 + # switches introduced in OpenSSL 1.1.1 + local notests + [[ $(openssl_version $1) -ge 10101 ]] && notests=1 + # switches introduced in OpenSSL 3.2 local extra_no_features [[ $(openssl_version $1) -ge 30200 ]] && extra_no_features=1 # Compile a shared lib with zlib dynamically linked. - package_option openssl configure --openssldir="$OPENSSLDIR" zlib-dynamic no-ssl3 shared ${nokerberos:+no-ssl2 no-krb5} ${extra_no_features:+no-docs no-apps} no-tests + package_option openssl configure --openssldir="$OPENSSLDIR" zlib-dynamic no-ssl3 shared ${nokerberos:+no-ssl2 no-krb5} ${extra_no_features:+no-docs no-apps} ${notests:+no-tests} build_package_standard "$@"