commit:     657e609b5e68edcf665a1318089cc655c3d2b091
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 13 14:25:16 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Feb 13 14:25:16 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=657e609b

dev-perl/Net-SSLeay: partially fix tests w/ openssl-3.4.1

I still have one failure.

Bug: https://bugs.gentoo.org/949707
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-perl/Net-SSLeay/Net-SSLeay-1.940.0.ebuild      |  3 ++-
 .../Net-SSLeay-1.940.0-openssl-3.4-tests.patch     | 29 ++++++++++++++++++++++
 2 files changed, 31 insertions(+), 1 deletion(-)

diff --git a/dev-perl/Net-SSLeay/Net-SSLeay-1.940.0.ebuild 
b/dev-perl/Net-SSLeay/Net-SSLeay-1.940.0.ebuild
index b47ba1c89b1e..e82dfdb6550d 100644
--- a/dev-perl/Net-SSLeay/Net-SSLeay-1.940.0.ebuild
+++ b/dev-perl/Net-SSLeay/Net-SSLeay-1.940.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -37,6 +37,7 @@ BDEPEND="
 PATCHES=(
        "${FILESDIR}/${PN}-1.88-fix-network-tests.patch"
        "${FILESDIR}/${PN}-1.940.0-avoid-runtime-check.patch"
+       "${FILESDIR}/${PN}-1.940.0-openssl-3.4-tests.patch"
 )
 
 PERL_RM_FILES=(

diff --git 
a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.940.0-openssl-3.4-tests.patch 
b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.940.0-openssl-3.4-tests.patch
new file mode 100644
index 000000000000..ca20b5e3b3af
--- /dev/null
+++ b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.940.0-openssl-3.4-tests.patch
@@ -0,0 +1,29 @@
+https://bugs.gentoo.org/949707
+https://github.com/radiator-software/p5-net-ssleay/issues/493
+https://github.com/radiator-software/p5-net-ssleay/issues/494
+https://github.com/radiator-software/p5-net-ssleay/issues/511
+https://github.com/radiator-software/p5-net-ssleay/pull/487
+
+From e73cf1139a6651a968828d1634be8fec5beb50ba Mon Sep 17 00:00:00 2001
+From: Sebastian Andrzej Siewior <[email protected]>
+Date: Wed, 16 Oct 2024 21:48:51 +0200
+Subject: [PATCH] test: 32_x509_get_cert_info allow single colon.
+
+Starting with 3.4.0 the double colon in emailAddress has been removed.
+Adapt the test to allow a single colon in 3.4.0 and later.
+
+Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
+--- 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
+

Reply via email to