summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Fredric <kentnl@gentoo.org>2018-03-26 23:53:18 +1300
committerKent Fredric <kentnl@gentoo.org>2018-03-26 23:53:53 +1300
commit2fa5c807b5b61eded816bda5e24fdd13a57dbff2 (patch)
treeb8f4c21effd6e97358d995ec8101ff3ca7074724 /dev-perl/XML-Atom/files
parentdev-python/socketpool: fix EXAMPLES in EAPI 6 (diff)
downloadgentoo-2fa5c807b5b61eded816bda5e24fdd13a57dbff2.tar.gz
gentoo-2fa5c807b5b61eded816bda5e24fdd13a57dbff2.tar.bz2
gentoo-2fa5c807b5b61eded816bda5e24fdd13a57dbff2.zip
dev-perl/XML-Atom: Bump to version 0.420.0
- Fix test failures due to '.' in @INC removal - Fix test failures introduced by dev-perl/XML-LibXML being patched to default XXE's to being disabled - Cleanup tests Upstream: - Remove tests dependent on encoding.pm - Move to Module::Build::Tiny - Doc fixes Bug: https://bugs.gentoo.org/623678 Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-perl/XML-Atom/files')
-rw-r--r--dev-perl/XML-Atom/files/XML-Atom-0.42-dotinc.patch27
-rw-r--r--dev-perl/XML-Atom/files/XML-Atom-0.42-testxxe.patch28
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-perl/XML-Atom/files/XML-Atom-0.42-dotinc.patch b/dev-perl/XML-Atom/files/XML-Atom-0.42-dotinc.patch
new file mode 100644
index 000000000000..c067fb6e0015
--- /dev/null
+++ b/dev-perl/XML-Atom/files/XML-Atom-0.42-dotinc.patch
@@ -0,0 +1,27 @@
+From d2c045a8ca0d0ca147b04bc9e7c70b27db8cc4e1 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Mon, 26 Mar 2018 23:28:08 +1300
+Subject: Fix tests failing without '.' in @INC
+
+Bug: https://github.com/miyagawa/xml-atom/issues/12
+Bug: https://github.com/miyagawa/xml-atom/pull/14
+---
+ t/11-entry.t | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/t/11-entry.t b/t/11-entry.t
+index bbcb107..5955e97 100644
+--- a/t/11-entry.t
++++ b/t/11-entry.t
+@@ -2,7 +2,7 @@
+
+ use strict;
+
+-use t::TestLib;
++BEGIN { require './t/TestLib.pm'; t::TestLib->import() }
+ use Test::More;
+ use XML::Atom;
+ use XML::Atom::Entry;
+--
+2.16.2
+
diff --git a/dev-perl/XML-Atom/files/XML-Atom-0.42-testxxe.patch b/dev-perl/XML-Atom/files/XML-Atom-0.42-testxxe.patch
new file mode 100644
index 000000000000..a61fdb990049
--- /dev/null
+++ b/dev-perl/XML-Atom/files/XML-Atom-0.42-testxxe.patch
@@ -0,0 +1,28 @@
+From 919852dce98ce60abf494edfbe3c57d7a08545e4 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Mon, 26 Mar 2018 23:37:10 +1300
+Subject: Force setting exapnd-external-entities on libxml for this test
+
+Gentoo defaults expand-external-entities to off, which naturally breaks
+this test which explicitly uses external entities.
+
+Bug: https://bugs.gentoo.org/623678
+---
+ t/31-external-entities-libxml.t | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/t/31-external-entities-libxml.t b/t/31-external-entities-libxml.t
+index 71f6eb9..8c9df11 100644
+--- a/t/31-external-entities-libxml.t
++++ b/t/31-external-entities-libxml.t
+@@ -51,6 +51,7 @@ EOX
+ ## custom parser
+ {
+ my $libxml = XML::LibXML->new;
++ $libxml->expand_entities(1);
+ my $entry = XML::Atom::Entry->new(Stream => \$xml, Parser => $libxml);
+ is $entry->title, "Guest Author", "got title";
+ my $content = $entry->content->body;
+--
+2.16.2
+