Remove usage of OpenSSL Engine

After discussion with change owner, I've prepared the correct solution.

There is a difference between Fedora and CentOS Stream 10 / RHEL 10:
- in CentOS Stream 10 / RHEL 10, the change is self-contained by the
  'openssl-devel' package itself, which now defines OPENSSL_NO_ENGINE
  in the headers so new application builds don't use engine at all
- in Fedora, the headers containing the OPENSSL_NO_ENGINE definition
  are put into a separate sub-package 'openssl-devel-engine', instead
  of being put into the 'openssl-devel'
This commit is contained in:
Michal Schorm 2024-07-22 12:52:49 +02:00
parent 1e143dc511
commit 6f668c197a

View File

@ -177,6 +177,11 @@ BuildRequires: libquadmath-devel
%endif
BuildRequires: openssl
BuildRequires: openssl-devel
%if 0%{?fedora} >= 41
# Complement of mysql-openssl-engine.patch
BuildRequires: openssl-devel-engine
%endif
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: rpcgen
@ -546,10 +551,6 @@ cp %{SOURCE2} %{SOURCE3} %{SOURCE10} %{SOURCE11} %{SOURCE12} \
fi
%endif
# Complement of mysql-openssl-engine.patch
CFLAGS="$CFLAGS -DOPENSSL_NO_ENGINE"; export CFLAGS
CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_ENGINE"; export CPPFLAGS
# The INSTALL_xxx macros have to be specified relative to CMAKE_INSTALL_PREFIX
# so we can't use %%{_datadir} and so forth here.
%cmake \