From e2bea1ff111f85acfbf4ba7c2ee03cc401573e05 Mon Sep 17 00:00:00 2001 From: Artem Egorenkov Date: Thu, 20 May 2021 13:57:03 +0200 Subject: [PATCH] Temporary pass -Wno-deprecated-declarations to gcc to ignore deprecated warnings to be able to build against OpenSSL-3.0 Resolves: rhbz#1958028 --- vsftpd.spec | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/vsftpd.spec b/vsftpd.spec index b5bfaf9..83ccb92 100644 --- a/vsftpd.spec +++ b/vsftpd.spec @@ -2,7 +2,7 @@ Name: vsftpd Version: 3.0.3 -Release: 44%{?dist} +Release: 45%{?dist} Summary: Very Secure Ftp Daemon # OpenSSL link exception @@ -109,10 +109,14 @@ scratch. cp %{SOURCE1} . %build +# temporary ignore deprecated warnings to be able to build against OpenSSL 3.0 +# upstram tracking bug: rhbz#1962603 +%define ignore_deprecated -Wno-deprecated-declarations + %ifarch s390x sparcv9 sparc64 -%make_build CFLAGS="$RPM_OPT_FLAGS -fPIE -pipe -Wextra -Werror" \ +%make_build CFLAGS="$RPM_OPT_FLAGS -fPIE -pipe -Wextra -Werror %ignore_deprecated" \ %else -%make_build CFLAGS="$RPM_OPT_FLAGS -fpie -pipe -Wextra -Werror" \ +%make_build CFLAGS="$RPM_OPT_FLAGS -fpie -pipe -Wextra -Werror %ignore_deprecated" \ %endif LINK="-pie -lssl $RPM_LD_FLAGS" %{?_smp_mflags} @@ -167,6 +171,11 @@ mkdir -p $RPM_BUILD_ROOT/%{_var}/ftp/pub %{_var}/ftp %changelog +* Thu May 20 2021 Artem Egorenkov - 3.0.3-45 +- Temporary pass -Wno-deprecated-declarations to gcc to ignore + deprecated warnings to be able to build against OpenSSL-3.0 +- Resolves: rhbz#1958028 + * Fri Apr 16 2021 Artem Egorenkov - 3.0.3-44 - Enable support for wide-character strings in logs - Replace unprintables with HEX code, not question marks