1 |
commit: 086d3e431ac6f0dbc11598013e7ca673de706047 |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 30 08:57:01 2017 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 30 09:02:18 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=086d3e43 |
7 |
|
8 |
dev-perl/Math-BigInt-GMP: Fix test failures w/o '.' in @INC bug #613642 |
9 |
|
10 |
Some of these have follow up issues that are beyond my capacity to fix |
11 |
other than stabilizing |
12 |
|
13 |
Closes: https://bugs.gentoo.org/613642 |
14 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
15 |
|
16 |
.../Math-BigInt-GMP/Math-BigInt-GMP-1.380.0.ebuild | 4 +- |
17 |
.../Math-BigInt-GMP/Math-BigInt-GMP-1.490.0.ebuild | 1 + |
18 |
.../Math-BigInt-GMP-1.600.200.ebuild | 1 + |
19 |
.../files/Math-BigInt-GMP-1.380.0-no-dot-inc.patch | 37 ++++++++++++++++ |
20 |
.../files/Math-BigInt-GMP-1.490.0-no-dot-inc.patch | 37 ++++++++++++++++ |
21 |
.../Math-BigInt-GMP-1.600.200-no-dot-inc.patch | 51 ++++++++++++++++++++++ |
22 |
6 files changed, 129 insertions(+), 2 deletions(-) |
23 |
|
24 |
diff --git a/dev-perl/Math-BigInt-GMP/Math-BigInt-GMP-1.380.0.ebuild b/dev-perl/Math-BigInt-GMP/Math-BigInt-GMP-1.380.0.ebuild |
25 |
index 3c7fdfc922f..645f570866c 100644 |
26 |
--- a/dev-perl/Math-BigInt-GMP/Math-BigInt-GMP-1.380.0.ebuild |
27 |
+++ b/dev-perl/Math-BigInt-GMP/Math-BigInt-GMP-1.380.0.ebuild |
28 |
@@ -1,4 +1,4 @@ |
29 |
-# Copyright 1999-2014 Gentoo Foundation |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
# Distributed under the terms of the GNU General Public License v2 |
32 |
|
33 |
EAPI=5 |
34 |
@@ -16,5 +16,5 @@ IUSE="" |
35 |
RDEPEND=">=virtual/perl-Math-BigInt-1.999.300 |
36 |
>=dev-libs/gmp-4.0.0:0" |
37 |
DEPEND="${RDEPEND}" |
38 |
- |
39 |
+PATCHES=("${FILESDIR}/${P}-no-dot-inc.patch") |
40 |
SRC_TEST="do" |
41 |
|
42 |
diff --git a/dev-perl/Math-BigInt-GMP/Math-BigInt-GMP-1.490.0.ebuild b/dev-perl/Math-BigInt-GMP/Math-BigInt-GMP-1.490.0.ebuild |
43 |
index 0c69b17967f..6f3fd80ddaa 100644 |
44 |
--- a/dev-perl/Math-BigInt-GMP/Math-BigInt-GMP-1.490.0.ebuild |
45 |
+++ b/dev-perl/Math-BigInt-GMP/Math-BigInt-GMP-1.490.0.ebuild |
46 |
@@ -22,3 +22,4 @@ DEPEND="${RDEPEND} |
47 |
virtual/perl-ExtUtils-MakeMaker |
48 |
test? ( >=virtual/perl-Test-Simple-0.470.0 ) |
49 |
" |
50 |
+PATCHES=("${FILESDIR}/${P}-no-dot-inc.patch") |
51 |
|
52 |
diff --git a/dev-perl/Math-BigInt-GMP/Math-BigInt-GMP-1.600.200.ebuild b/dev-perl/Math-BigInt-GMP/Math-BigInt-GMP-1.600.200.ebuild |
53 |
index 667b952726d..4a1cbfa86ae 100644 |
54 |
--- a/dev-perl/Math-BigInt-GMP/Math-BigInt-GMP-1.600.200.ebuild |
55 |
+++ b/dev-perl/Math-BigInt-GMP/Math-BigInt-GMP-1.600.200.ebuild |
56 |
@@ -22,6 +22,7 @@ DEPEND="${RDEPEND} |
57 |
virtual/perl-ExtUtils-MakeMaker |
58 |
test? ( >=virtual/perl-Test-Simple-0.820.0 ) |
59 |
" |
60 |
+PATCHES=("${FILESDIR}/${P}-no-dot-inc.patch") |
61 |
src_test() { |
62 |
perl_rm_files t/author-*.t t/00sig.t t/02pod.t t/03podcov.t |
63 |
perl-module_src_test |
64 |
|
65 |
diff --git a/dev-perl/Math-BigInt-GMP/files/Math-BigInt-GMP-1.380.0-no-dot-inc.patch b/dev-perl/Math-BigInt-GMP/files/Math-BigInt-GMP-1.380.0-no-dot-inc.patch |
66 |
new file mode 100644 |
67 |
index 00000000000..96e7f88d3e1 |
68 |
--- /dev/null |
69 |
+++ b/dev-perl/Math-BigInt-GMP/files/Math-BigInt-GMP-1.380.0-no-dot-inc.patch |
70 |
@@ -0,0 +1,37 @@ |
71 |
+From 4a57ce8560c39b71ba6b8220a63efcbf5aac82ea Mon Sep 17 00:00:00 2001 |
72 |
+From: Kent Fredric <kentnl@g.o> |
73 |
+Date: Mon, 30 Oct 2017 21:42:48 +1300 |
74 |
+Subject: Fix test failures without '.' in @INC |
75 |
+ |
76 |
+Under PERL_USE_UNSAFE_INC=0 |
77 |
+ |
78 |
+Bug: https://bugs.gentoo.org/613642 |
79 |
+Bug: https://rt.cpan.org/Ticket/Display.html?id=120718 |
80 |
+--- |
81 |
+ t/bigfltpm.t | 2 +- |
82 |
+ t/bigintpm.t | 2 +- |
83 |
+ 2 files changed, 2 insertions(+), 2 deletions(-) |
84 |
+ |
85 |
+diff --git a/t/bigfltpm.t b/t/bigfltpm.t |
86 |
+index de3c80e..89dea16 100644 |
87 |
+--- a/t/bigfltpm.t |
88 |
++++ b/t/bigfltpm.t |
89 |
+@@ -26,4 +26,4 @@ my $e = $c->bdiv(Math::BigFloat->new(3),$d); |
90 |
+ is ($e,'0.00267'); # '0.008 / 3 => 0.0027'); |
91 |
+ is (ref($e->{_e}->[0]), ''); # 'Not a BigInt'); |
92 |
+ |
93 |
+-require 't/bigfltpm.inc'; # all tests here for sharing |
94 |
++require './t/bigfltpm.inc'; # all tests here for sharing |
95 |
+diff --git a/t/bigintpm.t b/t/bigintpm.t |
96 |
+index 8f009ec..c05f135 100644 |
97 |
+--- a/t/bigintpm.t |
98 |
++++ b/t/bigintpm.t |
99 |
+@@ -33,4 +33,4 @@ is ($x, "9903520314281112085086151826", 'from_oct() works with big numbers'); |
100 |
+ ############################################################################# |
101 |
+ # all the other tests |
102 |
+ |
103 |
+-require 't/bigintpm.inc'; # all tests here for sharing |
104 |
++require './t/bigintpm.inc'; # all tests here for sharing |
105 |
+-- |
106 |
+2.14.3 |
107 |
+ |
108 |
|
109 |
diff --git a/dev-perl/Math-BigInt-GMP/files/Math-BigInt-GMP-1.490.0-no-dot-inc.patch b/dev-perl/Math-BigInt-GMP/files/Math-BigInt-GMP-1.490.0-no-dot-inc.patch |
110 |
new file mode 100644 |
111 |
index 00000000000..24c271ea607 |
112 |
--- /dev/null |
113 |
+++ b/dev-perl/Math-BigInt-GMP/files/Math-BigInt-GMP-1.490.0-no-dot-inc.patch |
114 |
@@ -0,0 +1,37 @@ |
115 |
+From edaedb9078d56f4f86cdb7eb9160deeb3196f164 Mon Sep 17 00:00:00 2001 |
116 |
+From: Kent Fredric <kentnl@g.o> |
117 |
+Date: Mon, 30 Oct 2017 21:42:48 +1300 |
118 |
+Subject: Fix test failures without '.' in @INC |
119 |
+ |
120 |
+Under PERL_USE_UNSAFE_INC=0 |
121 |
+ |
122 |
+Bug: https://bugs.gentoo.org/613642 |
123 |
+Bug: https://rt.cpan.org/Ticket/Display.html?id=120718 |
124 |
+--- |
125 |
+ t/bigfltpm.t | 2 +- |
126 |
+ t/bigintpm.t | 2 +- |
127 |
+ 2 files changed, 2 insertions(+), 2 deletions(-) |
128 |
+ |
129 |
+diff --git a/t/bigfltpm.t b/t/bigfltpm.t |
130 |
+index 0e89852..0af20f4 100644 |
131 |
+--- a/t/bigfltpm.t |
132 |
++++ b/t/bigfltpm.t |
133 |
+@@ -33,4 +33,4 @@ SKIP: { |
134 |
+ is(ref($e->{_e}->[0]), '', '$e->{_e}->[0] is a scalar'); |
135 |
+ } |
136 |
+ |
137 |
+-require 't/bigfltpm.inc'; # all tests here for sharing |
138 |
++require './t/bigfltpm.inc'; # all tests here for sharing |
139 |
+diff --git a/t/bigintpm.t b/t/bigintpm.t |
140 |
+index 03dee01..1ebf230 100644 |
141 |
+--- a/t/bigintpm.t |
142 |
++++ b/t/bigintpm.t |
143 |
+@@ -44,4 +44,4 @@ is($x, "9903520314281112085086151826", |
144 |
+ ############################################################################# |
145 |
+ # all the other tests |
146 |
+ |
147 |
+-require 't/bigintpm.inc'; # all tests here for sharing |
148 |
++require './t/bigintpm.inc'; # all tests here for sharing |
149 |
+-- |
150 |
+2.14.3 |
151 |
+ |
152 |
|
153 |
diff --git a/dev-perl/Math-BigInt-GMP/files/Math-BigInt-GMP-1.600.200-no-dot-inc.patch b/dev-perl/Math-BigInt-GMP/files/Math-BigInt-GMP-1.600.200-no-dot-inc.patch |
154 |
new file mode 100644 |
155 |
index 00000000000..2f0158befca |
156 |
--- /dev/null |
157 |
+++ b/dev-perl/Math-BigInt-GMP/files/Math-BigInt-GMP-1.600.200-no-dot-inc.patch |
158 |
@@ -0,0 +1,51 @@ |
159 |
+From 74cf47cac322f4399cea78bf7cdb75769578c035 Mon Sep 17 00:00:00 2001 |
160 |
+From: Kent Fredric <kentnl@g.o> |
161 |
+Date: Mon, 30 Oct 2017 21:42:48 +1300 |
162 |
+Subject: Fix test failures without '.' in @INC |
163 |
+ |
164 |
+Under PERL_USE_UNSAFE_INC=0 |
165 |
+ |
166 |
+Bug: https://bugs.gentoo.org/613642 |
167 |
+Bug: https://rt.cpan.org/Ticket/Display.html?id=120718 |
168 |
+--- |
169 |
+ t/bigfltpm.t | 2 +- |
170 |
+ t/bigintpm.t | 2 +- |
171 |
+ t/mbimbf.t | 2 +- |
172 |
+ 3 files changed, 3 insertions(+), 3 deletions(-) |
173 |
+ |
174 |
+diff --git a/t/bigfltpm.t b/t/bigfltpm.t |
175 |
+index 49c3744..30f2d84 100644 |
176 |
+--- a/t/bigfltpm.t |
177 |
++++ b/t/bigfltpm.t |
178 |
+@@ -72,4 +72,4 @@ SKIP: { |
179 |
+ is(ref($e->{_e}->[0]), '', '$e->{_e}->[0] is a scalar'); |
180 |
+ } |
181 |
+ |
182 |
+-require 't/bigfltpm.inc'; # all tests here for sharing |
183 |
++require './t/bigfltpm.inc'; # all tests here for sharing |
184 |
+diff --git a/t/bigintpm.t b/t/bigintpm.t |
185 |
+index 8351bc6..a82476f 100644 |
186 |
+--- a/t/bigintpm.t |
187 |
++++ b/t/bigintpm.t |
188 |
+@@ -78,4 +78,4 @@ is($x, "9903520314281112085086151826", |
189 |
+ ############################################################################# |
190 |
+ # all the other tests |
191 |
+ |
192 |
+-require 't/bigintpm.inc'; # all tests here for sharing |
193 |
++require './t/bigintpm.inc'; # all tests here for sharing |
194 |
+diff --git a/t/mbimbf.t b/t/mbimbf.t |
195 |
+index 668508e..6b4194e 100644 |
196 |
+--- a/t/mbimbf.t |
197 |
++++ b/t/mbimbf.t |
198 |
+@@ -15,7 +15,7 @@ use Math::BigFloat; |
199 |
+ our $mbi = 'Math::BigInt'; |
200 |
+ our $mbf = 'Math::BigFloat'; |
201 |
+ |
202 |
+-require 't/mbimbf.inc'; |
203 |
++require './t/mbimbf.inc'; |
204 |
+ |
205 |
+ # some tests that won't work with subclasses, since the things are only |
206 |
+ # guaranteed in the Math::Big(Int|Float) (unless subclass chooses to support |
207 |
+-- |
208 |
+2.14.3 |
209 |
+ |