Resolves: RHEL-92846
This commit is contained in:
parent
1eb4880e04
commit
caf056235f
25
Net-SSLeay-1.94-openssl3.4.0-tests-fix.patch
Normal file
25
Net-SSLeay-1.94-openssl3.4.0-tests-fix.patch
Normal file
@ -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<unsupported>}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 ) {
|
||||
@ -4,4 +4,3 @@ product_versions:
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}
|
||||
|
||||
@ -6,13 +6,14 @@
|
||||
|
||||
Name: perl-Net-SSLeay
|
||||
Version: 1.94
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?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
|
||||
Patch1: Net-SSLeay-1.90-pkgconfig.patch
|
||||
Patch2: Net-SSLeay-1.90-openssl3.0.0-tests-disable_TLS1_and_TLS1_1.patch
|
||||
Patch3: Net-SSLeay-1.94-openssl3.4.0-tests-fix.patch
|
||||
# =========== Module Build ===========================
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
@ -62,7 +63,7 @@ BuildRequires: perl(Test::More) >= 0.61
|
||||
BuildRequires: perl(threads)
|
||||
BuildRequires: perl(warnings)
|
||||
# =========== Optional Tests =========================
|
||||
%if %{with perl_Net_SSLeay_enables_optional_test}
|
||||
%if %{with perl_N et_SSLeay_enables_optional_test}
|
||||
BuildRequires: perl(Crypt::OpenSSL::Bignum)
|
||||
# Test::Kwalitee 1.00 not used
|
||||
BuildRequires: perl(Test::Pod) >= 1.41
|
||||
@ -107,6 +108,10 @@ with "%{_libexecdir}/%{name}/test".
|
||||
# Disable TLS1 and TLS1_1 from tests
|
||||
%patch -P2 -p1
|
||||
|
||||
# Fix test suite to work with OpenSSL 3.4.0 and newer
|
||||
# https://github.com/radiator-software/p5-net-ssleay/pull/520
|
||||
%patch -P3 -p1
|
||||
|
||||
# Fix permissions in examples to avoid bogus doc-file dependencies
|
||||
chmod -c 644 examples/*
|
||||
|
||||
@ -147,7 +152,6 @@ cd %{_libexecdir}/%{name} && exec prove -I . -r -j "$(getconf _NPROCESSORS_ONLN)
|
||||
EOF
|
||||
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
||||
|
||||
|
||||
%check
|
||||
unset RELEASE_TESTING
|
||||
OPENSSL_ENABLE_SHA1_SIGNATURES=1 make test
|
||||
@ -167,6 +171,10 @@ OPENSSL_ENABLE_SHA1_SIGNATURES=1 make test
|
||||
%{_libexecdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Thu May 22 2025 Jitka Plesnikova <jplesnik@redhat.com> - 1.94-2
|
||||
- Fix test suite to work with OpenSSL 3.4.0 and newer
|
||||
Resolves: RHEL-92846
|
||||
|
||||
* Mon Jun 17 2024 Jitka Plesnikova <jplesnik@redhat.com> - 1.94-1
|
||||
- Resolves: RHEL-40758
|
||||
- Update to 1.94
|
||||
|
||||
12
plans/internal.fmf
Normal file
12
plans/internal.fmf
Normal file
@ -0,0 +1,12 @@
|
||||
summary: Private (RHEL) beakerlib tests
|
||||
enabled: false
|
||||
adjust:
|
||||
- when: distro == rhel
|
||||
enabled: true
|
||||
because: private tests are accesible only within rhel pipline
|
||||
discover:
|
||||
- name: rhel
|
||||
how: fmf
|
||||
url: https://pkgs.devel.redhat.com/git/tests/perl-Net-SSLeay
|
||||
execute:
|
||||
how: tmt
|
||||
@ -6,12 +6,7 @@ test: /usr/libexec/perl-Net-SSLeay/test
|
||||
enabled: true
|
||||
tag:
|
||||
- rhel-buildroot
|
||||
- TestCaseCopy
|
||||
- Tier1
|
||||
tier: '1'
|
||||
adjust:
|
||||
- enabled: false
|
||||
when: distro < rhel-9 or distro < centos-stream-9
|
||||
continue: false
|
||||
extra-nitrate: TC#0617567
|
||||
id: a695ec04-37b7-4e91-a9a7-00946785912e
|
||||
|
||||
Loading…
Reference in New Issue
Block a user