[perl-Net-SSLeay] Fix usage of OBJ_cmp in the test suite (CPAN RT#91215)

Paul Howarth pghmcfc at fedoraproject.org
Fri Dec 6 14:05:20 UTC 2013


commit a16de53dba34ad8e145c3ac22acf8153b6852861
Author: Paul Howarth <paul at city-fan.org>
Date:   Fri Dec 6 14:05:04 2013 +0000

    Fix usage of OBJ_cmp in the test suite (CPAN RT#91215)

 Net-SSLeay-1.55-OBJ_cmp.patch |   12 ++++++++++++
 perl-Net-SSLeay.spec          |    9 ++++++++-
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/Net-SSLeay-1.55-OBJ_cmp.patch b/Net-SSLeay-1.55-OBJ_cmp.patch
new file mode 100644
index 0000000..889a952
--- /dev/null
+++ b/Net-SSLeay-1.55-OBJ_cmp.patch
@@ -0,0 +1,12 @@
+Index: t/local/36_verify.t
+===================================================================
+--- t/local/36_verify.t	(revision 387)
++++ t/local/36_verify.t	(working copy)
+@@ -60,6 +60,6 @@
+ my $asn_object2 = Net::SSLeay::OBJ_txt2obj('1.2.3.4', 0);
+ ok(Net::SSLeay::OBJ_cmp($asn_object2, $asn_object) == 0, 'OBJ_cmp');
+ $asn_object2 = Net::SSLeay::OBJ_txt2obj('1.2.3.5', 0);
+-ok(Net::SSLeay::OBJ_cmp($asn_object2, $asn_object) == 1, 'OBJ_cmp');
++ok(Net::SSLeay::OBJ_cmp($asn_object2, $asn_object) != 0, 'OBJ_cmp');
+ 
+ ok(1, 'Finishing up');
diff --git a/perl-Net-SSLeay.spec b/perl-Net-SSLeay.spec
index 02bca94..2ef9310 100644
--- a/perl-Net-SSLeay.spec
+++ b/perl-Net-SSLeay.spec
@@ -1,11 +1,12 @@
 Name:		perl-Net-SSLeay
 Version:	1.55
-Release:	5%{?dist}
+Release:	6%{?dist}
 Summary:	Perl extension for using OpenSSL
 Group:		Development/Libraries
 License:	OpenSSL
 URL:		http://search.cpan.org/dist/Net-SSLeay/
 Source0:	http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/Net-SSLeay-%{version}.tar.gz
+Patch2:		Net-SSLeay-1.55-OBJ_cmp.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
 BuildRequires:	openssl, openssl-devel
 # =========== Module Build ===========================
@@ -52,6 +53,9 @@ so you can write servers or clients for more complicated applications.
 %prep
 %setup -q -n Net-SSLeay-%{version}
 
+# Fix usage of OBJ_cmp in the test suite (CPAN RT#91215)
+%patch2
+
 # Fix permissions in examples to avoid bogus doc-file dependencies
 chmod -c 644 examples/*
 
@@ -92,6 +96,9 @@ rm -rf %{buildroot}
 %{_mandir}/man3/Net::SSLeay::Handle.3pm*
 
 %changelog
+* Fri Dec  6 2013 Paul Howarth <paul at city-fan.org> - 1.55-6
+- Fix usage of OBJ_cmp in the test suite (CPAN RT#91215)
+
 * Sun Dec  1 2013 Paul Howarth <paul at city-fan.org> - 1.55-5
 - Drop the kwalitee test for now as it's too fussy for the current code
 


More information about the scm-commits mailing list