From 8cc9532859f72d11a6d6be97b154103044638fba Mon Sep 17 00:00:00 2001 From: shixuantong <1726671442@qq.com> Date: Tue, 28 Jun 2022 14:12:48 +0800 Subject: [PATCH] fix Failed test CIPHER_get_version --- ...r-fix-Failed-test-CIPHER_get_version.patch | 25 +++++++++++++++++++ perl-Net-SSLeay.spec | 10 ++++++-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 openEuler-fix-Failed-test-CIPHER_get_version.patch diff --git a/openEuler-fix-Failed-test-CIPHER_get_version.patch b/openEuler-fix-Failed-test-CIPHER_get_version.patch new file mode 100644 index 0000000..7f7f592 --- /dev/null +++ b/openEuler-fix-Failed-test-CIPHER_get_version.patch @@ -0,0 +1,25 @@ +From e25fe9f0bc14386e9ddc0259f1789ff2b9986354 Mon Sep 17 00:00:00 2001 +From: shixuantong +Date: Tue, 28 Jun 2022 11:52:56 +0800 +Subject: [PATCH] fix Failed test CIPHER_get_version + +--- + t/local/43_misc_functions.t | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/t/local/43_misc_functions.t b/t/local/43_misc_functions.t +index c67df75..dbe0923 100644 +--- a/t/local/43_misc_functions.t ++++ b/t/local/43_misc_functions.t +@@ -318,7 +318,7 @@ sub test_cipher_funcs + + # For example: TLSv1/SSLv3, SSLv2 + my $vers = Net::SSLeay::CIPHER_get_version($c); +- $vers_failed++ if length($vers) < 5; ++ $vers_failed++ if (length($vers) < 5 and $vers ne "TLCP"); + + # See that get_bits returns the same no matter how it's called + my $alg_bits; +-- +1.8.3.1 + diff --git a/perl-Net-SSLeay.spec b/perl-Net-SSLeay.spec index d7c4d78..1595137 100644 --- a/perl-Net-SSLeay.spec +++ b/perl-Net-SSLeay.spec @@ -1,10 +1,13 @@ Name: perl-Net-SSLeay Version: 1.90 -Release: 1 +Release: 2 Summary: Perl module for using OpenSSL License: Artistic 2.0 URL: https://metacpan.org/release/Net-SSLeay Source0: https://cpan.metacpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-%{version}.tar.gz + +Patch9000: openEuler-fix-Failed-test-CIPHER_get_version.patch + # Build requires BuildRequires: openssl-devel perl-devel perl-generators gcc bc openssl # Test Suite requires @@ -18,7 +21,7 @@ This Package provides perl modules(Net::SSLeay and Net::SSLeay::Handle) for usin %package_help %prep -%autosetup -n Net-SSLeay-%{version} +%autosetup -n Net-SSLeay-%{version} -p1 rm -f examples/cb-testi.pl examples/server_key.pem @@ -44,6 +47,9 @@ make test %doc QuickRef examples/ %changelog +* Tue Jun 28 2022 shixuantong - 1.90-2 +- fix Failed test CIPHER_get_version + * Mon Dec 20 2021 shangyibin - 1.90-1 - DESC:update version to 1.90