From 0dc3df1ed9e9bb6e8a5b40a46daef2bea52bb11b Mon Sep 17 00:00:00 2001 From: tigro Date: Tue, 11 Feb 2025 18:39:14 +0300 Subject: [PATCH] More trick to backport engines --- SPECS/openssl.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SPECS/openssl.spec b/SPECS/openssl.spec index 1125ed9..2b96c29 100644 --- a/SPECS/openssl.spec +++ b/SPECS/openssl.spec @@ -452,8 +452,9 @@ basearch=sparc basearch=sparc64 %endif +# Next step of gradual disablement of ENGINE. sed -i '/^\# ifndef OPENSSL_NO_STATIC_ENGINE/i\ -# ifndef OPENSSL_NO_ENGINE\ +# if !__has_include() && !defined(OPENSSL_NO_ENGINE)\ # define OPENSSL_NO_ENGINE\ # endif' $RPM_BUILD_ROOT/%{_prefix}/include/openssl/configuration.h