summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJory Pratt <anarchy@gentoo.org>2019-04-22 17:23:48 -0500
committerJory Pratt <anarchy@gentoo.org>2019-04-22 17:23:48 -0500
commit3dd83347c156002b22fb29befea7c9a2c7ff0235 (patch)
treed0768dd2607b420587fb2a7d59b8005fb8e876e7
parentsys-apps/kmod: Add libressl fixes to local overlay (diff)
downloadanarchy-master.tar.gz
anarchy-master.tar.bz2
anarchy-master.zip
dev-perl/Net-SSLeay: Add libressl changes to personal overlayHEADmaster
Signed-off-by: Jory Pratt <anarchy@gentoo.org>
-rw-r--r--dev-perl/Net-SSLeay/Manifest4
-rw-r--r--dev-perl/Net-SSLeay/Net-SSLeay-1.860.0_p9.ebuild62
-rw-r--r--dev-perl/Net-SSLeay/files/Net-SSLeay-1.86-fix-libdir.patch27
-rw-r--r--dev-perl/Net-SSLeay/metadata.xml13
4 files changed, 106 insertions, 0 deletions
diff --git a/dev-perl/Net-SSLeay/Manifest b/dev-perl/Net-SSLeay/Manifest
new file mode 100644
index 0000000..a139257
--- /dev/null
+++ b/dev-perl/Net-SSLeay/Manifest
@@ -0,0 +1,4 @@
+AUX Net-SSLeay-1.86-fix-libdir.patch 946 BLAKE2B 8f3522ccc62c5b09942d61dbe73fb87bec5c5fb15e460b5a00b4a0108f6c50299304acc7e37a268a46d75af86cbdfdfab80cdf2ebecf5836f676503869727cb5 SHA512 76ff12ce42631393dcf95008b3a4a5064f2f0cc54dd44b1002fe02fccdc4b8a47871f77b28ce43346f140058c23bd9d6be08261d6a4cecffc45ced5416aa4cb3
+DIST Net-SSLeay-1.86_09.tar.gz 430456 BLAKE2B c16cba2a1252d572d828e0f3a7cf708ab5bb2369998e949e95edba0098fa5b2c26b724c1029fad63ba4fa200280696035bcb83682214559e0dc09b446d245b89 SHA512 5f878169075dac9b0e5f9aabec732a5034858a414a8344d16928fe8ec614277872d3af75295ac065ef5a7511c0f5ca22fc3f5cd040f0009d2a8119314da54727
+EBUILD Net-SSLeay-1.860.0_p9.ebuild 1578 BLAKE2B 7802be47b1a8203fe5cc6115811f63706d304624682485b7849b76de9d4ede7269e22fd5c679f09a2f39bd9c915a35f2590096714b1183188eaedd67a78591e2 SHA512 6a49fad0cf996f172a12b97c2a9bd1344fb88c3faa0282b7580ff8c56ad98937d13a43003b82800fba145b7ba67fd2e3a5274cc0d06f00957e02aa5152c45646
+MISC metadata.xml 458 BLAKE2B a1f463c2ae637ac0ce9708d85768747073cb613831fad5454e72801618889ce2a96a5b6393aa06df0d0a34a05ef3ddb3aaad00fa1647ec8bde8a5aa1b65a6e90 SHA512 1502d6c58c7345b12fca3555c3bde82403f0a7bdff6d253a31c4b5b82bc981127fb2bab9e03d47d50963c3cf70533ec8ceebc025b71fe9127bdc294f092d955b
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>