public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/libressl:master commit in: dev-perl/Net-SSLeay/files/, dev-perl/Net-SSLeay/
@ 2021-10-02 22:15 Quentin Retornaz
  0 siblings, 0 replies; 8+ messages in thread
From: Quentin Retornaz @ 2021-10-02 22:15 UTC (permalink / raw
  To: gentoo-commits

commit:     86e2724d5e63ec737a569d087782327f5bec239a
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Sat Oct  2 05:53:03 2021 +0000
Commit:     Quentin Retornaz <gentoo <AT> retornaz <DOT> com>
CommitDate: Sat Oct  2 22:14:32 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=86e2724d

dev-perl/Net-SSLeay: Added

Signed-off-by: orbea <orbea <AT> riseup.net>
Closes: https://github.com/gentoo/libressl/pull/356
Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com>

 dev-perl/Net-SSLeay/Manifest                       |  1 +
 dev-perl/Net-SSLeay/Net-SSLeay-1.900.0.ebuild      | 64 ++++++++++++++++++++++
 .../files/Net-SSLeay-1.88-fix-libdir.patch         | 27 +++++++++
 .../files/Net-SSLeay-1.88-fix-network-tests.patch  | 17 ++++++
 .../files/Net-SSLeay-1.900.0-libressl.patch        | 24 ++++++++
 5 files changed, 133 insertions(+)

diff --git a/dev-perl/Net-SSLeay/Manifest b/dev-perl/Net-SSLeay/Manifest
new file mode 100644
index 0000000..5937ab9
--- /dev/null
+++ b/dev-perl/Net-SSLeay/Manifest
@@ -0,0 +1 @@
+DIST Net-SSLeay-1.90.tar.gz 534246 BLAKE2B 2510fa886db8b7c5f185aa1145ae1b50b7c4101a9bd80e17c8c1d77718765f288c9180464d831775c35aa94b5a6f6c8f717ecaeb4974f7280829b63f10567f22 SHA512 8a5f251b5ef1d8c2d619d984594a7a22ddeed2e5e726fe683a45f299d7878f4ca8ffab00480ebf5ef7a94ae1fcf6be05dfdaa68b8bfe2ad68443150765adb891

diff --git a/dev-perl/Net-SSLeay/Net-SSLeay-1.900.0.ebuild b/dev-perl/Net-SSLeay/Net-SSLeay-1.900.0.ebuild
new file mode 100644
index 0000000..5d4c2b8
--- /dev/null
+++ b/dev-perl/Net-SSLeay/Net-SSLeay-1.900.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DIST_AUTHOR=CHRISN
+DIST_VERSION=1.90
+DIST_EXAMPLES=("examples/*")
+inherit multilib perl-module
+
+DESCRIPTION="Perl extension for using OpenSSL"
+
+LICENSE="Artistic-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="minimal examples"
+
+RDEPEND="
+	dev-libs/openssl:0=
+	virtual/perl-MIME-Base64
+"
+BDEPEND="${RDEPEND}
+	virtual/perl-ExtUtils-MakeMaker
+	test? (
+		!minimal? (
+			dev-perl/Test-Exception
+			dev-perl/Test-Warn
+			dev-perl/Test-NoWarnings
+		)
+		virtual/perl-Test-Simple
+	)
+"
+
+PATCHES=(
+	"${FILESDIR}/${PN}-1.88-fix-network-tests.patch"
+	"${FILESDIR}/${PN}-1.88-fix-libdir.patch"
+	"${FILESDIR}/${P}-libressl.patch"
+)
+
+PERL_RM_FILES=(
+	# Hateful author tests
+	't/local/01_pod.t'
+	't/local/02_pod_coverage.t'
+	't/local/kwalitee.t'
+)
+
+src_configure() {
+	if use test && has network ${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}; then
+		export NETWORK_TESTS=yes
+	else
+		use test && einfo "Network tests will be skipped without DIST_TEST_OVERRIDE=~network"
+		export NETWORK_TESTS=no
+	fi
+	export LIBDIR=$(get_libdir)
+	perl-module_src_configure
+}
+
+src_compile() {
+	mymake=(
+		OPTIMIZE="${CFLAGS}"
+		OPENSSL_PREFIX="${EPREFIX}"/usr
+	)
+	perl-module_src_compile
+}

diff --git a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.88-fix-libdir.patch b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.88-fix-libdir.patch
new file mode 100644
index 0000000..d78acb9
--- /dev/null
+++ b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.88-fix-libdir.patch
@@ -0,0 +1,27 @@
+Bug: https://bugs.gentoo.org/416339
+
+The previous patch for the above bug report used $ENV{LIBDIR} but this
+wasn't enough to help with cross-compiling. We could use $ENV{SYSROOT}
+but this results in a bogus RPATH entry. It is better to simply trust
+the toolchain, which may have its own sysroot applied.
+
+Cross-compiling Perl modules requires additional hackery but at least
+that hackery will work now. :)
+
+Chewi
+2017/12/03
+
+diff -Naur a/Makefile.PL b/Makefile.PL
+--- a/Makefile.PL	2017-10-13 01:38:01.000000000 +0100
++++ b/Makefile.PL	2017-12-03 10:52:27.304861804 +0000
+@@ -141,10 +141,8 @@
+         cccdlflags => '',
+     };
+     for ("$prefix/include", "$prefix/inc32", '/usr/kerberos/include') {
+-      push @{$opts->{inc_paths}}, $_ if -f "$_/openssl/ssl.h";
+     }
+     for ($prefix, "$prefix/lib64", "$prefix/lib", "$prefix/out32dll") {
+-      push @{$opts->{lib_paths}}, $_ if -d $_;
+     }
+ 
+     my $rsaref  = $self->ssleay_is_rsaref;

diff --git a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.88-fix-network-tests.patch b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.88-fix-network-tests.patch
new file mode 100644
index 0000000..a98c4c8
--- /dev/null
+++ b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.88-fix-network-tests.patch
@@ -0,0 +1,17 @@
+diff --git a/Makefile.PL b/Makefile.PL
+index 31d9c74..91ac2b4 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -12,11 +12,7 @@ use Symbol qw(gensym);
+ # the Net-SSLeay loadable object on Windows
+ my $win_link_statically = 0;
+ 
+-my $tests = prompt(
+-  "Do you want to run external tests?\n".
+-  "These tests *will* *fail* if you do not have network connectivity.",
+-  'n',
+-) =~ /^y/i ? 't/*/*.t t/*/*/*.t' : 't/local/*.t t/handle/local/*.t';
++my $tests = ( 'yes' eq ( $ENV{NETWORK_TESTS} || '' ) ) ? 't/*/*.t t/*/*/*.t' : 't/local/*.t t/handle/local/*.t';
+ 
+ my %eumm_args = (
+   NAME => 'Net::SSLeay',

diff --git a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.900.0-libressl.patch b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.900.0-libressl.patch
new file mode 100644
index 0000000..dc5b69c
--- /dev/null
+++ b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.900.0-libressl.patch
@@ -0,0 +1,24 @@
+From 3cea3697bfc75ab3e5f4725eb1588ed9c4bff27a Mon Sep 17 00:00:00 2001
+From: Alexander Bluhm <alexander.bluhm@gmx.net>
+Date: Mon, 30 Aug 2021 21:31:20 +0200
+Subject: [PATCH] Use SSL_SESSION_get_master_key() for LibreSSL.
+
+Since version 2.7 LibreSSL implements SSL_SESSION_get_master_key().
+Use this instead of accessing internal struct fields.
+---
+ SSLeay.xs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/SSLeay.xs b/SSLeay.xs
+index c2257fa..5377ba6 100644
+--- a/SSLeay.xs
++++ b/SSLeay.xs
+@@ -6281,7 +6281,7 @@ SSL_total_renegotiations(ssl)
+   OUTPUT:
+   RETVAL
+ 
+-#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
++#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || (LIBRESSL_VERSION_NUMBER >= 0x2070000fL)
+ void
+ SSL_SESSION_get_master_key(s)
+      SSL_SESSION *   s


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [gentoo-commits] repo/proj/libressl:master commit in: dev-perl/Net-SSLeay/files/, dev-perl/Net-SSLeay/
@ 2024-04-05 17:24 orbea
  0 siblings, 0 replies; 8+ messages in thread
From: orbea @ 2024-04-05 17:24 UTC (permalink / raw
  To: gentoo-commits

commit:     fd533b7cd53db438633a2fbb12bd3b69e467a49e
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Fri Apr  5 16:53:39 2024 +0000
Commit:     orbea <orbea <AT> riseup <DOT> net>
CommitDate: Fri Apr  5 16:53:39 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=fd533b7c

dev-perl/Net-SSLeay: drop 1.900.0, 1.920.0

Signed-off-by: orbea <orbea <AT> riseup.net>

 dev-perl/Net-SSLeay/Manifest                       |  1 -
 dev-perl/Net-SSLeay/Net-SSLeay-1.900.0.ebuild      | 67 ----------------------
 dev-perl/Net-SSLeay/Net-SSLeay-1.920.0.ebuild      | 67 ----------------------
 .../files/Net-SSLeay-1.88-fix-libdir.patch         | 27 ---------
 4 files changed, 162 deletions(-)

diff --git a/dev-perl/Net-SSLeay/Manifest b/dev-perl/Net-SSLeay/Manifest
index 99ece84..5b509c1 100644
--- a/dev-perl/Net-SSLeay/Manifest
+++ b/dev-perl/Net-SSLeay/Manifest
@@ -1,3 +1,2 @@
-DIST Net-SSLeay-1.90.tar.gz 534246 BLAKE2B 2510fa886db8b7c5f185aa1145ae1b50b7c4101a9bd80e17c8c1d77718765f288c9180464d831775c35aa94b5a6f6c8f717ecaeb4974f7280829b63f10567f22 SHA512 8a5f251b5ef1d8c2d619d984594a7a22ddeed2e5e726fe683a45f299d7878f4ca8ffab00480ebf5ef7a94ae1fcf6be05dfdaa68b8bfe2ad68443150765adb891
 DIST Net-SSLeay-1.92.tar.gz 555930 BLAKE2B 04d97860817b013a9680e0ef29b0004ddb98da2db859761a45612c4d25b6edd16bf92645293d1108d83352bce18665721c6df05455426b32a95a42b464119a3d SHA512 e9d9161ebeb7be90f4c7a0ea98f1034892ce6d33aa72872683177b19daa1f4c5819f85ea9a052a076ec8d7c21705f6c344aef64680bc881bf3218d38e8b7b173
 DIST Net-SSLeay-1.94.tar.gz 663948 BLAKE2B 97cef98bf3794ec992817e5ad91f8403ded95e29184512d9f23b5cbbd765912d2e7f8e835366b40aae9682dd13947cd79e2d9dcca2d10cd78e3c7869b1e197db SHA512 f1461667269f3da56ff7e1724b5511b95c34582250f8336e9f93d30f3b30d4a5360eb27622b9730bba11df75e00d717c7f0cea2120d20206723db136a8509375

diff --git a/dev-perl/Net-SSLeay/Net-SSLeay-1.900.0.ebuild b/dev-perl/Net-SSLeay/Net-SSLeay-1.900.0.ebuild
deleted file mode 100644
index 1ad4419..0000000
--- a/dev-perl/Net-SSLeay/Net-SSLeay-1.900.0.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DIST_AUTHOR=CHRISN
-DIST_VERSION=1.90
-DIST_EXAMPLES=("examples/*")
-inherit perl-module
-
-DESCRIPTION="Perl extension for using OpenSSL"
-
-LICENSE="Artistic-2"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
-IUSE="minimal examples"
-
-RDEPEND="
-	dev-libs/openssl:0=
-	virtual/perl-MIME-Base64
-"
-BDEPEND="${RDEPEND}
-	virtual/perl-ExtUtils-MakeMaker
-	test? (
-		!minimal? (
-			dev-perl/Test-Exception
-			dev-perl/Test-Warn
-			dev-perl/Test-NoWarnings
-		)
-		virtual/perl-Test-Simple
-	)
-"
-
-PATCHES=(
-	"${FILESDIR}/${PN}-1.88-fix-network-tests.patch"
-	"${FILESDIR}/${PN}-1.88-fix-libdir.patch"
-	"${FILESDIR}/${PN}-1.90-libressl.patch"
-	"${FILESDIR}/${PN}-1.92-libressl-3.8.0.patch"
-	"${FILESDIR}/${PN}-1.92-libressl-3.9.0.patch"
-)
-
-PERL_RM_FILES=(
-	# Hateful author tests
-	't/local/01_pod.t'
-	't/local/02_pod_coverage.t'
-	't/local/kwalitee.t'
-)
-
-src_configure() {
-	if use test && has network ${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}; then
-		export NETWORK_TESTS=yes
-	else
-		use test && einfo "Network tests will be skipped without DIST_TEST_OVERRIDE=~network"
-		export NETWORK_TESTS=no
-	fi
-	export LIBDIR=$(get_libdir)
-	use prefix && export OPENSSL_PREFIX="${EPREFIX}/usr"
-	perl-module_src_configure
-}
-
-src_compile() {
-	mymake=(
-		OPTIMIZE="${CFLAGS}"
-		OPENSSL_PREFIX="${EPREFIX}"/usr
-	)
-	perl-module_src_compile
-}

diff --git a/dev-perl/Net-SSLeay/Net-SSLeay-1.920.0.ebuild b/dev-perl/Net-SSLeay/Net-SSLeay-1.920.0.ebuild
deleted file mode 100644
index 90cf732..0000000
--- a/dev-perl/Net-SSLeay/Net-SSLeay-1.920.0.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DIST_AUTHOR=CHRISN
-DIST_VERSION=1.92
-DIST_EXAMPLES=("examples/*")
-inherit perl-module
-
-DESCRIPTION="Perl extension for using OpenSSL"
-
-LICENSE="Artistic-2"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
-IUSE="minimal examples"
-
-RDEPEND="
-	dev-libs/openssl:=
-	virtual/perl-MIME-Base64
-"
-DEPEND="${RDEPEND}"
-BDEPEND="${RDEPEND}
-	virtual/perl-ExtUtils-MakeMaker
-	virtual/perl-File-Spec
-	test? (
-		!minimal? (
-			dev-perl/Test-Exception
-			dev-perl/Test-Warn
-			dev-perl/Test-NoWarnings
-		)
-		virtual/perl-Test-Simple
-	)
-"
-
-PATCHES=(
-	"${FILESDIR}/${PN}-1.88-fix-network-tests.patch"
-	"${FILESDIR}/${PN}-1.92-libressl.patch" #903001
-	"${FILESDIR}/${PN}-1.92-libressl-3.9.0.patch"
-)
-
-PERL_RM_FILES=(
-	# Hateful author tests
-	't/local/01_pod.t'
-	't/local/02_pod_coverage.t'
-	't/local/kwalitee.t'
-)
-
-src_configure() {
-	if use test && has network ${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}; then
-		export NETWORK_TESTS=yes
-	else
-		use test && einfo "Network tests will be skipped without DIST_TEST_OVERRIDE=~network"
-		export NETWORK_TESTS=no
-	fi
-	export LIBDIR=$(get_libdir)
-	export OPENSSL_PREFIX="${ESYSROOT}/usr"
-	perl-module_src_configure
-}
-
-src_compile() {
-	mymake=(
-		OPTIMIZE="${CFLAGS}"
-		OPENSSL_PREFIX="${ESYSROOT}"/usr
-	)
-	perl-module_src_compile
-}

diff --git a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.88-fix-libdir.patch b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.88-fix-libdir.patch
deleted file mode 100644
index d78acb9..0000000
--- a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.88-fix-libdir.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-Bug: https://bugs.gentoo.org/416339
-
-The previous patch for the above bug report used $ENV{LIBDIR} but this
-wasn't enough to help with cross-compiling. We could use $ENV{SYSROOT}
-but this results in a bogus RPATH entry. It is better to simply trust
-the toolchain, which may have its own sysroot applied.
-
-Cross-compiling Perl modules requires additional hackery but at least
-that hackery will work now. :)
-
-Chewi
-2017/12/03
-
-diff -Naur a/Makefile.PL b/Makefile.PL
---- a/Makefile.PL	2017-10-13 01:38:01.000000000 +0100
-+++ b/Makefile.PL	2017-12-03 10:52:27.304861804 +0000
-@@ -141,10 +141,8 @@
-         cccdlflags => '',
-     };
-     for ("$prefix/include", "$prefix/inc32", '/usr/kerberos/include') {
--      push @{$opts->{inc_paths}}, $_ if -f "$_/openssl/ssl.h";
-     }
-     for ($prefix, "$prefix/lib64", "$prefix/lib", "$prefix/out32dll") {
--      push @{$opts->{lib_paths}}, $_ if -d $_;
-     }
- 
-     my $rsaref  = $self->ssleay_is_rsaref;


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [gentoo-commits] repo/proj/libressl:master commit in: dev-perl/Net-SSLeay/files/, dev-perl/Net-SSLeay/
@ 2024-03-11  0:42 orbea
  0 siblings, 0 replies; 8+ messages in thread
