mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-perl/Data-FormValidator: Cleanup old versions 4.86*
Package-Manager: Portage-2.3.29, Repoman-2.3.9
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DIST_AUTHOR=DFARRELL
|
||||
DIST_VERSION=4.86
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Validates user input (usually from an HTML form) based on input profile"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc ppc64 x86"
|
||||
IUSE=""
|
||||
|
||||
PATCHES=( "${FILESDIR}/4.86-dot-in-inc.patch" )
|
||||
RDEPEND="dev-perl/Image-Size
|
||||
>=dev-perl/Date-Calc-5.0
|
||||
>=dev-perl/File-MMagic-1.17
|
||||
>=dev-perl/MIME-Types-1.005
|
||||
>=dev-perl/Regexp-Common-0.30.0
|
||||
dev-perl/Email-Valid
|
||||
virtual/perl-File-Spec
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/perl-ExtUtils-MakeMaker
|
||||
"
|
||||
|
||||
src_test() {
|
||||
perl_rm_files t/pod.t
|
||||
perl-module_src_test
|
||||
}
|
||||
@@ -1,2 +1 @@
|
||||
DIST Data-FormValidator-4.86.tar.gz 101409 BLAKE2B 5c5c3abf715155ccf5340c9f95aef6bea26452376618c23164f5d025cb21615a6db4d4839f306443f775883a8a90495a7a470aabdbef52d697657ee2ac5d8bb8 SHA512 ca9e178313dcc15006a0d5557494d50d9328ae4ae9b54428bfd76b3c6169767290f819c70af1928f772ce9a2cd2139eb373e69394af8f03eee0f061525bc76f4
|
||||
DIST Data-FormValidator-4.88.tar.gz 99850 BLAKE2B abb72030dd9b6155c83aa95d975643c6ebd4e4b8b15b7cc360d1a2ff81eddc9b210e8bda7408876f27bba9241541f1e3e6289ebb037a50e0a77d5850b281be76 SHA512 f4f9d813a3c9ae3cefdc1795516c955307dbaa23ca464e5a0a31eb4a9f43a3f31da8155b911433d29915d65da5b05d0843b7de45287d977a0c58ba19f3cfc736
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
From bfc088aa911062d987c830d5bb56aa4afd0d3735 Mon Sep 17 00:00:00 2001
|
||||
From: Kent Fredric <kentfredric@gmail.com>
|
||||
Date: Sun, 4 Jun 2017 00:40:04 +1200
|
||||
Subject: [PATCH] Absolutize filenames during construction
|
||||
|
||||
This way, any relative paths become absolute as soon as possible,
|
||||
so that if chdir happens between "new" and "load_profiles", the loaded
|
||||
file won't magically change.
|
||||
|
||||
This also aims to turn the <do "file.pm"> into a <do "/path/to/File.pm">
|
||||
as the former no longer reads from "." since Perl 5.25.11, as paths
|
||||
with neither leading "./" or leading "/" imply @INC traversal.
|
||||
|
||||
This aims to resolve RT#120671
|
||||
|
||||
https://rt.cpan.org/Ticket/Display.html?id=120671
|
||||
https://bugs.gentoo.org/613378
|
||||
---
|
||||
Makefile.PL | 1 +
|
||||
lib/Data/FormValidator.pm | 3 ++-
|
||||
2 files changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile.PL b/Makefile.PL
|
||||
index a9839a6..cef175a 100644
|
||||
--- a/Makefile.PL
|
||||
+++ b/Makefile.PL
|
||||
@@ -19,6 +19,7 @@ WriteMakefile(
|
||||
'Regexp::Common' => 0.03, # when ::whitespace was added
|
||||
'Scalar::Util' => 0,
|
||||
'Email::Valid' => 0,
|
||||
+ 'File::Spec' => 0,
|
||||
},
|
||||
(eval { ExtUtils::MakeMaker->VERSION(6.46) } ? (META_MERGE => {
|
||||
'meta-spec' => { version => 2 },
|
||||
diff --git a/lib/Data/FormValidator.pm b/lib/Data/FormValidator.pm
|
||||
index 7075dc4..bc0709e 100644
|
||||
--- a/lib/Data/FormValidator.pm
|
||||
+++ b/lib/Data/FormValidator.pm
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
package Data::FormValidator;
|
||||
use Exporter 'import';
|
||||
+use File::Spec qw();
|
||||
use 5.008;
|
||||
|
||||
use Data::FormValidator::Results;
|
||||
@@ -147,7 +148,7 @@ sub new {
|
||||
$profiles = $profiles_or_file;
|
||||
}
|
||||
else {
|
||||
- $file = $profiles_or_file;
|
||||
+ $file = File::Spec->rel2abs( $profiles_or_file );
|
||||
}
|
||||
|
||||
|
||||
--
|
||||
2.12.2
|
||||
|
||||
Reference in New Issue
Block a user