From 115556d9ec21058d83ca79cd6fd5ee1fe496bd86 Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Mon, 22 Jul 2024 14:30:59 +0200 Subject: [PATCH] Remove usage of OpenSSL Engine https://fedoraproject.org/wiki/Changes/OpensslDeprecateEngine Note: 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' More notes (from Yaakov Selkowitz): - While C10S/RHEL 10 openssl is built with OPENSSL_NO_ENGINE, ELN is not, and many packages still need openssl-devel-engine as in F41+ **until that happens**. Therefore, the correct conditional at this time is: %if 0%{?fedora} >= 41 || 0%{?rhel} >= 11; - The -devel subpackage should also 'Recommends: openssl-devel-engine' with the same conditionals, otherwise every asio-dependent package will need to be modified --- asio.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/asio.spec b/asio.spec index b058ee0..6ab432f 100644 --- a/asio.spec +++ b/asio.spec @@ -17,6 +17,9 @@ BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: make BuildRequires: openssl-devel +%if 0%{?fedora} >= 41 || 0%{?rhel} >= 11 +BuildRequires: openssl-devel-engine +%endif BuildRequires: perl-generators %description @@ -27,6 +30,9 @@ modern C++ approach. %package devel Summary: Header files for asio Recommends: openssl-devel +%if 0%{?fedora} >= 41 || 0%{?rhel} >= 11 +Recommends: openssl-devel-engine +%endif Recommends: boost-devel %description devel