From 581ac311c4705f003fa7ee7b98ead4e77c8f12e6 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Mon, 9 Aug 2021 08:14:12 +0100 Subject: [PATCH] fix FTBFS with OpenSSL 3.0 beta 2 (#1991008) Resolves: rhbz#1991008 --- libserf-1.3.9-errgetfunc.patch | 13 +++++++++++++ libserf.spec | 6 +++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 libserf-1.3.9-errgetfunc.patch diff --git a/libserf-1.3.9-errgetfunc.patch b/libserf-1.3.9-errgetfunc.patch new file mode 100644 index 0000000..c5ac4a6 --- /dev/null +++ b/libserf-1.3.9-errgetfunc.patch @@ -0,0 +1,13 @@ +--- serf-1.3.9/buckets/ssl_buckets.c.errgetfunc ++++ serf-1.3.9/buckets/ssl_buckets.c +@@ -1204,6 +1204,10 @@ + } + } + ++#ifndef ERR_GET_FUNC ++#define ERR_GET_FUNC(ec) (0) ++#endif ++ + static int ssl_need_client_cert(SSL *ssl, X509 **cert, EVP_PKEY **pkey) + { + serf_ssl_context_t *ctx = SSL_get_app_data(ssl); diff --git a/libserf.spec b/libserf.spec index d3bddd0..ebcea9b 100644 --- a/libserf.spec +++ b/libserf.spec @@ -1,6 +1,6 @@ Name: libserf Version: 1.3.9 -Release: 23%{?dist} +Release: 24%{?dist} Summary: High-Performance Asynchronous HTTP Client Library License: ASL 2.0 URL: http://serf.apache.org/ @@ -11,6 +11,7 @@ BuildRequires: zlib-devel, cmake Patch0: %{name}-norpath.patch Patch1: %{name}-python3.patch Patch2: %{name}-1.3.9-cmake.patch +Patch3: %{name}-1.3.9-errgetfunc.patch %description The serf library is a C-based HTTP client library built upon the Apache @@ -58,6 +59,9 @@ rm -rf %{buildroot}%{_datadir} %{_libdir}/pkgconfig/serf*.pc %changelog +* Mon Aug 9 2021 Joe Orton - 1.3.9-24 +- fix FTBFS with OpenSSL 3.0 beta 2 (#1991008) + * Wed Jun 30 2021 Tomas Korbar - 1.3.9-23 - Fix soname problems - Related: rhbz#1974621