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/CGI-Compile/, dev-perl/CGI-Compile/files/
Date: Sat, 30 Sep 2017 15:30:43
Message-Id: 1506785428.ed4d946fb02797a820518b848cd883b338a43e9f.kentnl@gentoo
1 commit: ed4d946fb02797a820518b848cd883b338a43e9f
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 30 15:29:34 2017 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 30 15:30:28 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed4d946f
7
8 dev-perl/CGI-Compile: Fix test failures re bug #614352
9
10 Don't be broken on Perl 5.26+ with PERL_USE_UNSAFE_INC=0
11
12 Closes: https://bugs.gentoo.org/614352
13 Package-Manager: Portage-2.3.8, Repoman-2.3.3
14
15 dev-perl/CGI-Compile/CGI-Compile-0.210.0.ebuild | 1 +
16 dev-perl/CGI-Compile/CGI-Compile-0.220.0.ebuild | 1 +
17 .../files/CGI-Compile-0.210.0-perl-526.patch | 137 +++++++++++++++++++++
18 3 files changed, 139 insertions(+)
19
20 diff --git a/dev-perl/CGI-Compile/CGI-Compile-0.210.0.ebuild b/dev-perl/CGI-Compile/CGI-Compile-0.210.0.ebuild
21 index 6a9966cb899..f26f71037d9 100644
22 --- a/dev-perl/CGI-Compile/CGI-Compile-0.210.0.ebuild
23 +++ b/dev-perl/CGI-Compile/CGI-Compile-0.210.0.ebuild
24 @@ -23,3 +23,4 @@ DEPEND="${RDEPEND}
25 virtual/perl-Test-Simple
26 )
27 "
28 +PATCHES=("${FILESDIR}/${P}-perl-526.patch")
29
30 diff --git a/dev-perl/CGI-Compile/CGI-Compile-0.220.0.ebuild b/dev-perl/CGI-Compile/CGI-Compile-0.220.0.ebuild
31 index a3739fa0622..3eaa6040e60 100644
32 --- a/dev-perl/CGI-Compile/CGI-Compile-0.220.0.ebuild
33 +++ b/dev-perl/CGI-Compile/CGI-Compile-0.220.0.ebuild
34 @@ -23,3 +23,4 @@ DEPEND="${RDEPEND}
35 virtual/perl-Test-Simple
36 )
37 "
38 +PATCHES=("${FILESDIR}/${PN}-0.210.0-perl-526.patch")
39
40 diff --git a/dev-perl/CGI-Compile/files/CGI-Compile-0.210.0-perl-526.patch b/dev-perl/CGI-Compile/files/CGI-Compile-0.210.0-perl-526.patch
41 new file mode 100644
42 index 00000000000..74945fb9488
43 --- /dev/null
44 +++ b/dev-perl/CGI-Compile/files/CGI-Compile-0.210.0-perl-526.patch
45 @@ -0,0 +1,137 @@
46 +From dc9437c949a4f44ca8b36bbf974d6a49337c67b4 Mon Sep 17 00:00:00 2001
47 +From: Kent Fredric <kentnl@g.o>
48 +Date: Sun, 1 Oct 2017 04:10:33 +1300
49 +Subject: Fix tests failure on Perl 5.26+ with PERL_USE_UNSAFE_INC=0
50 +
51 +Bug: https://github.com/miyagawa/CGI-Compile/issues/21
52 +Bug: https://bugs.gentoo.org/614352
53 +---
54 + t/Capture.pm | 3 ++-
55 + t/coderef_args.t | 3 ++-
56 + t/compile.t | 3 ++-
57 + t/data_end.t | 4 +++-
58 + t/exit.t | 2 +-
59 + t/local-SIG.t | 3 ++-
60 + t/source.t | 3 ++-
61 + t/source_filter.t | 3 ++-
62 + t/warnings.t | 3 ++-
63 + 9 files changed, 18 insertions(+), 9 deletions(-)
64 +
65 +diff --git a/t/Capture.pm b/t/Capture.pm
66 +index 476f80d..2331b33 100644
67 +--- a/t/Capture.pm
68 ++++ b/t/Capture.pm
69 +@@ -1,4 +1,5 @@
70 +-package t::Capture;
71 ++package # Hide from PAUSE
72 ++ Capture;
73 + use base qw(Exporter);
74 + our @EXPORT = qw(capture_out);
75 +
76 +diff --git a/t/coderef_args.t b/t/coderef_args.t
77 +index 8d9c1b4..89720dd 100644
78 +--- a/t/coderef_args.t
79 ++++ b/t/coderef_args.t
80 +@@ -1,5 +1,6 @@
81 + use Test::More;
82 +-use t::Capture;
83 ++use lib 't';
84 ++use Capture;
85 + use CGI::Compile;
86 +
87 + my $sub = CGI::Compile->compile("t/args.cgi");
88 +diff --git a/t/compile.t b/t/compile.t
89 +index db42283..f302f9b 100644
90 +--- a/t/compile.t
91 ++++ b/t/compile.t
92 +@@ -1,6 +1,7 @@
93 + use Test::More;
94 + use Test::Requires qw(CGI);
95 +-use t::Capture;
96 ++use lib 't';
97 ++use Capture;
98 + use CGI::Compile;
99 + #no warnings 'signal'; # for MSWin32
100 +
101 +diff --git a/t/data_end.t b/t/data_end.t
102 +index af468f7..175641f 100644
103 +--- a/t/data_end.t
104 ++++ b/t/data_end.t
105 +@@ -1,6 +1,8 @@
106 + use Test::More;
107 + use CGI::Compile;
108 +-use t::Capture;
109 ++
110 ++use lib 't';
111 ++use Capture;
112 +
113 + {
114 + my $sub = CGI::Compile->compile("t/data.cgi");
115 +diff --git a/t/exit.t b/t/exit.t
116 +index b98b28a..2167b1c 100644
117 +--- a/t/exit.t
118 ++++ b/t/exit.t
119 +@@ -1,8 +1,8 @@
120 + use strict;
121 + use Test::More tests => 2;
122 + use CGI::Compile;
123 +-use t::Capture;
124 + use lib "t";
125 ++use Capture;
126 + use Exit;
127 +
128 + my $sub = CGI::Compile->compile("t/exit.cgi");
129 +diff --git a/t/local-SIG.t b/t/local-SIG.t
130 +index b781c05..68f733e 100644
131 +--- a/t/local-SIG.t
132 ++++ b/t/local-SIG.t
133 +@@ -1,6 +1,7 @@
134 + #!perl
135 +
136 +-use t::Capture;
137 ++use lib 't';
138 ++use Capture;
139 + use CGI::Compile;
140 + use POSIX qw(:signal_h);
141 +
142 +diff --git a/t/source.t b/t/source.t
143 +index e212244..b101632 100644
144 +--- a/t/source.t
145 ++++ b/t/source.t
146 +@@ -1,6 +1,7 @@
147 + use Test::More;
148 + use CGI::Compile;
149 +-use t::Capture;
150 ++use lib 't';
151 ++use Capture;
152 +
153 + {
154 + my $str =<<EOL;
155 +diff --git a/t/source_filter.t b/t/source_filter.t
156 +index 8b84e0c..51b11b2 100644
157 +--- a/t/source_filter.t
158 ++++ b/t/source_filter.t
159 +@@ -1,6 +1,7 @@
160 + use Test::More;
161 + use Test::Requires qw(Switch);
162 +-use t::Capture;
163 ++use lib 't';
164 ++use Capture;
165 + use CGI::Compile;
166 +
167 + my $sub = eval {
168 +diff --git a/t/warnings.t b/t/warnings.t
169 +index 5962aae..0d044cb 100644
170 +--- a/t/warnings.t
171 ++++ b/t/warnings.t
172 +@@ -1,5 +1,6 @@
173 + use Test::More;
174 +-use t::Capture;
175 ++use lib 't';
176 ++use Capture;
177 + use CGI::Compile;
178 +
179 + my $sub = CGI::Compile->compile("t/warnings.cgi");
180 +--
181 +2.14.1
182 +