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/XML-DOM/, dev-perl/XML-DOM/files/
Date: Sun, 25 Mar 2018 09:55:09
Message-Id: 1521971681.3bf65ffc00cce68366f04d56edfecf6c9986ecaf.kentnl@gentoo
1 commit: 3bf65ffc00cce68366f04d56edfecf6c9986ecaf
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 25 09:54:02 2018 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 25 09:54:41 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3bf65ffc
7
8 dev-perl/XML-DOM: Fix tests for '.' in @INC removal bug #623186
9
10 Bug: https://bugs.gentoo.org/623186
11 Package-Manager: Portage-2.3.24, Repoman-2.3.6
12
13 dev-perl/XML-DOM/XML-DOM-1.460.0-r1.ebuild | 27 ++++
14 dev-perl/XML-DOM/files/XML-DOM-1.46-nodotinc.patch | 156 +++++++++++++++++++++
15 2 files changed, 183 insertions(+)
16
17 diff --git a/dev-perl/XML-DOM/XML-DOM-1.460.0-r1.ebuild b/dev-perl/XML-DOM/XML-DOM-1.460.0-r1.ebuild
18 new file mode 100644
19 index 00000000000..93154976695
20 --- /dev/null
21 +++ b/dev-perl/XML-DOM/XML-DOM-1.460.0-r1.ebuild
22 @@ -0,0 +1,27 @@
23 +# Copyright 1999-2018 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=6
27 +
28 +DIST_AUTHOR=TJMATHER
29 +DIST_VERSION=1.46
30 +inherit perl-module
31 +
32 +DESCRIPTION="A Perl module for an DOM Level 1 compliant interface"
33 +
34 +SLOT="0"
35 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
36 +IUSE="test"
37 +
38 +RDEPEND="
39 + dev-perl/libwww-perl
40 + >=dev-perl/XML-Parser-2.300.0
41 + dev-perl/XML-RegExp
42 +"
43 +DEPEND="${RDEPEND}
44 + virtual/perl-ExtUtils-MakeMaker
45 + test? (
46 + >=dev-perl/libxml-perl-0.70.0
47 + )
48 +"
49 +PATCHES=("${FILESDIR}/${PN}-1.46-nodotinc.patch")
50
51 diff --git a/dev-perl/XML-DOM/files/XML-DOM-1.46-nodotinc.patch b/dev-perl/XML-DOM/files/XML-DOM-1.46-nodotinc.patch
52 new file mode 100644
53 index 00000000000..3d2078aba68
54 --- /dev/null
55 +++ b/dev-perl/XML-DOM/files/XML-DOM-1.46-nodotinc.patch
56 @@ -0,0 +1,156 @@
57 +From 6618c46e46be864dc7f13b217e2912c79bd4b61b Mon Sep 17 00:00:00 2001
58 +From: Kent Fredric <kentnl@g.o>
59 +Date: Sun, 25 Mar 2018 22:48:44 +1300
60 +Subject: Patch test suite for '.' in @INC removal in 5.26 and greater.
61 +
62 +Bug: https://bugs.gentoo.org/623186
63 +---
64 + MANIFEST | 4 ++--
65 + t/dom_astress.t | 1 +
66 + t/dom_attr.t | 1 +
67 + t/dom_cdata.t | 1 +
68 + t/dom_encode.t | 1 +
69 + t/dom_jp_astress.t | 1 +
70 + t/dom_jp_attr.t | 1 +
71 + t/dom_jp_cdata.t | 1 +
72 + t/dom_jp_modify.t | 1 +
73 + t/dom_modify.t | 1 +
74 + CheckAncestors.pm => t/lib/CheckAncestors.pm | 0
75 + CmpDOM.pm => t/lib/CmpDOM.pm | 0
76 + 12 files changed, 11 insertions(+), 2 deletions(-)
77 + rename CheckAncestors.pm => t/lib/CheckAncestors.pm (100%)
78 + rename CmpDOM.pm => t/lib/CmpDOM.pm (100%)
79 +
80 +diff --git a/MANIFEST b/MANIFEST
81 +index fe947b3..72eeb85 100644
82 +--- a/MANIFEST
83 ++++ b/MANIFEST
84 +@@ -1,7 +1,7 @@
85 + BUGS
86 + Changes
87 +-CheckAncestors.pm Used by test cases in t/
88 +-CmpDOM.pm Used by test cases in t/
89 ++t/lib/CheckAncestors.pm Used by test cases in t/
90 ++t/lib/CmpDOM.pm Used by test cases in t/
91 + FAQ.xml
92 + MANIFEST This file.
93 + Makefile.PL
94 +diff --git a/t/dom_astress.t b/t/dom_astress.t
95 +index 2bc7a6a..ac11c96 100644
96 +--- a/t/dom_astress.t
97 ++++ b/t/dom_astress.t
98 +@@ -9,6 +9,7 @@
99 + BEGIN {print "1..4\n";}
100 + END {print "not ok 1\n" unless $loaded;}
101 + use XML::DOM;
102 ++use lib 't/lib';
103 + use CmpDOM;
104 + $loaded = 1;
105 + print "ok 1\n";
106 +diff --git a/t/dom_attr.t b/t/dom_attr.t
107 +index afbea05..683f727 100644
108 +--- a/t/dom_attr.t
109 ++++ b/t/dom_attr.t
110 +@@ -1,6 +1,7 @@
111 + BEGIN {print "1..23\n";}
112 + END {print "not ok 1\n" unless $loaded;}
113 + use XML::DOM;
114 ++use lib 't/lib';
115 + use CheckAncestors;
116 + use CmpDOM;
117 + $loaded = 1;
118 +diff --git a/t/dom_cdata.t b/t/dom_cdata.t
119 +index 3f4a47b..a7692df 100644
120 +--- a/t/dom_cdata.t
121 ++++ b/t/dom_cdata.t
122 +@@ -1,6 +1,7 @@
123 + BEGIN {print "1..3\n";}
124 + END {print "not ok 1\n" unless $loaded;}
125 + use XML::DOM;
126 ++use lib 't/lib';
127 + use CheckAncestors;
128 + use CmpDOM;
129 + $loaded = 1;
130 +diff --git a/t/dom_encode.t b/t/dom_encode.t
131 +index 71519a4..60abfca 100644
132 +--- a/t/dom_encode.t
133 ++++ b/t/dom_encode.t
134 +@@ -1,6 +1,7 @@
135 + BEGIN {print "1..3\n";}
136 + END {print "not ok 1\n" unless $loaded;}
137 + use XML::DOM;
138 ++use lib 't/lib';
139 + use CheckAncestors;
140 + use CmpDOM;
141 + $loaded = 1;
142 +diff --git a/t/dom_jp_astress.t b/t/dom_jp_astress.t
143 +index 04c66b6..19c1b21 100644
144 +--- a/t/dom_jp_astress.t
145 ++++ b/t/dom_jp_astress.t
146 +@@ -1,6 +1,7 @@
147 + BEGIN {print "1..4\n";}
148 + END {print "not ok 1\n" unless $loaded;}
149 + use XML::DOM;
150 ++use lib 't/lib';
151 + use CmpDOM;
152 + $loaded = 1;
153 + print "ok 1\n";
154 +diff --git a/t/dom_jp_attr.t b/t/dom_jp_attr.t
155 +index 4ecca27..eb37091 100644
156 +--- a/t/dom_jp_attr.t
157 ++++ b/t/dom_jp_attr.t
158 +@@ -1,6 +1,7 @@
159 + BEGIN {print "1..23\n";}
160 + END {print "not ok 1\n" unless $loaded;}
161 + use XML::DOM;
162 ++use lib 't/lib';
163 + use CheckAncestors;
164 + use CmpDOM;
165 + use utf8;
166 +diff --git a/t/dom_jp_cdata.t b/t/dom_jp_cdata.t
167 +index e512fc5..7c4dcb1 100644
168 +--- a/t/dom_jp_cdata.t
169 ++++ b/t/dom_jp_cdata.t
170 +@@ -1,6 +1,7 @@
171 + BEGIN {print "1..3\n";}
172 + END {print "not ok 1\n" unless $loaded;}
173 + use XML::DOM;
174 ++use lib 't/lib';
175 + use CheckAncestors;
176 + use CmpDOM;
177 + use utf8;
178 +diff --git a/t/dom_jp_modify.t b/t/dom_jp_modify.t
179 +index a749c42..049dfa1 100644
180 +--- a/t/dom_jp_modify.t
181 ++++ b/t/dom_jp_modify.t
182 +@@ -1,6 +1,7 @@
183 + BEGIN {print "1..16\n";}
184 + END {print "not ok 1\n" unless $loaded;}
185 + use XML::DOM;
186 ++use lib 't/lib';
187 + use CheckAncestors;
188 + use utf8;
189 + $loaded = 1;
190 +diff --git a/t/dom_modify.t b/t/dom_modify.t
191 +index ba74475..42058a6 100644
192 +--- a/t/dom_modify.t
193 ++++ b/t/dom_modify.t
194 +@@ -1,6 +1,7 @@
195 + BEGIN {print "1..16\n";}
196 + END {print "not ok 1\n" unless $loaded;}
197 + use XML::DOM;
198 ++use lib 't/lib';
199 + use CheckAncestors;
200 + $loaded = 1;
201 + print "ok 1\n";
202 +diff --git a/CheckAncestors.pm b/t/lib/CheckAncestors.pm
203 +similarity index 100%
204 +rename from CheckAncestors.pm
205 +rename to t/lib/CheckAncestors.pm
206 +diff --git a/CmpDOM.pm b/t/lib/CmpDOM.pm
207 +similarity index 100%
208 +rename from CmpDOM.pm
209 +rename to t/lib/CmpDOM.pm
210 +--
211 +2.16.2
212 +