From 51d404a67c670081abbc8d1a8d85170e0b16cb88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Josef=20=C5=A0pa=C4=8Dek?= Date: Wed, 23 Aug 2023 12:16:55 +0200 Subject: [PATCH] Fix tests run by adding better algorithm Resolves rhbz#210808 --- AnyEvent-7.14-fix_minimal_dh_algorithm.patch | 12 ++++++++++++ perl-AnyEvent.spec | 9 ++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 AnyEvent-7.14-fix_minimal_dh_algorithm.patch diff --git a/AnyEvent-7.14-fix_minimal_dh_algorithm.patch b/AnyEvent-7.14-fix_minimal_dh_algorithm.patch new file mode 100644 index 0000000..68a0687 --- /dev/null +++ b/AnyEvent-7.14-fix_minimal_dh_algorithm.patch @@ -0,0 +1,12 @@ +diff -r -u AnyEvent-7.14.orig/t/80_ssltest.t AnyEvent-7.14/t/80_ssltest.t +--- AnyEvent-7.14.orig/t/80_ssltest.t 2012-05-13 01:06:34.000000000 +0200 ++++ AnyEvent-7.14/t/80_ssltest.t 2023-08-23 11:28:59.863150707 +0200 +@@ -11,7 +11,7 @@ + use AnyEvent::Handle; + use AnyEvent::TLS; + +-my $ctx = new AnyEvent::TLS cert_file => $0; ++my $ctx = new AnyEvent::TLS cert_file => $0, dh => "schmorp2048"; + + for my $mode (1..5) { + ok (1, "mode $mode"); diff --git a/perl-AnyEvent.spec b/perl-AnyEvent.spec index d19fb23..5615cec 100644 --- a/perl-AnyEvent.spec +++ b/perl-AnyEvent.spec @@ -13,12 +13,14 @@ Name: perl-AnyEvent Version: 7.14 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Framework for multiple event loops Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/AnyEvent/ Source0: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-%{version}%{?subver}.tar.gz +# rhbz#2108086 - Build is failing in %check section +Patch0: AnyEvent-7.14-fix_minimal_dh_algorithm.patch # Build requirements BuildRequires: coreutils @@ -147,6 +149,7 @@ time). %prep %setup -q -n AnyEvent-%{version}%{?subver} +%patch0 -p1 %build @@ -204,6 +207,10 @@ make test %changelog +* Wed Aug 23 2023 Michal Josef Špaček - 7.14-7 +- Fix tests run by adding better algorithm + Resolves: rhbz#2108086 + * Tue Jul 17 2018 Petr Pisar - 7.14-6 - Do not test optional backends