From: orbea @ 2024-03-11  0:42 UTC (permalink / raw
  To: gentoo-commits

commit:     56ba8e0934abe7b4086aabe6e49bd0f9223ba1b9
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Sun Mar 10 18:25:58 2024 +0000
Commit:     orbea <orbea <AT> riseup <DOT> net>
CommitDate: Sun Mar 10 18:59:31 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=56ba8e09

dev-perl/Net-SSLeay: add 1.920.0-r1, 1.940.0

Signed-off-by: orbea <orbea <AT> riseup.net>

 dev-perl/Net-SSLeay/Manifest                       |  1 +
 dev-perl/Net-SSLeay/Net-SSLeay-1.920.0-r1.ebuild   | 67 ++++++++++++++++++++++
 dev-perl/Net-SSLeay/Net-SSLeay-1.940.0.ebuild      | 67 ++++++++++++++++++++++
 .../files/Net-SSLeay-1.92-libressl-3.9.0.patch     | 44 ++++++++++++++
 .../files/Net-SSLeay-1.94-libressl.patch           | 42 ++++++++++++++
 5 files changed, 221 insertions(+)

diff --git a/dev-perl/Net-SSLeay/Manifest b/dev-perl/Net-SSLeay/Manifest
index 5859dc2..99ece84 100644
--- a/dev-perl/Net-SSLeay/Manifest
+++ b/dev-perl/Net-SSLeay/Manifest
@@ -1,2 +1,3 @@
 DIST Net-SSLeay-1.90.tar.gz 534246 BLAKE2B 2510fa886db8b7c5f185aa1145ae1b50b7c4101a9bd80e17c8c1d77718765f288c9180464d831775c35aa94b5a6f6c8f717ecaeb4974f7280829b63f10567f22 SHA512 8a5f251b5ef1d8c2d619d984594a7a22ddeed2e5e726fe683a45f299d7878f4ca8ffab00480ebf5ef7a94ae1fcf6be05dfdaa68b8bfe2ad68443150765adb891
 DIST Net-SSLeay-1.92.tar.gz 555930 BLAKE2B 04d97860817b013a9680e0ef29b0004ddb98da2db859761a45612c4d25b6edd16bf92645293d1108d83352bce18665721c6df05455426b32a95a42b464119a3d SHA512 e9d9161ebeb7be90f4c7a0ea98f1034892ce6d33aa72872683177b19daa1f4c5819f85ea9a052a076ec8d7c21705f6c344aef64680bc881bf3218d38e8b7b173
+DIST Net-SSLeay-1.94.tar.gz 663948 BLAKE2B 97cef98bf3794ec992817e5ad91f8403ded95e29184512d9f23b5cbbd765912d2e7f8e835366b40aae9682dd13947cd79e2d9dcca2d10cd78e3c7869b1e197db SHA512 f1461667269f3da56ff7e1724b5511b95c34582250f8336e9f93d30f3b30d4a5360eb27622b9730bba11df75e00d717c7f0cea2120d20206723db136a8509375

diff --git a/dev-perl/Net-SSLeay/Net-SSLeay-1.920.0-r1.ebuild b/dev-perl/Net-SSLeay/Net-SSLeay-1.920.0-r1.ebuild
new file mode 100644
index 0000000..8d1b393
--- /dev/null
+++ b/dev-perl/Net-SSLeay/Net-SSLeay-1.920.0-r1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DIST_AUTHOR=CHRISN
+DIST_VERSION=1.92
+DIST_EXAMPLES=("examples/*")
+inherit perl-module
+
+DESCRIPTION="Perl extension for using OpenSSL"
+
+LICENSE="Artistic-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="minimal examples"
+
+RDEPEND="
+	dev-libs/openssl:=
+	virtual/perl-MIME-Base64
+"
+DEPEND="${RDEPEND}"
+BDEPEND="${RDEPEND}
+	virtual/perl-ExtUtils-MakeMaker
+	virtual/perl-File-Spec
+	test? (
+		!minimal? (
+			dev-perl/Test-Exception
+			dev-perl/Test-Warn
+			dev-perl/Test-NoWarnings
+		)
+		virtual/perl-Test-Simple
+	)
+"
+
+PATCHES=(
+	"${FILESDIR}/${PN}-1.88-fix-network-tests.patch"
+	"${FILESDIR}/${PN}-1.92-libressl.patch" #903001
+	"${FILESDIR}/${PN}-1.92-libressl-3.9.0.patch"
+)
+
+PERL_RM_FILES=(
+	# Hateful author tests
+	't/local/01_pod.t'
+	't/local/02_pod_coverage.t'
+	't/local/kwalitee.t'
+)
+
+src_configure() {
+	if use test && has network ${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}; then
+		export NETWORK_TESTS=yes
+	else
+		use test && einfo "Network tests will be skipped without DIST_TEST_OVERRIDE=~network"
+		export NETWORK_TESTS=no
+	fi
+	export LIBDIR=$(get_libdir)
+	export OPENSSL_PREFIX="${ESYSROOT}/usr"
+	perl-module_src_configure
+}
+
+src_compile() {
+	mymake=(
+		OPTIMIZE="${CFLAGS}"
+		OPENSSL_PREFIX="${ESYSROOT}"/usr
+	)
+	perl-module_src_compile
+}

diff --git a/dev-perl/Net-SSLeay/Net-SSLeay-1.940.0.ebuild b/dev-perl/Net-SSLeay/Net-SSLeay-1.940.0.ebuild
new file mode 100644
index 0000000..a2ad5d1
--- /dev/null
+++ b/dev-perl/Net-SSLeay/Net-SSLeay-1.940.0.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DIST_AUTHOR=CHRISN
+DIST_VERSION=1.94
+DIST_EXAMPLES=("examples/*")
+inherit perl-module
+
+DESCRIPTION="Perl extension for using OpenSSL"
+
+LICENSE="Artistic-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="minimal examples"
+
+RDEPEND="
+	dev-libs/openssl:=
+	virtual/perl-MIME-Base64
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+	${RDEPEND}
+	virtual/perl-ExtUtils-MakeMaker
+	virtual/perl-File-Spec
+	test? (
+		!minimal? (
+			dev-perl/Test-Exception
+			dev-perl/Test-Warn
+			dev-perl/Test-NoWarnings
+		)
+		virtual/perl-Test-Simple
+	)
+"
+
+PATCHES=(
+	"${FILESDIR}/${PN}-1.88-fix-network-tests.patch"
+	"${FILESDIR}/${PN}-1.94-libressl.patch" #903001
+)
+
+PERL_RM_FILES=(
+	# Author tests
+	't/local/01_pod.t'
+	't/local/02_pod_coverage.t'
+	't/local/kwalitee.t'
+)
+
+src_configure() {
+	if use test && has network ${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}; then
+		export NETWORK_TESTS=yes
+	else
+		use test && einfo "Network tests will be skipped without DIST_TEST_OVERRIDE=~network"
+		export NETWORK_TESTS=no
+	fi
+	export LIBDIR=$(get_libdir)
+	export OPENSSL_PREFIX="${ESYSROOT}/usr"
+	perl-module_src_configure
+}
+
+src_compile() {
+	mymake=(
+		OPTIMIZE="${CFLAGS}"
+		OPENSSL_PREFIX="${ESYSROOT}"/usr
+	)
+	perl-module_src_compile
+}

diff --git a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.92-libressl-3.9.0.patch b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.92-libressl-3.9.0.patch
new file mode 100644
index 0000000..4699989
--- /dev/null
+++ b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.92-libressl-3.9.0.patch
@@ -0,0 +1,44 @@
+#1 EVP_add_digest() was removed.
+#2, #3 X509_ALGOR has an accessor, don't reach into it, so it can be made opaque.
+
+Index: SSLeay.xs
+--- a/SSLeay.xs.orig
++++ b/SSLeay.xs
+@@ -6451,10 +6451,14 @@ int EVP_add_digest(EVP_MD *digest)
+ 
+ #else
+ 
++#if !defined(LIBRESSL_VERSION_NUMBER) || (LIBRESSL_VERSION_NUMBER < 0x3090000fL)
++
+ int EVP_add_digest(const EVP_MD *digest)
+ 
+ #endif
+ 
++#endif
++
+ #ifndef OPENSSL_NO_SHA
+ 
+ const EVP_MD *EVP_sha1()
+@@ -6944,7 +6948,9 @@ P_X509_get_signature_alg(x)
+         X509 * x
+     CODE:
+ #if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || (LIBRESSL_VERSION_NUMBER >= 0x3050000fL)
+-        RETVAL = (X509_get0_tbs_sigalg(x)->algorithm);
++        const ASN1_OBJECT * obj;
++        X509_ALGOR_get0(&obj, NULL, NULL, X509_get0_tbs_sigalg(x));
++        RETVAL = (ASN1_OBJECT *)obj;
+ #else
+         RETVAL = (x->cert_info->signature->algorithm);
+ #endif
+@@ -6959,8 +6965,10 @@ P_X509_get_pubkey_alg(x)
+ #if OPENSSL_VERSION_NUMBER >= 0x10100000L
+     {
+ 	X509_ALGOR * algor;
++        const ASN1_OBJECT * obj;
+         X509_PUBKEY_get0_param(0, 0, 0, &algor, X509_get_X509_PUBKEY(x));
+-        RETVAL = (algor->algorithm);
++        X509_ALGOR_get0(&obj, NULL, NULL, algor);
++        RETVAL = ((ASN1_OBJECT *)obj);
+     }
+ #else
+         RETVAL = (x->cert_info->key->algor->algorithm);

diff --git a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.94-libressl.patch b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.94-libressl.patch
new file mode 100644
index 0000000..1eae0b7
--- /dev/null
+++ b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.94-libressl.patch
@@ -0,0 +1,42 @@
+#1 EVP_add_digest() was removed.
+#2, #3 X509_ALGOR has an accessor, don't reach into it, so it can be made opaque.
+
+Index: SSLeay.xs
+--- a/SSLeay.xs.orig
++++ b/SSLeay.xs
+@@ -7493,8 +7493,12 @@ SSL_CTX_set_tlsext_ticket_getkey_cb(ctx,callback=&PL_s
+ 
+ #endif
+ 
++#if !defined(LIBRESSL_VERSION_NUMBER) || (LIBRESSL_VERSION_NUMBER < 0x3090000fL)
++
+ int EVP_add_digest(const EVP_MD *digest)
+ 
++#endif
++
+ #ifndef OPENSSL_NO_SHA
+ 
+ const EVP_MD *EVP_sha1()
+@@ -7973,7 +7977,9 @@ P_X509_get_signature_alg(x)
+         X509 * x
+     CODE:
+ #if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || (LIBRESSL_VERSION_NUMBER >= 0x3050000fL)
+-        RETVAL = (X509_get0_tbs_sigalg(x)->algorithm);
++        const ASN1_OBJECT * obj;
++        X509_ALGOR_get0(&obj, NULL, NULL, X509_get0_tbs_sigalg(x));
++        RETVAL = (ASN1_OBJECT *)obj;
+ #else
+         RETVAL = (x->cert_info->signature->algorithm);
+ #endif
+@@ -7988,8 +7994,10 @@ P_X509_get_pubkey_alg(x)
+ #if OPENSSL_VERSION_NUMBER >= 0x10100000L
+     {
+ 	X509_ALGOR * algor;
++	const ASN1_OBJECT * obj;
+         X509_PUBKEY_get0_param(0, 0, 0, &algor, X509_get_X509_PUBKEY(x));
+-        RETVAL = (algor->algorithm);
++        X509_ALGOR_get0(&obj, NULL, NULL, algor);
++        RETVAL = ((ASN1_OBJECT *)obj);
+     }
+ #else
+         RETVAL = (x->cert_info->key->algor->algorithm);


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [gentoo-commits] repo/proj/libressl:master commit in: dev-perl/Net-SSLeay/files/, dev-perl/Net-SSLeay/
@ 2023-05-29 19:49 orbea
  0 siblings, 0 replies; 8+ messages in thread
From: orbea @ 2023-05-29 19:49 UTC (permalink / raw
  To: gentoo-commits

commit:     0c6641cc3ba9fb12a8867f7d87336996238dad10
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Mon May 29 19:37:08 2023 +0000
Commit:     orbea <orbea <AT> riseup <DOT> net>
CommitDate: Mon May 29 19:43:25 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=0c6641cc

dev-perl/Net-SSLeay: Fix build with LibreSSL-3.8.0

Upstream-PR: https://github.com/radiator-software/p5-net-ssleay/pull/434
Signed-off-by: orbea <orbea <AT> riseup.net>

 dev-perl/Net-SSLeay/Net-SSLeay-1.900.0.ebuild      |  1 +
 ...1.920.0.ebuild => Net-SSLeay-1.920.0-r1.ebuild} |  7 +++--
 dev-perl/Net-SSLeay/Net-SSLeay-1.920.0.ebuild      |  3 +-
 .../files/Net-SSLeay-1.92-libressl-3.8.0.patch     | 34 ++++++++++++++++++++++
 4 files changed, 41 insertions(+), 4 deletions(-)

diff --git a/dev-perl/Net-SSLeay/Net-SSLeay-1.900.0.ebuild b/dev-perl/Net-SSLeay/Net-SSLeay-1.900.0.ebuild
index 630cdf6..0f0f2f8 100644
--- a/dev-perl/Net-SSLeay/Net-SSLeay-1.900.0.ebuild
+++ b/dev-perl/Net-SSLeay/Net-SSLeay-1.900.0.ebuild
@@ -35,6 +35,7 @@ PATCHES=(
 	"${FILESDIR}/${PN}-1.88-fix-network-tests.patch"
 	"${FILESDIR}/${PN}-1.88-fix-libdir.patch"
 	"${FILESDIR}/${PN}-1.90-libressl.patch"
+	"${FILESDIR}/${PN}-1.92-libressl-3.8.0.patch"
 )
 
 PERL_RM_FILES=(

diff --git a/dev-perl/Net-SSLeay/Net-SSLeay-1.920.0.ebuild b/dev-perl/Net-SSLeay/Net-SSLeay-1.920.0-r1.ebuild
similarity index 80%
copy from dev-perl/Net-SSLeay/Net-SSLeay-1.920.0.ebuild
copy to dev-perl/Net-SSLeay/Net-SSLeay-1.920.0-r1.ebuild
index da87024..dfe368a 100644
--- a/dev-perl/Net-SSLeay/Net-SSLeay-1.920.0.ebuild
+++ b/dev-perl/Net-SSLeay/Net-SSLeay-1.920.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -12,7 +12,7 @@ DESCRIPTION="Perl extension for using OpenSSL"
 
 LICENSE="Artistic-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
 IUSE="minimal examples"
 
 RDEPEND="
@@ -35,7 +35,8 @@ BDEPEND="${RDEPEND}
 
 PATCHES=(
 	"${FILESDIR}/${PN}-1.88-fix-network-tests.patch"
-	"${FILESDIR}/${PN}-1.92-libressl.patch"
+	"${FILESDIR}/${PN}-1.92-libressl.patch" #903001
+	"${FILESDIR}/${PN}-1.92-libressl-3.8.0.patch"
 )
 
 PERL_RM_FILES=(

diff --git a/dev-perl/Net-SSLeay/Net-SSLeay-1.920.0.ebuild b/dev-perl/Net-SSLeay/Net-SSLeay-1.920.0.ebuild
index da87024..9ee02cd 100644
--- a/dev-perl/Net-SSLeay/Net-SSLeay-1.920.0.ebuild
+++ b/dev-perl/Net-SSLeay/Net-SSLeay-1.920.0.ebuild
@@ -35,7 +35,8 @@ BDEPEND="${RDEPEND}
 
 PATCHES=(
 	"${FILESDIR}/${PN}-1.88-fix-network-tests.patch"
-	"${FILESDIR}/${PN}-1.92-libressl.patch"
+	"${FILESDIR}/${PN}-1.92-libressl.patch" #903001
+	"${FILESDIR}/${PN}-1.92-libressl-3.8.0.patch"
 )
 
 PERL_RM_FILES=(

diff --git a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.92-libressl-3.8.0.patch b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.92-libressl-3.8.0.patch
new file mode 100644
index 0000000..d02333e
--- /dev/null
+++ b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.92-libressl-3.8.0.patch
@@ -0,0 +1,34 @@
+https://github.com/radiator-software/p5-net-ssleay/pull/434
+
+From 79a06ce5f9a77d8c65d51035f8edb6043864f342 Mon Sep 17 00:00:00 2001
+From: orbea <orbea@riseup.net>
+Date: Mon, 29 May 2023 10:16:33 -0700
+Subject: [PATCH] SSLeay.xs: Disable Policy Tree API for LibreSSL 3.8 and later
+
+This is taken from the OpenBSD ports tree.
+
+https://github.com/openbsd/ports/commit/f6567f938c9bd51bfd99f8426eba6a1590cc6384
+---
+ SSLeay.xs | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/SSLeay.xs b/SSLeay.xs
+index 102e89f..ae870c0 100644
+--- a/SSLeay.xs
++++ b/SSLeay.xs
+@@ -7157,6 +7157,7 @@ X509_VERIFY_PARAM_get0_peername(param)
+ 
+ #endif /* OpenSSL 1.0.2-beta2, LibreSSL 2.7.0 */
+ 
++#if !defined(LIBRESSL_VERSION_NUMBER) || (LIBRESSL_VERSION_NUMBER < 0x3080000fL) /* LibreSSL < 3.8.0 */
+ void
+ X509_policy_tree_free(tree)
+     X509_POLICY_TREE *tree
+@@ -7199,6 +7200,7 @@ const X509_POLICY_NODE *
+ X509_policy_node_get0_parent(node)
+     const X509_POLICY_NODE *node
+ 
++#endif /* !(LibreSSL >= 3.7.0) */
+ #endif
+ 
+ ASN1_OBJECT *


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [gentoo-commits] repo/proj/libressl:master commit in: dev-perl/Net-SSLeay/files/, dev-perl/Net-SSLeay/
@ 2022-11-15 21:18 Quentin Retornaz
  0 siblings, 0 replies; 8+ messages in thread
From: Quentin Retornaz @ 2022-11-15 21:18 UTC (permalink / raw
  To: gentoo-commits

commit:     628ecd5fe23aa3718cd9671da38c83391a312cb2
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Tue Nov 15 16:20:08 2022 +0000
Commit:     Quentin Retornaz <gentoo <AT> retornaz <DOT> com>
CommitDate: Tue Nov 15 21:18:01 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=628ecd5f

dev-perl/Net-SSLeay: Add 1.920.0

Signed-off-by: orbea <orbea <AT> riseup.net>
Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com>

 dev-perl/Net-SSLeay/Manifest                       |  1 +
 dev-perl/Net-SSLeay/Net-SSLeay-1.920.0.ebuild      | 66 ++++++++++++++++
 .../files/Net-SSLeay-1.920.0-libressl.patch        | 87 ++++++++++++++++++++++
 dev-perl/Net-SSLeay/metadata.xml                   | 13 ++++
 4 files changed, 167 insertions(+)

diff --git a/dev-perl/Net-SSLeay/Manifest b/dev-perl/Net-SSLeay/Manifest
index 5937ab9..5859dc2 100644
--- a/dev-perl/Net-SSLeay/Manifest
+++ b/dev-perl/Net-SSLeay/Manifest
@@ -1 +1,2 @@
 DIST Net-SSLeay-1.90.tar.gz 534246 BLAKE2B 2510fa886db8b7c5f185aa1145ae1b50b7c4101a9bd80e17c8c1d77718765f288c9180464d831775c35aa94b5a6f6c8f717ecaeb4974f7280829b63f10567f22 SHA512 8a5f251b5ef1d8c2d619d984594a7a22ddeed2e5e726fe683a45f299d7878f4ca8ffab00480ebf5ef7a94ae1fcf6be05dfdaa68b8bfe2ad68443150765adb891
+DIST Net-SSLeay-1.92.tar.gz 555930 BLAKE2B 04d97860817b013a9680e0ef29b0004ddb98da2db859761a45612c4d25b6edd16bf92645293d1108d83352bce18665721c6df05455426b32a95a42b464119a3d SHA512 e9d9161ebeb7be90f4c7a0ea98f1034892ce6d33aa72872683177b19daa1f4c5819f85ea9a052a076ec8d7c21705f6c344aef64680bc881bf3218d38e8b7b173

diff --git a/dev-perl/Net-SSLeay/Net-SSLeay-1.920.0.ebuild b/dev-perl/Net-SSLeay/Net-SSLeay-1.920.0.ebuild
new file mode 100644
index 0000000..14597a8
--- /dev/null
+++ b/dev-perl/Net-SSLeay/Net-SSLeay-1.920.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DIST_AUTHOR=CHRISN
+DIST_VERSION=1.92
+DIST_EXAMPLES=("examples/*")
+inherit perl-module
+
+DESCRIPTION="Perl extension for using OpenSSL"
+
+LICENSE="Artistic-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="minimal examples"
+
+RDEPEND="
+	dev-libs/openssl:=
+	virtual/perl-MIME-Base64
+"
+DEPEND="${RDEPEND}"
+BDEPEND="${RDEPEND}
+	virtual/perl-ExtUtils-MakeMaker
+	virtual/perl-File-Spec
+	test? (
+		!minimal? (
+			dev-perl/Test-Exception
+			dev-perl/Test-Warn
+			dev-perl/Test-NoWarnings
+		)
+		virtual/perl-Test-Simple
+	)
+"
+
+PATCHES=(
+	"${FILESDIR}/${PN}-1.88-fix-network-tests.patch"
+	"${FILESDIR}/${PN}-1.920.0-libressl.patch"
+)
+
+PERL_RM_FILES=(
+	# Hateful author tests
+	't/local/01_pod.t'
+	't/local/02_pod_coverage.t'
+	't/local/kwalitee.t'
+)
+
+src_configure() {
+	if use test && has network ${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}; then
+		export NETWORK_TESTS=yes
+	else
+		use test && einfo "Network tests will be skipped without DIST_TEST_OVERRIDE=~network"
+		export NETWORK_TESTS=no
+	fi
+	export LIBDIR=$(get_libdir)
+	use prefix && export OPENSSL_PREFIX="${EPREFIX}/usr"
+	perl-module_src_configure
+}
+
+src_compile() {
+	mymake=(
+		OPTIMIZE="${CFLAGS}"
+		OPENSSL_PREFIX="${EPREFIX}"/usr
+	)
+	perl-module_src_compile
+}

diff --git a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.920.0-libressl.patch b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.920.0-libressl.patch
new file mode 100644
index 0000000..eb1c331
--- /dev/null
+++ b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.920.0-libressl.patch
@@ -0,0 +1,87 @@
+https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/security/p5-Net-SSLeay/patches/patch-SSLeay_xs
+
+https://github.com/radiator-software/p5-net-ssleay/commit/3dd2f101b8e15a59f66e22525b8d001d5ad6ce7d
+https://github.com/radiator-software/p5-net-ssleay/commit/4a886e06c1cac80e7fb3f8d52146a27ce557ba8c
+https://github.com/radiator-software/p5-net-ssleay/commit/88c3bbc45399c8ef2c8879aada8bfa91d8bc6c10
+
+Index: SSLeay.xs
+--- a/SSLeay.xs.orig
++++ b/SSLeay.xs
+@@ -1914,7 +1914,7 @@ X509 * find_issuer(X509 *cert,X509_STORE *store, STACK
+     return issuer;
+ }
+ 
+-SV* bn2sv(BIGNUM* p_bn)
++SV* bn2sv(const BIGNUM* p_bn)
+ {
+     return p_bn != NULL
+         ? sv_2mortal(newSViv((IV) BN_dup(p_bn)))
+@@ -6283,9 +6283,29 @@ RSA_generate_key(bits,e,perl_cb=&PL_sv_undef,perl_data
+ void
+ RSA_get_key_parameters(rsa)
+ 	    RSA * rsa
++PREINIT:
++#if defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER >= 0x3050000fL)
++    const BIGNUM *n, *e, *d;
++    const BIGNUM *p, *q;
++    const BIGNUM *dmp1, *dmq1, *iqmp;
++#endif
+ PPCODE:
+ {
++#if defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER >= 0x3050000fL)
++    RSA_get0_key(rsa, &n, &e, &d);
++    RSA_get0_factors(rsa, &p, &q);
++    RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp);
+     /* Caution: returned list consists of SV pointers to BIGNUMs, which would need to be blessed as Crypt::OpenSSL::Bignum for further use */
++    XPUSHs(bn2sv(n));
++    XPUSHs(bn2sv(e));
++    XPUSHs(bn2sv(d));
++    XPUSHs(bn2sv(p));
++    XPUSHs(bn2sv(q));
++    XPUSHs(bn2sv(dmp1));
++    XPUSHs(bn2sv(dmq1));
++    XPUSHs(bn2sv(iqmp));
++#else
++    /* Caution: returned list consists of SV pointers to BIGNUMs, which would need to be blessed as Crypt::OpenSSL::Bignum for further use */
+     XPUSHs(bn2sv(rsa->n));
+     XPUSHs(bn2sv(rsa->e));
+     XPUSHs(bn2sv(rsa->d));
+@@ -6294,9 +6314,10 @@ PPCODE:
+     XPUSHs(bn2sv(rsa->dmp1));
+     XPUSHs(bn2sv(rsa->dmq1));
+     XPUSHs(bn2sv(rsa->iqmp));
++#endif
+ }
+ 
+-#endif
++#endif /* OpenSSL < 1.1 or LibreSSL */
+ 
+ void
+ RSA_free(r)
+@@ -7197,7 +7218,7 @@ ASN1_OBJECT *
+ P_X509_get_signature_alg(x)
+         X509 * x
+     CODE:
+-#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
++#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || (LIBRESSL_VERSION_NUMBER >= 0x3050000fL)
+         RETVAL = (X509_get0_tbs_sigalg(x)->algorithm);
+ #else
+         RETVAL = (x->cert_info->signature->algorithm);
+@@ -7690,7 +7711,7 @@ OCSP_response_results(rsp,...)
+ 		if (!idsv) {
+ 		    /* getall: create new SV with OCSP_CERTID */
+ 		    unsigned char *pi,*pc;
+-#if OPENSSL_VERSION_NUMBER >= 0x10100003L && !defined(LIBRESSL_VERSION_NUMBER)
++#if (OPENSSL_VERSION_NUMBER >= 0x10100003L && !defined(LIBRESSL_VERSION_NUMBER)) || (LIBRESSL_VERSION_NUMBER >= 0x3050000fL)
+ 		    int len = i2d_OCSP_CERTID((OCSP_CERTID *)OCSP_SINGLERESP_get0_id(sir),NULL);
+ #else
+ 		    int len = i2d_OCSP_CERTID(sir->certId,NULL);
+@@ -7699,7 +7720,7 @@ OCSP_response_results(rsp,...)
+ 		    Newx(pc,len,unsigned char);
+ 		    if (!pc) croak("out of memory");
+ 		    pi = pc;
+-#if OPENSSL_VERSION_NUMBER >= 0x10100003L && !defined(LIBRESSL_VERSION_NUMBER)
++#if (OPENSSL_VERSION_NUMBER >= 0x10100003L && !defined(LIBRESSL_VERSION_NUMBER)) || (LIBRESSL_VERSION_NUMBER >= 0x3050000fL)
+ 		    i2d_OCSP_CERTID((OCSP_CERTID *)OCSP_SINGLERESP_get0_id(sir),&pi);
+ #else
+ 		    i2d_OCSP_CERTID(sir->certId,&pi);

diff --git a/dev-perl/Net-SSLeay/metadata.xml b/dev-perl/Net-SSLeay/metadata.xml
new file mode 100644
index 0000000..963e912
--- /dev/null
+++ b/dev-perl/Net-SSLeay/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="project">
+    <email>perl@gentoo.org</email>
+    <name>Gentoo Perl Project</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="cpan">Net-SSLeay</remote-id>
+    <remote-id type="cpan-module">Net::SSLeay</remote-id>
+    <remote-id type="cpan-module">Net::SSLeay::Handle</remote-id>
+  </upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [gentoo-commits] repo/proj/libressl:master commit in: dev-perl/Net-SSLeay/files/, dev-perl/Net-SSLeay/
@ 2019-08-17  2:29 Stefan Strogin
  0 siblings, 0 replies; 8+ messages in thread
From: Stefan Strogin @ 2019-08-17  2:29 UTC (permalink / raw
  To: gentoo-commits

commit:     bb34a5b9177c5706e5853ebc8a0bf15e5b5e9654
Author:     Stefan Strogin <steils <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 17 02:26:30 2019 +0000
Commit:     Stefan Strogin <steils <AT> gentoo <DOT> org>
CommitDate: Sat Aug 17 02:26:30 2019 +0000
URL:        https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=bb34a5b9

dev-perl/Net-SSLeay: drop; fixed upstream and in gentoo.git

Signed-off-by: Stefan Strogin <steils <AT> gentoo.org>

 dev-perl/Net-SSLeay/Manifest                       |  1 -
 dev-perl/Net-SSLeay/Net-SSLeay-1.860.0_p9.ebuild   | 62 ----------------------
 .../files/Net-SSLeay-1.86-fix-libdir.patch         | 27 ----------
 dev-perl/Net-SSLeay/metadata.xml                   | 13 -----
 4 files changed, 103 deletions(-)

diff --git a/dev-perl/Net-SSLeay/Manifest b/dev-perl/Net-SSLeay/Manifest
deleted file mode 100644
index e14a4f6..0000000
--- a/dev-perl/Net-SSLeay/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST Net-SSLeay-1.86_09.tar.gz 430456 BLAKE2B c16cba2a1252d572d828e0f3a7cf708ab5bb2369998e949e95edba0098fa5b2c26b724c1029fad63ba4fa200280696035bcb83682214559e0dc09b446d245b89 SHA512 5f878169075dac9b0e5f9aabec732a5034858a414a8344d16928fe8ec614277872d3af75295ac065ef5a7511c0f5ca22fc3f5cd040f0009d2a8119314da54727

diff --git a/dev-perl/Net-SSLeay/Net-SSLeay-1.860.0_p9.ebuild b/dev-perl/Net-SSLeay/Net-SSLeay-1.860.0_p9.ebuild
deleted file mode 100644
index 6180799..0000000
--- a/dev-perl/Net-SSLeay/Net-SSLeay-1.860.0_p9.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-DIST_AUTHOR=CHRISN
-DIST_VERSION=1.86_09
-DIST_EXAMPLES=("examples/*")
-inherit multilib perl-module
-
-DESCRIPTION="Perl extension for using OpenSSL"
-
-LICENSE="openssl"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="libressl test minimal examples"
-
-RDEPEND="
-	!libressl? ( dev-libs/openssl:0= )
-	libressl? ( dev-libs/libressl:0= )
-	virtual/perl-MIME-Base64
-"
-DEPEND="${RDEPEND}
-	virtual/perl-ExtUtils-MakeMaker
-	test? (
-		!minimal? (
-			dev-perl/Test-Exception
-			dev-perl/Test-Warn
-			dev-perl/Test-NoWarnings
-		)
-		virtual/perl-Test-Simple
-	)
-"
-
-PATCHES=(
-	"${FILESDIR}/${PN}-1.86-fix-libdir.patch"
-)
-PERL_RM_FILES=(
-	# Hateful author tests
-	't/local/01_pod.t'
-	't/local/02_pod_coverage.t'
-	't/local/kwalitee.t'
-	# Broken under FEATURES="network-sandbox"
-	# https://rt.cpan.org/Ticket/Display.html?id=128207
-	't/local/06_tcpecho.t'
-	't/local/07_sslecho.t'
-)
-mymake=(
-	OPTIMIZE="${CFLAGS}"
-	OPENSSL_PREFIX="${EPREFIX}"/usr
-)
-
-src_configure() {
-	if use test && has network ${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}; then
-		export NETWORK_TESTS=yes
-	else
-		use test && einfo "Network tests will be skipped without DIST_TEST_OVERRIDE=~network"
-		export NETWORK_TESTS=no
-	fi
-	export LIBDIR=$(get_libdir)
-	perl-module_src_configure
-}

diff --git a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.86-fix-libdir.patch b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.86-fix-libdir.patch
deleted file mode 100644
index d78acb9..0000000
--- a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.86-fix-libdir.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-Bug: https://bugs.gentoo.org/416339
-
-The previous patch for the above bug report used $ENV{LIBDIR} but this
-wasn't enough to help with cross-compiling. We could use $ENV{SYSROOT}
-but this results in a bogus RPATH entry. It is better to simply trust
-the toolchain, which may have its own sysroot applied.
-
-Cross-compiling Perl modules requires additional hackery but at least
-that hackery will work now. :)
-
-Chewi
-2017/12/03
-
-diff -Naur a/Makefile.PL b/Makefile.PL
---- a/Makefile.PL	2017-10-13 01:38:01.000000000 +0100
-+++ b/Makefile.PL	2017-12-03 10:52:27.304861804 +0000
-@@ -141,10 +141,8 @@
-         cccdlflags => '',
-     };
-     for ("$prefix/include", "$prefix/inc32", '/usr/kerberos/include') {
--      push @{$opts->{inc_paths}}, $_ if -f "$_/openssl/ssl.h";
-     }
-     for ($prefix, "$prefix/lib64", "$prefix/lib", "$prefix/out32dll") {
--      push @{$opts->{lib_paths}}, $_ if -d $_;
-     }
- 
-     my $rsaref  = $self->ssleay_is_rsaref;

diff --git a/dev-perl/Net-SSLeay/metadata.xml b/dev-perl/Net-SSLeay/metadata.xml
deleted file mode 100644
index 3a182c2..0000000
--- a/dev-perl/Net-SSLeay/metadata.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-  <maintainer type="project">
-    <email>perl@gentoo.org</email>
-    <name>Gentoo Perl Project</name>
-  </maintainer>
-  <upstream>
-    <remote-id type="cpan">Net-SSLeay</remote-id>
-    <remote-id type="cpan-module">Net::SSLeay</remote-id>
-    <remote-id type="cpan-module">Net::SSLeay::Handle</remote-id>
-  </upstream>
-</pkgmetadata>


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [gentoo-commits] repo/proj/libressl:master commit in: dev-perl/Net-SSLeay/files/, dev-perl/Net-SSLeay/
@ 2019-03-25  5:50 Stefan Strogin
  0 siblings, 0 replies; 8+ messages in thread
From: Stefan Strogin @ 2019-03-25  5:50 UTC (permalink / raw
  To: gentoo-commits

commit:     81907d2f76c51dbc3de6f01843de103cc8bfd635
Author:     Stefan Strogin <stefan.strogin <AT> gmail <DOT> com>
AuthorDate: Mon Mar 25 05:40:09 2019 +0000
Commit:     Stefan Strogin <stefan.strogin <AT> gmail <DOT> com>
CommitDate: Mon Mar 25 05:40:09 2019 +0000
URL:        https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=81907d2f

dev-perl/Net-SSLeay: add version 1.860.0_p9

This version supports LibreSSL 2.9.0 out of box.

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Stefan Strogin <stefan.strogin <AT> gmail.com>

 dev-perl/Net-SSLeay/Manifest                       |  1 +
 dev-perl/Net-SSLeay/Net-SSLeay-1.860.0_p9.ebuild   | 62 ++++++++++++++++++++++
 .../files/Net-SSLeay-1.86-fix-libdir.patch         | 27 ++++++++++
 dev-perl/Net-SSLeay/metadata.xml                   | 13 +++++
 4 files changed, 103 insertions(+)

diff --git a/dev-perl/Net-SSLeay/Manifest b/dev-perl/Net-SSLeay/Manifest
new file mode 100644
index 0000000..e14a4f6
--- /dev/null
+++ b/dev-perl/Net-SSLeay/Manifest
@@ -0,0 +1 @@
+DIST Net-SSLeay-1.86_09.tar.gz 430456 BLAKE2B c16cba2a1252d572d828e0f3a7cf708ab5bb2369998e949e95edba0098fa5b2c26b724c1029fad63ba4fa200280696035bcb83682214559e0dc09b446d245b89 SHA512 5f878169075dac9b0e5f9aabec732a5034858a414a8344d16928fe8ec614277872d3af75295ac065ef5a7511c0f5ca22fc3f5cd040f0009d2a8119314da54727

diff --git a/dev-perl/Net-SSLeay/Net-SSLeay-1.860.0_p9.ebuild b/dev-perl/Net-SSLeay/Net-SSLeay-1.860.0_p9.ebuild
new file mode 100644
index 0000000..6180799
--- /dev/null
+++ b/dev-perl/Net-SSLeay/Net-SSLeay-1.860.0_p9.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=CHRISN
+DIST_VERSION=1.86_09
+DIST_EXAMPLES=("examples/*")
+inherit multilib perl-module
+
+DESCRIPTION="Perl extension for using OpenSSL"
+
+LICENSE="openssl"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="libressl test minimal examples"
+
+RDEPEND="
+	!libressl? ( dev-libs/openssl:0= )
+	libressl? ( dev-libs/libressl:0= )
+	virtual/perl-MIME-Base64
+"
+DEPEND="${RDEPEND}
+	virtual/perl-ExtUtils-MakeMaker
+	test? (
+		!minimal? (
+			dev-perl/Test-Exception
+			dev-perl/Test-Warn
+			dev-perl/Test-NoWarnings
+		)
+		virtual/perl-Test-Simple
+	)
+"
+
+PATCHES=(
+	"${FILESDIR}/${PN}-1.86-fix-libdir.patch"
+)
+PERL_RM_FILES=(
+	# Hateful author tests
+	't/local/01_pod.t'
+	't/local/02_pod_coverage.t'
+	't/local/kwalitee.t'
+	# Broken under FEATURES="network-sandbox"
+	# https://rt.cpan.org/Ticket/Display.html?id=128207
+	't/local/06_tcpecho.t'
+	't/local/07_sslecho.t'
+)
+mymake=(
+	OPTIMIZE="${CFLAGS}"
+	OPENSSL_PREFIX="${EPREFIX}"/usr
+)
+
+src_configure() {
+	if use test && has network ${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}; then
+		export NETWORK_TESTS=yes
+	else
+		use test && einfo "Network tests will be skipped without DIST_TEST_OVERRIDE=~network"
+		export NETWORK_TESTS=no
+	fi
+	export LIBDIR=$(get_libdir)
+	perl-module_src_configure
+}

diff --git a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.86-fix-libdir.patch b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.86-fix-libdir.patch
new file mode 100644
index 0000000..d78acb9
--- /dev/null
+++ b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.86-fix-libdir.patch
@@ -0,0 +1,27 @@
+Bug: https://bugs.gentoo.org/416339
+
+The previous patch for the above bug report used $ENV{LIBDIR} but this
+wasn't enough to help with cross-compiling. We could use $ENV{SYSROOT}
+but this results in a bogus RPATH entry. It is better to simply trust
+the toolchain, which may have its own sysroot applied.
+
+Cross-compiling Perl modules requires additional hackery but at least
+that hackery will work now. :)
+
+Chewi
+2017/12/03
+
+diff -Naur a/Makefile.PL b/Makefile.PL
+--- a/Makefile.PL	2017-10-13 01:38:01.000000000 +0100
++++ b/Makefile.PL	2017-12-03 10:52:27.304861804 +0000
+@@ -141,10 +141,8 @@
+         cccdlflags => '',
+     };
+     for ("$prefix/include", "$prefix/inc32", '/usr/kerberos/include') {
+-      push @{$opts->{inc_paths}}, $_ if -f "$_/openssl/ssl.h";
+     }
+     for ($prefix, "$prefix/lib64", "$prefix/lib", "$prefix/out32dll") {
+-      push @{$opts->{lib_paths}}, $_ if -d $_;
+     }
+ 
+     my $rsaref  = $self->ssleay_is_rsaref;

diff --git a/dev-perl/Net-SSLeay/metadata.xml b/dev-perl/Net-SSLeay/metadata.xml
new file mode 100644
index 0000000..3a182c2
--- /dev/null
+++ b/dev-perl/Net-SSLeay/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="project">
+    <email>perl@gentoo.org</email>
+    <name>Gentoo Perl Project</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="cpan">Net-SSLeay</remote-id>
+    <remote-id type="cpan-module">Net::SSLeay</remote-id>
+    <remote-id type="cpan-module">Net::SSLeay::Handle</remote-id>
+  </upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [gentoo-commits] repo/proj/libressl:master commit in: dev-perl/Net-SSLeay/files/, dev-perl/Net-SSLeay/
@ 2019-02-21  1:30 Aaron Bauman
  0 siblings, 0 replies; 8+ messages in thread
From: Aaron Bauman @ 2019-02-21  1:30 UTC (permalink / raw
  To: gentoo-commits

commit:     6386d944b91ebd35c337c88f2091cf8a731e7863
Author:     Aaron Bauman <bman <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 21 01:30:14 2019 +0000
Commit:     Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Thu Feb 21 01:30:14 2019 +0000
URL:        https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=6386d944

dev-perl/*: drop as changes are upstream in gentoo.git

Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>

 dev-perl/Net-SSLeay/Manifest                       |  1 -
 dev-perl/Net-SSLeay/Net-SSLeay-1.820.0.ebuild      | 58 ----------------------
 .../files/Net-SSLeay-1.82-fix-libdir.patch         | 27 ----------
 .../files/Net-SSLeay-1.82-fix-network-tests.patch  | 29 -----------
 .../files/Net-SSLeay-1.82-libressl.patch           | 31 ------------
 .../files/Net-SSLeay-1.82-respect-cflags.patch     | 26 ----------
 dev-perl/Net-SSLeay/metadata.xml                   | 13 -----
 7 files changed, 185 deletions(-)

diff --git a/dev-perl/Net-SSLeay/Manifest b/dev-perl/Net-SSLeay/Manifest
deleted file mode 100644
index 45ff273..0000000
--- a/dev-perl/Net-SSLeay/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST Net-SSLeay-1.82.tar.gz 399194 BLAKE2B 0c8aeb3085b102b71284266904ee88a8558070644aaa6dd0c5f78db0bfccb0e7456c8ba62a549d7ab245a02ddc7e856bc326d503f63268ee0761290e41b97e4d SHA512 758c41f4916a55b5085167e5c6a2732a5ee70dbeb8f42e791cd957957ba4a59f724c072d3fa50a6b42ae3b22cf3ecb8738c3f8963990a7030117b73c2dcc0716

diff --git a/dev-perl/Net-SSLeay/Net-SSLeay-1.820.0.ebuild b/dev-perl/Net-SSLeay/Net-SSLeay-1.820.0.ebuild
deleted file mode 100644
index 668a49a..0000000
--- a/dev-perl/Net-SSLeay/Net-SSLeay-1.820.0.ebuild
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright 1999-2018 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-DIST_AUTHOR=MIKEM
-DIST_VERSION=1.82
-DIST_EXAMPLES=("examples/*")
-inherit multilib perl-module
-
-DESCRIPTION="Perl extension for using OpenSSL"
-
-LICENSE="openssl"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="libressl test minimal examples"
-
-RDEPEND="
-	!libressl? ( dev-libs/openssl:0= )
-	libressl? ( dev-libs/libressl:0= )
-	virtual/perl-MIME-Base64
-"
-DEPEND="${RDEPEND}
-	virtual/perl-ExtUtils-MakeMaker
-	test? (
-		!minimal? (
-			dev-perl/Test-Exception
-			dev-perl/Test-Warn
-			dev-perl/Test-NoWarnings
-		)
-		virtual/perl-Test-Simple
-	)
-"
-export OPTIMIZE="$CFLAGS"
-export OPENSSL_PREFIX=${EPREFIX}/usr
-
-PATCHES=(
-	"${FILESDIR}/${PN}-1.82-respect-cflags.patch"
-	"${FILESDIR}/${PN}-1.82-fix-libdir.patch"
-	"${FILESDIR}/${PN}-1.82-fix-network-tests.patch"
-	"${FILESDIR}/${PN}-1.82-libressl.patch"
-)
-
-src_prepare() {
-	use test && perl_rm_files 't/local/01_pod.t' 't/local/02_pod_coverage.t' 't/local/kwalitee.t'
-	perl-module_src_prepare
-}
-
-src_configure() {
-	if use test && has network ${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}; then
-		export NETWORK_TESTS=yes
-	else
-		use test && einfo "Network tests will be skipped without DIST_TEST_OVERRIDE=~network"
-		export NETWORK_TESTS=no
-	fi
-	export LIBDIR=$(get_libdir)
-	perl-module_src_configure
-}

diff --git a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-fix-libdir.patch b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-fix-libdir.patch
deleted file mode 100644
index 6aff3f8..0000000
--- a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-fix-libdir.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-Bug: https://bugs.gentoo.org/416339
-
-The previous patch for the above bug report used $ENV{LIBDIR} but this
-wasn't enough to help with cross-compiling. We could use $ENV{SYSROOT}
-but this results in a bogus RPATH entry. It is better to simply trust
-the toolchain, which may have its own sysroot applied.
-
-Cross-compiling Perl modules requires additional hackery but at least
-that hackery will work now. :)
-
-Chewi
-2017/12/03
-
-diff -Naur a/inc/Module/Install/PRIVATE/Net/SSLeay.pm b/inc/Module/Install/PRIVATE/Net/SSLeay.pm
---- a/inc/Module/Install/PRIVATE/Net/SSLeay.pm	2017-10-13 01:38:01.000000000 +0100
-+++ b/inc/Module/Install/PRIVATE/Net/SSLeay.pm	2017-12-03 10:52:27.304861804 +0000
-@@ -65,10 +65,8 @@
-         cccdlflags => '',
-     };
-     for ("$prefix/include", "$prefix/inc32", '/usr/kerberos/include') {
--      push @{$opts->{inc_paths}}, $_ if -f "$_/openssl/ssl.h";
-     }
-     for ($prefix, "$prefix/lib64", "$prefix/lib", "$prefix/out32dll") {
--      push @{$opts->{lib_paths}}, $_ if -d $_;
-     }
- 
-     my $rsaref  = $self->ssleay_is_rsaref;

diff --git a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-fix-network-tests.patch b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-fix-network-tests.patch
deleted file mode 100644
index 6c3e768..0000000
--- a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-fix-network-tests.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 36c14369372f0371e033019c9cea197b31a93bde Mon Sep 17 00:00:00 2001
-From: Kent Fredric <kentnl@gentoo.org>
-Date: Sat, 5 Mar 2016 12:41:11 +1300
-Subject: Fix network tests re: Networking
-
----
- inc/Module/Install/PRIVATE/Net/SSLeay.pm | 6 +-----
- 1 file changed, 1 insertion(+), 5 deletions(-)
-
-diff --git a/inc/Module/Install/PRIVATE/Net/SSLeay.pm b/inc/Module/Install/PRIVATE/Net/SSLeay.pm
-index 0a3aa24..f27b43f 100644
---- a/inc/Module/Install/PRIVATE/Net/SSLeay.pm
-+++ b/inc/Module/Install/PRIVATE/Net/SSLeay.pm
-@@ -46,11 +46,7 @@ EOM
-         LIBS => join(' ', (map {"-L$_"} @{$opts->{lib_paths}}), (map {"-l$_"} @{$opts->{lib_links}})),
-     );
- 
--    if ( $self->prompt(
--            "Do you want to run external tests?\n".
--            "These tests *will* *fail* if you do not have network connectivity.",
--            'n',
--    ) =~ /^y/i ) {
-+    if ( 'yes' eq ( $ENV{NETWORK_TESTS} || '' ) ) {
-         $self->tests('t/*/*.t t/*/*/*.t');
-     } else {
-         $self->tests('t/local/*.t t/handle/local/*.t');
--- 
-2.14.3
-

diff --git a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-libressl.patch b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-libressl.patch
deleted file mode 100644
index f320fc4..0000000
--- a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-libressl.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-diff --git a/SSLeay.xs b/SSLeay.xs
-index 685c2f2..54b1f40 100644
---- a/SSLeay.xs
-+++ b/SSLeay.xs
-@@ -2667,7 +2667,7 @@ RAND_write_file(file_name)
- 
- #define REM40 "Minimal X509 stuff..., this is a bit ugly and should be put in its own modules Net::SSLeay::X509.pm"
- 
--#if OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined(LIBRESSL_VERSION_NUMBER)
-+#if OPENSSL_VERSION_NUMBER >= 0x1000200fL
- 
- int
- X509_check_host(X509 *cert, const char *name, unsigned int flags = 0, SV *peername = &PL_sv_undef)
-@@ -5409,7 +5409,7 @@ SSL_get_client_random(s)
- 
- #endif
- 
--#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
-+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || (LIBRESSL_VERSION_NUMBER >= 0x2070000fL)
- 
- void
- SSL_get_server_random(s)
-@@ -5440,7 +5440,7 @@ int
- SSL_get_keyblock_size(s)
-      SSL *   s
-      CODE:
--#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
-+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || (LIBRESSL_VERSION_NUMBER >= 0x2070000fL)
-         const SSL_CIPHER *ssl_cipher;
- 	int cipher = NID_undef, digest = NID_undef, mac_secret_size = 0;
- 	const EVP_CIPHER *c = NULL;

diff --git a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-respect-cflags.patch b/dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-respect-cflags.patch
deleted file mode 100644
index 03d06b6..0000000
--- a/dev-perl/Net-SSLeay/files/Net-SSLeay-1.82-respect-cflags.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From 8472348e588c16ad5332fe0b1f1dc9cc8eb4ab7d Mon Sep 17 00:00:00 2001
-From: Torsten Veller <tove@gentoo.org>
-Date: Mon, 16 Jul 2012 05:31:43 +1200
-Subject: Respect CFLAGS
-
-Bug: https://bugs.gentoo.org/378657
----
- inc/Module/Install/PRIVATE/Net/SSLeay.pm | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/inc/Module/Install/PRIVATE/Net/SSLeay.pm b/inc/Module/Install/PRIVATE/Net/SSLeay.pm
-index 5abcf70..49913e6 100644
---- a/inc/Module/Install/PRIVATE/Net/SSLeay.pm
-+++ b/inc/Module/Install/PRIVATE/Net/SSLeay.pm
-@@ -129,7 +129,7 @@ EOM
- 
-         if (($Config{cc} =~ /aCC/i) && $^O eq 'hpux') {
-             print "*** Enabling HPUX aCC options (+e)\n";
--            $opts->{optimize} = '+e -O2 -g';
-+            $opts->{optimize} = '+e ' . $opts->{optimize};
-         }
- 
-         if ( (($Config{ccname} || $Config{cc}) eq 'gcc') && ($Config{cccdlflags} =~ /-fpic/) ) {
--- 
-2.14.3
-

diff --git a/dev-perl/Net-SSLeay/metadata.xml b/dev-perl/Net-SSLeay/metadata.xml
deleted file mode 100644
index 3a182c2..0000000
--- a/dev-perl/Net-SSLeay/metadata.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-  <maintainer type="project">
-    <email>perl@gentoo.org</email>
-    <name>Gentoo Perl Project</name>
-  </maintainer>
-  <upstream>
-    <remote-id type="cpan">Net-SSLeay</remote-id>
-    <remote-id type="cpan-module">Net::SSLeay</remote-id>
-    <remote-id type="cpan-module">Net::SSLeay::Handle</remote-id>
-  </upstream>
-</pkgmetadata>


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-04-05 17:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-02 22:15 [gentoo-commits] repo/proj/libressl:master commit in: dev-perl/Net-SSLeay/files/, dev-perl/Net-SSLeay/ Quentin Retornaz
  -- strict thread matches above, loose matches on Subject: below --
2024-04-05 17:24 orbea
2024-03-11  0:42 orbea
2023-05-29 19:49 orbea
2022-11-15 21:18 Quentin Retornaz
2019-08-17  2:29 Stefan Strogin
2019-03-25  5:50 Stefan Strogin
2019-02-21  1:30 Aaron Bauman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox