diff --git a/Net-SSLeay-1.94-openssl3.4.0-tests-fix.patch b/Net-SSLeay-1.94-openssl3.4.0-tests-fix.patch new file mode 100644 index 0000000..f19353e --- /dev/null +++ b/Net-SSLeay-1.94-openssl3.4.0-tests-fix.patch @@ -0,0 +1,25 @@ +diff --git a/t/local/32_x509_get_cert_info.t b/t/local/32_x509_get_cert_info.t +index 0f7e2d5..08316bf 100644 +--- a/t/local/32_x509_get_cert_info.t ++++ b/t/local/32_x509_get_cert_info.t +@@ -188,6 +188,10 @@ for my $f (keys (%$dump)) { + ) { + $ext_data =~ s{(othername:) [^, ]+}{$1}g; + } ++ # Starting with 3.4.0 the double colon in emailAddress has been removed. ++ if (Net::SSLeay::SSLeay >= 0x30400000) { ++ $ext_data =~ s{emailAddress::}{emailAddress:}; ++ } + } + elsif ( $nid == 89 ) { + # The output formatting for certificate policies has a +@@ -214,6 +218,9 @@ for my $f (keys (%$dump)) { + # OpenSSL 1.0.0 to 1.1.1: + $ext_data =~ s{(Full Name:\n )}{\n$1}g; + $ext_data .= "\n"; ++ } elsif ( Net::SSLeay::SSLeay > 0x3040000f ) { ++ $ext_data =~ s{(\nFull Name:)}{\n$1}g; ++ $ext_data .= "\n"; + } + } + elsif ( $nid == 126 ) { diff --git a/perl-Net-SSLeay.spec b/perl-Net-SSLeay.spec index eb66086..812f8d0 100644 --- a/perl-Net-SSLeay.spec +++ b/perl-Net-SSLeay.spec @@ -6,13 +6,14 @@ Name: perl-Net-SSLeay Version: 1.94 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Perl extension for using OpenSSL License: Artistic-2.0 URL: https://metacpan.org/release/Net-SSLeay Source0: https://cpan.metacpan.org/modules/by-module/Net/Net-SSLeay-%{version}.tar.gz Patch10: Net-SSLeay-1.90-pkgconfig.patch Patch11: Net-SSLeay-1.90-openssl3.0.0-tests-disable_TLS1_and_TLS1_1.patch +Patch12: Net-SSLeay-1.94-openssl3.4.0-tests-fix.patch # =========== Module Build =========================== BuildRequires: coreutils BuildRequires: findutils @@ -106,6 +107,10 @@ with "%{_libexecdir}/%{name}/test". # Disable TLS1 and TLS1_1 from tests %patch -P 11 -p1 +# Fix test suite to work with OpenSSL 3.4.0 and newer +# https://github.com/radiator-software/p5-net-ssleay/pull/520 +%patch -P 12 -p1 + # Fix permissions in examples to avoid bogus doc-file dependencies chmod -c 644 examples/* @@ -165,6 +170,10 @@ OPENSSL_ENABLE_SHA1_SIGNATURES=1 make test %{_libexecdir}/%{name} %changelog +* Tue May 20 2025 Andrea Bolognani - 1.94-8 +- Fix test suite to work with OpenSSL 3.4.0 and newer + Resolves: RHEL-92601 + * Tue Oct 29 2024 Troy Dawson - 1.94-7 - Bump release for October 2024 mass rebuild: Resolves: RHEL-64018