perl-Package-Stash/Package-Stash-0.20-no-Test::Requires.patch
Paul Howarth a39aa3c820 Update to 0.20
- New upstream release 0.20
  - Methods were renamed for brevity: s/_package//
  - Convert Package::Stash into a module which loads either the XS or pure perl
    implementation, depending on what's available
  - Use Test::Fatal instead of Test::Exception
  - Use Dist::CheckConflicts
  - Silence deprecation warnings for the method renaming for now
- New script and manpage: package-stash-conflicts
- New modules and manpages: Package::Stash::Conflicts and Package::Stash::PP
- New build requirements:
  - perl(Dist::CheckConflicts)
  - perl(Package::DeprecationManager)
  - perl(Package::Stash::XS)
  - perl(Test::LeakTrace)
  - perl(Test::Requires)
  - perl(Test::Script)
- Update patches for old ExtUtils::MakeMaker and Test::More versions
- Add new patch to work around absence of Test::Requires in EPEL-4
- Require perl(Package::Stash::XS) for performance and consistency
- Manually provide perl(Package::Stash::Conflicts), hidden from auto-provides
2011-01-07 12:09:42 +00:00

49 lines
1.6 KiB
Diff

diff -up Package-Stash-0.20/t/20-leaks.t.orig Package-Stash-0.20/t/20-leaks.t
--- Package-Stash-0.20/t/20-leaks.t.orig 2011-01-04 16:31:03.000000000 +0000
+++ Package-Stash-0.20/t/20-leaks.t 2011-01-04 16:32:31.507953903 +0000
@@ -4,8 +4,12 @@ use warnings;
use lib 't/lib';
use Test::More;
use Test::Fatal;
-use Test::Requires 'Test::LeakTrace';
-plan tests => 25;
+eval "use Test::LeakTrace";
+if ($@) {
+ plan skip_all => "Test::LeakTrace required for this test";
+} else {
+ plan tests => 25;
+}
use Package::Stash;
use Symbol;
diff -up Package-Stash-0.20/t/21-leaks-debug.t.orig Package-Stash-0.20/t/21-leaks-debug.t
--- Package-Stash-0.20/t/21-leaks-debug.t.orig 2011-01-04 16:31:03.000000000 +0000
+++ Package-Stash-0.20/t/21-leaks-debug.t 2011-01-04 16:32:53.018560833 +0000
@@ -4,8 +4,12 @@ use warnings;
use lib 't/lib';
use Test::More;
use Test::Fatal;
-use Test::Requires 'Test::LeakTrace';
-plan tests => 25;
+eval "use Test::LeakTrace";
+if ($@) {
+ plan skip_all => "Test::LeakTrace required for this test";
+} else {
+ plan tests => 25;
+}
BEGIN { $^P |= 0x210 } # PERLDBf_SUBLINE
diff -up Package-Stash-0.20/t/impl-selection/11-basic-xs.t.orig Package-Stash-0.20/t/impl-selection/11-basic-xs.t
--- Package-Stash-0.20/t/impl-selection/11-basic-xs.t.orig 2011-01-04 16:31:03.410468453 +0000
+++ Package-Stash-0.20/t/impl-selection/11-basic-xs.t 2011-01-04 16:31:03.413468538 +0000
@@ -3,7 +3,7 @@ use strict;
use warnings;
use Test::More tests => 124;
use Test::Fatal;
-use Test::Requires 'Package::Stash::XS';
+use Package::Stash::XS;
BEGIN { $Package::Stash::IMPLEMENTATION = 'XS' }