public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-perl/HTML-TagFilter/, dev-perl/HTML-TagFilter/files/
@ 2017-10-24  5:54 Kent Fredric
  0 siblings, 0 replies; only message in thread
From: Kent Fredric @ 2017-10-24  5:54 UTC (permalink / raw
  To: gentoo-commits

commit:     3317ead1f4e9b39af873a84c44d64a3bda2fd280
Author:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 24 05:49:35 2017 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Tue Oct 24 05:54:28 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3317ead1

dev-perl/HTML-TagFilter: Fix tests without '.' in @INC bug #616992

Closes: https://bugs.gentoo.org/616992
Package-Manager: Portage-2.3.8, Repoman-2.3.3

 .../HTML-TagFilter/HTML-TagFilter-1.30.0.ebuild    |  3 +-
 .../files/HTML-TagFilter-1.30.0-no-dot-inc.patch   | 46 ++++++++++++++++++++++
 2 files changed, 48 insertions(+), 1 deletion(-)

diff --git a/dev-perl/HTML-TagFilter/HTML-TagFilter-1.30.0.ebuild b/dev-perl/HTML-TagFilter/HTML-TagFilter-1.30.0.ebuild
index dfef44f4652..731bc5bd494 100644
--- a/dev-perl/HTML-TagFilter/HTML-TagFilter-1.30.0.ebuild
+++ b/dev-perl/HTML-TagFilter/HTML-TagFilter-1.30.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -18,5 +18,6 @@ RDEPEND="
 	dev-perl/URI
 "
 DEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}/${P}-no-dot-inc.patch" )
 
 SRC_TEST="do"

diff --git a/dev-perl/HTML-TagFilter/files/HTML-TagFilter-1.30.0-no-dot-inc.patch b/dev-perl/HTML-TagFilter/files/HTML-TagFilter-1.30.0-no-dot-inc.patch
new file mode 100644
index 00000000000..cc2f106182b
--- /dev/null
+++ b/dev-perl/HTML-TagFilter/files/HTML-TagFilter-1.30.0-no-dot-inc.patch
@@ -0,0 +1,46 @@
+From 6b22ff73fac56cd405f021f5c9fd1cce6f62cff0 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Tue, 24 Oct 2017 18:44:46 +1300
+Subject: Fix tests for '.' in @INC
+
+Bug: https://bugs.gentoo.org/616992
+Bug: https://rt.cpan.org/Ticket/Display.html?id=121449
+---
+ MANIFEST                   | 2 +-
+ t/04-subclass.t            | 1 +
+ {My => t/lib/My}/Filter.pm | 0
+ 3 files changed, 2 insertions(+), 1 deletion(-)
+ rename {My => t/lib/My}/Filter.pm (100%)
+
+diff --git a/MANIFEST b/MANIFEST
+index 2ef9813..ef6a569 100644
+--- a/MANIFEST
++++ b/MANIFEST
+@@ -3,7 +3,7 @@ Makefile.PL
+ MANIFEST
+ README
+ TagFilter.pm
+-My/Filter.pm
++t/lib/My/Filter.pm
+ t/01-filter.t
+ t/02-xss.t
+ t/03-extension.t
+diff --git a/t/04-subclass.t b/t/04-subclass.t
+index ef2eb61..f8b3598 100644
+--- a/t/04-subclass.t
++++ b/t/04-subclass.t
+@@ -2,6 +2,7 @@ package main;
+ 
+ use strict;
+ use Test::More;
++use lib 't/lib';
+ use My::Filter;
+ 
+ BEGIN {
+diff --git a/My/Filter.pm b/t/lib/My/Filter.pm
+similarity index 100%
+rename from My/Filter.pm
+rename to t/lib/My/Filter.pm
+-- 
+2.14.2
+


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-10-24  5:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-24  5:54 [gentoo-commits] repo/gentoo:master commit in: dev-perl/HTML-TagFilter/, dev-perl/HTML-TagFilter/files/ Kent Fredric

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox