Gentoo Archives: gentoo-commits

From: Kent Fredric <kentnl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Crypt-RSA/files/, dev-perl/Crypt-RSA/
Date: Thu, 02 Jul 2020 08:29:11
Message-Id: 1593678504.d18e90bc6d14e3c68343471df7b90e28c4884b1a.kentnl@gentoo
1 commit: d18e90bc6d14e3c68343471df7b90e28c4884b1a
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 2 08:24:39 2020 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 2 08:28:24 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d18e90bc
7
8 dev-perl/Crypt-RSA: -r bump for EAPI7 + fixes
9
10 - EAPI7
11 - Fix DEPEND/BDEPEND/etc
12 - Remove empty/unused variable assignments
13 - Parallel tests
14 - Migrate .-in-inc "sed" to a "patch"
15 - Add possible fix patch for bug #627058
16
17 Bug: https://bugs.gentoo.org/627058
18 Package-Manager: Portage-2.3.100, Repoman-2.3.22
19 Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org>
20
21 dev-perl/Crypt-RSA/Crypt-RSA-1.990.0-r2.ebuild | 35 ++++++++++++++++++++++
22 .../files/Crypt-RSA-1.99-no-dot-inc.patch | 24 +++++++++++++++
23 .../Crypt-RSA/files/Crypt-RSA-1.99-test-segv.patch | 31 +++++++++++++++++++
24 3 files changed, 90 insertions(+)
25
26 diff --git a/dev-perl/Crypt-RSA/Crypt-RSA-1.990.0-r2.ebuild b/dev-perl/Crypt-RSA/Crypt-RSA-1.990.0-r2.ebuild
27 new file mode 100644
28 index 00000000000..22791806cbe
29 --- /dev/null
30 +++ b/dev-perl/Crypt-RSA/Crypt-RSA-1.990.0-r2.ebuild
31 @@ -0,0 +1,35 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +DIST_AUTHOR=VIPUL
38 +DIST_VERSION=1.99
39 +inherit perl-module
40 +
41 +DESCRIPTION="RSA public-key cryptosystem"
42 +
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~hppa ~x86 ~x86-solaris"
45 +
46 +RDEPEND="
47 + >=dev-perl/Class-Loader-2.0.0
48 + dev-perl/Convert-ASCII-Armour
49 + dev-perl/Crypt-Blowfish
50 + dev-perl/Crypt-CBC
51 + >=dev-perl/Crypt-Primes-0.380.0
52 + >=dev-perl/Crypt-Random-0.340.0
53 + dev-perl/Data-Buffer
54 + virtual/perl-Data-Dumper
55 + dev-perl/Digest-MD2
56 + virtual/perl-Digest-MD5
57 + dev-perl/Digest-SHA1
58 + >=dev-perl/Math-Pari-2.10.603
59 + dev-perl/Sort-Versions
60 + dev-perl/Tie-EncryptedHash"
61 +BDEPEND="${RDEPEND}"
62 +
63 +PATCHES=(
64 + "${FILESDIR}/${PN}-1.99-no-dot-inc.patch"
65 + "${FILESDIR}/${PN}-1.99-test-segv.patch"
66 +)
67
68 diff --git a/dev-perl/Crypt-RSA/files/Crypt-RSA-1.99-no-dot-inc.patch b/dev-perl/Crypt-RSA/files/Crypt-RSA-1.99-no-dot-inc.patch
69 new file mode 100644
70 index 00000000000..f84cac6fbf1
71 --- /dev/null
72 +++ b/dev-perl/Crypt-RSA/files/Crypt-RSA-1.99-no-dot-inc.patch
73 @@ -0,0 +1,24 @@
74 +From 76ef0a65ae8b93da138c179e7e0c2995113825d9 Mon Sep 17 00:00:00 2001
75 +From: Kent Fredric <kentnl@g.o>
76 +Date: Thu, 2 Jul 2020 20:11:50 +1200
77 +Subject: Include '.' in @INC on perl 5.26+
78 +
79 +---
80 + Makefile.PL | 1 +
81 + 1 file changed, 1 insertion(+)
82 +
83 +diff --git a/Makefile.PL b/Makefile.PL
84 +index 95eb265..90f6da8 100644
85 +--- a/Makefile.PL
86 ++++ b/Makefile.PL
87 +@@ -8,6 +8,7 @@
88 + ##
89 + ## $Id: Makefile.PL,v 1.12 2001/05/30 13:10:32 vipul Exp $
90 +
91 ++use lib '.';
92 + use inc::Module::Install;
93 +
94 + name 'Crypt-RSA';
95 +--
96 +2.27.0
97 +
98
99 diff --git a/dev-perl/Crypt-RSA/files/Crypt-RSA-1.99-test-segv.patch b/dev-perl/Crypt-RSA/files/Crypt-RSA-1.99-test-segv.patch
100 new file mode 100644
101 index 00000000000..559e3683017
102 --- /dev/null
103 +++ b/dev-perl/Crypt-RSA/files/Crypt-RSA-1.99-test-segv.patch
104 @@ -0,0 +1,31 @@
105 +From 877c93686ad36d5dcc4a42b8bff5f3c5383e6514 Mon Sep 17 00:00:00 2001
106 +From: Kent Fredric <kentnl@g.o>
107 +Date: Thu, 2 Jul 2020 20:16:20 +1200
108 +Subject: Change load order of Convert::ASCII::Armour
109 +
110 +Which is reported to somehow fix segv's in t/11-wrapper.t
111 +
112 +Bug: https://rt.cpan.org/Ticket/Display.html?id=4877
113 +Bug: https://bugs.gentoo.org/627058
114 +---
115 + lib/Crypt/RSA.pm | 2 +-
116 + 1 file changed, 1 insertion(+), 1 deletion(-)
117 +
118 +diff --git a/lib/Crypt/RSA.pm b/lib/Crypt/RSA.pm
119 +index 5a3d3bc..072f0b4 100644
120 +--- a/lib/Crypt/RSA.pm
121 ++++ b/lib/Crypt/RSA.pm
122 +@@ -15,9 +15,9 @@ use lib "$Bin/../../lib";
123 + use strict;
124 + use base 'Class::Loader';
125 + use base 'Crypt::RSA::Errorhandler';
126 ++use Convert::ASCII::Armour;
127 + use Crypt::RSA::Key;
128 + use Crypt::RSA::DataFormat qw(steak octet_len);
129 +-use Convert::ASCII::Armour;
130 + use Carp;
131 +
132 + $Crypt::RSA::VERSION = '1.99'; # change this elsewhere too!
133 +--
134 +2.27.0
135 +