[perl-Package-Stash] Update to 0.23

Paul Howarth pghmcfc at fedoraproject.org
Wed Jan 12 11:51:56 UTC 2011


commit 5f816c8fcc8309f4fad32bec9e5d7454151b63c6
Author: Paul Howarth <paul at city-fan.org>
Date:   Wed Jan 12 11:50:26 2011 +0000

    Update to 0.23
    
    - New upstream release 0.23
      - Lower perl prereq to 5.8.1
      - Make the leak tests release-only
    - Update patches to apply cleanly
    - Add patch to skip memory leak tests if we don't have Test::LeakTrace
      (EPEL 4/5)

 .gitignore                                         |    2 +-
 Package-Stash-0.20-no-Test::Requires.patch         |   48 -----
 ...atch => Package-Stash-0.23-EU::MM-version.patch |   18 +-
 Package-Stash-0.23-no-Test::LeakTrace.patch        |   26 +++
 Package-Stash-0.23-no-Test::Requires.patch         |   11 +
 ...atch => Package-Stash-0.23-old-Test::More.patch |  192 ++++++++++----------
 perl-Package-Stash.spec                            |   21 ++-
 sources                                            |    2 +-
 8 files changed, 162 insertions(+), 158 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 3c7af49..827a5fd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/Package-Stash-0.22.tar.gz
+/Package-Stash-0.23.tar.gz
diff --git a/Package-Stash-0.22-EU::MM-version.patch b/Package-Stash-0.23-EU::MM-version.patch
similarity index 67%
rename from Package-Stash-0.22-EU::MM-version.patch
rename to Package-Stash-0.23-EU::MM-version.patch
index 6e47ad6..b3f0fa2 100644
--- a/Package-Stash-0.22-EU::MM-version.patch
+++ b/Package-Stash-0.23-EU::MM-version.patch
@@ -1,7 +1,7 @@
---- Package-Stash-0.22/Makefile.PL.orig	2011-01-06 05:16:45.000000000 +0000
-+++ Package-Stash-0.22/Makefile.PL	2011-01-06 09:40:45.977580477 +0000
+--- Package-Stash-0.23/Makefile.PL.orig	2011-01-11 17:44:23.000000000 +0000
++++ Package-Stash-0.23/Makefile.PL	2011-01-12 09:40:40.425398934 +0000
 @@ -3,7 +3,7 @@
- BEGIN { require 5.8.3; }
+ BEGIN { require 5.8.1; }
  use strict;
  use warnings;
 -use ExtUtils::MakeMaker 6.31;
@@ -9,7 +9,7 @@
  check_conflicts();
  
  my %WriteMakefileArgs = (
-@@ -16,7 +16,7 @@
+@@ -15,7 +15,7 @@
    },
    'CONFIGURE_REQUIRES' => {
      'Dist::CheckConflicts' => '0.01',
@@ -18,13 +18,13 @@
    },
    'DISTNAME' => 'Package-Stash',
    'EXE_FILES' => [
-@@ -49,6 +49,9 @@
-   }
- }
+@@ -51,6 +51,9 @@
+ delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
+   unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
  
 +delete $WriteMakefileArgs{LICENSE}
 +  unless eval { ExtUtils::MakeMaker->VERSION(6.31) };
 +
- delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
-   unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
+ delete $WriteMakefileArgs{PREREQ_PM}{'Package::Stash::XS'}
+   unless can_cc();
  
diff --git a/Package-Stash-0.23-no-Test::LeakTrace.patch b/Package-Stash-0.23-no-Test::LeakTrace.patch
new file mode 100644
index 0000000..a66dacd
--- /dev/null
+++ b/Package-Stash-0.23-no-Test::LeakTrace.patch
@@ -0,0 +1,26 @@
+diff -up Package-Stash-0.23/t/release-20-leaks.t.orig Package-Stash-0.23/t/release-20-leaks.t
+--- Package-Stash-0.23/t/release-20-leaks.t.orig	2011-01-12 09:57:19.000000000 +0000
++++ Package-Stash-0.23/t/release-20-leaks.t	2011-01-12 09:58:40.139310210 +0000
+@@ -12,7 +12,8 @@ use warnings;
+ use lib 't/lib';
+ use Test::More;
+ use Test::Fatal;
+-use Test::LeakTrace;
++eval "use Test::LeakTrace";
++plan skip_all => "Test::LeakTrace required for this test" if $@;
+ 
+ plan tests => 25;
+ 
+diff -up Package-Stash-0.23/t/release-21-leaks-debug.t.orig Package-Stash-0.23/t/release-21-leaks-debug.t
+--- Package-Stash-0.23/t/release-21-leaks-debug.t.orig	2011-01-12 09:57:19.000000000 +0000
++++ Package-Stash-0.23/t/release-21-leaks-debug.t	2011-01-12 09:58:51.082622361 +0000
+@@ -12,7 +12,8 @@ use warnings;
+ use lib 't/lib';
+ use Test::More;
+ use Test::Fatal;
+-use Test::LeakTrace;
++eval "use Test::LeakTrace";
++plan skip_all => "Test::LeakTrace required for this test" if $@;
+ 
+ plan tests => 25;
+ 
diff --git a/Package-Stash-0.23-no-Test::Requires.patch b/Package-Stash-0.23-no-Test::Requires.patch
new file mode 100644
index 0000000..69d264d
--- /dev/null
+++ b/Package-Stash-0.23-no-Test::Requires.patch
@@ -0,0 +1,11 @@
+--- Package-Stash-0.23/t/impl-selection/11-basic-xs.t	2011-01-04 16:31:03.410468453 +0000
++++ Package-Stash-0.23/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' }
+ 
diff --git a/Package-Stash-0.22-old-Test::More.patch b/Package-Stash-0.23-old-Test::More.patch
similarity index 57%
rename from Package-Stash-0.22-old-Test::More.patch
rename to Package-Stash-0.23-old-Test::More.patch
index b9474e5..d303123 100644
--- a/Package-Stash-0.22-old-Test::More.patch
+++ b/Package-Stash-0.23-old-Test::More.patch
@@ -1,6 +1,6 @@
-diff -up Package-Stash-0.22/t/01-basic.t.orig Package-Stash-0.22/t/01-basic.t
---- Package-Stash-0.22/t/01-basic.t.orig	2011-01-06 05:16:45.000000000 +0000
-+++ Package-Stash-0.22/t/01-basic.t	2011-01-06 09:42:32.847715002 +0000
+diff -up Package-Stash-0.23/t/01-basic.t.orig Package-Stash-0.23/t/01-basic.t
+--- Package-Stash-0.23/t/01-basic.t.orig	2011-01-11 17:44:23.000000000 +0000
++++ Package-Stash-0.23/t/01-basic.t	2011-01-12 09:43:15.946857521 +0000
 @@ -2,7 +2,7 @@
  use strict;
  use warnings;
@@ -16,9 +16,9 @@ diff -up Package-Stash-0.22/t/01-basic.t.orig Package-Stash-0.22/t/01-basic.t
  }
 -
 -done_testing;
-diff -up Package-Stash-0.22/t/02-extension.t.orig Package-Stash-0.22/t/02-extension.t
---- Package-Stash-0.22/t/02-extension.t.orig	2011-01-06 05:16:45.000000000 +0000
-+++ Package-Stash-0.22/t/02-extension.t	2011-01-06 09:42:32.868715618 +0000
+diff -up Package-Stash-0.23/t/02-extension.t.orig Package-Stash-0.23/t/02-extension.t
+--- Package-Stash-0.23/t/02-extension.t.orig	2011-01-11 17:44:23.000000000 +0000
++++ Package-Stash-0.23/t/02-extension.t	2011-01-12 09:43:15.963858007 +0000
 @@ -2,7 +2,7 @@
  use strict;
  use warnings;
@@ -34,9 +34,9 @@ diff -up Package-Stash-0.22/t/02-extension.t.orig Package-Stash-0.22/t/02-extens
  ok(!defined($Foo::{baz}), '... the %baz slot has still not been created');
 -
 -done_testing;
-diff -up Package-Stash-0.22/t/03-io.t.orig Package-Stash-0.22/t/03-io.t
---- Package-Stash-0.22/t/03-io.t.orig	2011-01-06 05:16:45.000000000 +0000
-+++ Package-Stash-0.22/t/03-io.t	2011-01-06 09:42:32.868715618 +0000
+diff -up Package-Stash-0.23/t/03-io.t.orig Package-Stash-0.23/t/03-io.t
+--- Package-Stash-0.23/t/03-io.t.orig	2011-01-11 17:44:23.000000000 +0000
++++ Package-Stash-0.23/t/03-io.t	2011-01-12 09:43:15.963858007 +0000
 @@ -2,7 +2,7 @@
  use strict;
  use warnings;
@@ -52,9 +52,9 @@ diff -up Package-Stash-0.22/t/03-io.t.orig Package-Stash-0.22/t/03-io.t
  }
 -
 -done_testing;
-diff -up Package-Stash-0.22/t/04-get.t.orig Package-Stash-0.22/t/04-get.t
---- Package-Stash-0.22/t/04-get.t.orig	2011-01-06 05:16:45.000000000 +0000
-+++ Package-Stash-0.22/t/04-get.t	2011-01-06 09:42:32.869715648 +0000
+diff -up Package-Stash-0.23/t/04-get.t.orig Package-Stash-0.23/t/04-get.t
+--- Package-Stash-0.23/t/04-get.t.orig	2011-01-11 17:44:23.000000000 +0000
++++ Package-Stash-0.23/t/04-get.t	2011-01-12 09:43:15.964858036 +0000
 @@ -2,7 +2,7 @@
  use strict;
  use warnings;
@@ -70,9 +70,9 @@ diff -up Package-Stash-0.22/t/04-get.t.orig Package-Stash-0.22/t/04-get.t
  }
 -
 -done_testing;
-diff -up Package-Stash-0.22/t/05-isa.t.orig Package-Stash-0.22/t/05-isa.t
---- Package-Stash-0.22/t/05-isa.t.orig	2011-01-06 05:16:45.000000000 +0000
-+++ Package-Stash-0.22/t/05-isa.t	2011-01-06 09:42:32.870715677 +0000
+diff -up Package-Stash-0.23/t/05-isa.t.orig Package-Stash-0.23/t/05-isa.t
+--- Package-Stash-0.23/t/05-isa.t.orig	2011-01-11 17:44:23.000000000 +0000
++++ Package-Stash-0.23/t/05-isa.t	2011-01-12 09:43:15.965858065 +0000
 @@ -2,7 +2,7 @@
  use strict;
  use warnings;
@@ -92,9 +92,9 @@ diff -up Package-Stash-0.22/t/05-isa.t.orig Package-Stash-0.22/t/05-isa.t
 -
 -done_testing;
 +}
-diff -up Package-Stash-0.22/t/06-addsub.t.orig Package-Stash-0.22/t/06-addsub.t
---- Package-Stash-0.22/t/06-addsub.t.orig	2011-01-06 05:16:45.000000000 +0000
-+++ Package-Stash-0.22/t/06-addsub.t	2011-01-06 09:42:32.870715677 +0000
+diff -up Package-Stash-0.23/t/06-addsub.t.orig Package-Stash-0.23/t/06-addsub.t
+--- Package-Stash-0.23/t/06-addsub.t.orig	2011-01-11 17:44:23.000000000 +0000
++++ Package-Stash-0.23/t/06-addsub.t	2011-01-12 09:43:15.965858065 +0000
 @@ -2,7 +2,7 @@
  use strict;
  use warnings;
@@ -110,9 +110,9 @@ diff -up Package-Stash-0.22/t/06-addsub.t.orig Package-Stash-0.22/t/06-addsub.t
      '... got the right %DB::sub value for dunk with specified args';
 -
 -done_testing;
-diff -up Package-Stash-0.22/t/07-edge-cases.t.orig Package-Stash-0.22/t/07-edge-cases.t
---- Package-Stash-0.22/t/07-edge-cases.t.orig	2011-01-06 05:16:45.000000000 +0000
-+++ Package-Stash-0.22/t/07-edge-cases.t	2011-01-06 09:43:05.438672195 +0000
+diff -up Package-Stash-0.23/t/07-edge-cases.t.orig Package-Stash-0.23/t/07-edge-cases.t
+--- Package-Stash-0.23/t/07-edge-cases.t.orig	2011-01-11 17:44:23.000000000 +0000
++++ Package-Stash-0.23/t/07-edge-cases.t	2011-01-12 09:43:15.966858093 +0000
 @@ -2,7 +2,7 @@
  use strict;
  use warnings;
@@ -128,9 +128,9 @@ diff -up Package-Stash-0.22/t/07-edge-cases.t.orig Package-Stash-0.22/t/07-edge-
  use_ok('CompileTime');
 -
 -done_testing;
-diff -up Package-Stash-0.22/t/10-synopsis.t.orig Package-Stash-0.22/t/10-synopsis.t
---- Package-Stash-0.22/t/10-synopsis.t.orig	2011-01-06 05:16:45.000000000 +0000
-+++ Package-Stash-0.22/t/10-synopsis.t	2011-01-06 09:42:32.871715706 +0000
+diff -up Package-Stash-0.23/t/10-synopsis.t.orig Package-Stash-0.23/t/10-synopsis.t
+--- Package-Stash-0.23/t/10-synopsis.t.orig	2011-01-11 17:44:23.000000000 +0000
++++ Package-Stash-0.23/t/10-synopsis.t	2011-01-12 09:43:15.966858093 +0000
 @@ -2,7 +2,7 @@
  use strict;
  use warnings;
@@ -146,65 +146,9 @@ diff -up Package-Stash-0.22/t/10-synopsis.t.orig Package-Stash-0.22/t/10-synopsi
  is_deeply(*{ $namespace->{foo} }{HASH}, {bar => 1}, "namespace works properly");
 -
 -done_testing;
-diff -up Package-Stash-0.22/t/20-leaks.t.orig Package-Stash-0.22/t/20-leaks.t
---- Package-Stash-0.22/t/20-leaks.t.orig	2011-01-06 05:16:45.000000000 +0000
-+++ Package-Stash-0.22/t/20-leaks.t	2011-01-06 09:42:32.872715736 +0000
-@@ -5,6 +5,7 @@ use lib 't/lib';
- use Test::More;
- use Test::Fatal;
- use Test::Requires 'Test::LeakTrace';
-+plan tests => 25;
- 
- use Package::Stash;
- use Symbol;
-@@ -136,7 +137,10 @@ use Symbol;
-     ok($foo->has_symbol('@ISA'));
-     is(ref($foo->get_symbol('@ISA')), 'ARRAY');
-     is_deeply($foo->get_symbol('@ISA'), ['Exporter']);
-+    SKIP: {
-+    skip "Test::More >= 0.88 needed for isa_ok() tests on classes", 1 if $Test::More::VERSION < 0.88;
-     isa_ok('Foo', 'Exporter');
-+    }
- }
- 
- {
-@@ -190,5 +194,3 @@ use Symbol;
-         eval { $foo->get_or_add_symbol('&blorg') };
-     } "doesn't leak on errors";
- }
--
--done_testing;
-diff -up Package-Stash-0.22/t/21-leaks-debug.t.orig Package-Stash-0.22/t/21-leaks-debug.t
---- Package-Stash-0.22/t/21-leaks-debug.t.orig	2011-01-06 05:16:45.000000000 +0000
-+++ Package-Stash-0.22/t/21-leaks-debug.t	2011-01-06 09:42:32.872715736 +0000
-@@ -5,6 +5,7 @@ use lib 't/lib';
- use Test::More;
- use Test::Fatal;
- use Test::Requires 'Test::LeakTrace';
-+plan tests => 25;
- 
- BEGIN { $^P |= 0x210 } # PERLDBf_SUBLINE
- 
-@@ -138,7 +139,10 @@ use Symbol;
-     ok($foo->has_symbol('@ISA'));
-     is(ref($foo->get_symbol('@ISA')), 'ARRAY');
-     is_deeply($foo->get_symbol('@ISA'), ['Exporter']);
-+    SKIP: {
-+    skip "Test::More >= 0.88 needed for isa_ok() tests on classes", 1 if $Test::More::VERSION < 0.88;
-     isa_ok('Foo', 'Exporter');
-+    }
- }
- 
- {
-@@ -192,5 +196,3 @@ use Symbol;
-         eval { $foo->get_or_add_symbol('&blorg') };
-     } "doesn't leak on errors";
- }
--
--done_testing;
-diff -up Package-Stash-0.22/t/impl-selection/01-choice.t.orig Package-Stash-0.22/t/impl-selection/01-choice.t
---- Package-Stash-0.22/t/impl-selection/01-choice.t.orig	2011-01-06 05:16:45.000000000 +0000
-+++ Package-Stash-0.22/t/impl-selection/01-choice.t	2011-01-06 09:42:32.873715766 +0000
+diff -up Package-Stash-0.23/t/impl-selection/01-choice.t.orig Package-Stash-0.23/t/impl-selection/01-choice.t
+--- Package-Stash-0.23/t/impl-selection/01-choice.t.orig	2011-01-11 17:44:23.000000000 +0000
++++ Package-Stash-0.23/t/impl-selection/01-choice.t	2011-01-12 09:43:15.969858179 +0000
 @@ -1,7 +1,7 @@
  #!/usr/bin/env perl
  use strict;
@@ -220,9 +164,9 @@ diff -up Package-Stash-0.22/t/impl-selection/01-choice.t.orig Package-Stash-0.22
  can_ok('Package::Stash', 'new');
 -
 -done_testing;
-diff -up Package-Stash-0.22/t/impl-selection/02-env.t.orig Package-Stash-0.22/t/impl-selection/02-env.t
---- Package-Stash-0.22/t/impl-selection/02-env.t.orig	2011-01-06 05:16:45.000000000 +0000
-+++ Package-Stash-0.22/t/impl-selection/02-env.t	2011-01-06 09:42:32.874715795 +0000
+diff -up Package-Stash-0.23/t/impl-selection/02-env.t.orig Package-Stash-0.23/t/impl-selection/02-env.t
+--- Package-Stash-0.23/t/impl-selection/02-env.t.orig	2011-01-11 17:44:23.000000000 +0000
++++ Package-Stash-0.23/t/impl-selection/02-env.t	2011-01-12 09:43:15.969858179 +0000
 @@ -1,7 +1,7 @@
  #!/usr/bin/env perl
  use strict;
@@ -238,9 +182,9 @@ diff -up Package-Stash-0.22/t/impl-selection/02-env.t.orig Package-Stash-0.22/t/
  }
 -
 -done_testing;
-diff -up Package-Stash-0.22/t/impl-selection/03-var.t.orig Package-Stash-0.22/t/impl-selection/03-var.t
---- Package-Stash-0.22/t/impl-selection/03-var.t.orig	2011-01-06 05:16:45.000000000 +0000
-+++ Package-Stash-0.22/t/impl-selection/03-var.t	2011-01-06 09:42:32.874715795 +0000
+diff -up Package-Stash-0.23/t/impl-selection/03-var.t.orig Package-Stash-0.23/t/impl-selection/03-var.t
+--- Package-Stash-0.23/t/impl-selection/03-var.t.orig	2011-01-11 17:44:23.000000000 +0000
++++ Package-Stash-0.23/t/impl-selection/03-var.t	2011-01-12 09:43:15.970858208 +0000
 @@ -1,7 +1,7 @@
  #!/usr/bin/env perl
  use strict;
@@ -256,9 +200,9 @@ diff -up Package-Stash-0.22/t/impl-selection/03-var.t.orig Package-Stash-0.22/t/
  }
 -
 -done_testing;
-diff -up Package-Stash-0.22/t/impl-selection/10-basic-pp.t.orig Package-Stash-0.22/t/impl-selection/10-basic-pp.t
---- Package-Stash-0.22/t/impl-selection/10-basic-pp.t.orig	2011-01-06 05:16:45.000000000 +0000
-+++ Package-Stash-0.22/t/impl-selection/10-basic-pp.t	2011-01-06 09:42:32.875715824 +0000
+diff -up Package-Stash-0.23/t/impl-selection/10-basic-pp.t.orig Package-Stash-0.23/t/impl-selection/10-basic-pp.t
+--- Package-Stash-0.23/t/impl-selection/10-basic-pp.t.orig	2011-01-11 17:44:23.000000000 +0000
++++ Package-Stash-0.23/t/impl-selection/10-basic-pp.t	2011-01-12 09:43:15.971858237 +0000
 @@ -1,7 +1,7 @@
  #!/usr/bin/env perl
  use strict;
@@ -274,9 +218,9 @@ diff -up Package-Stash-0.22/t/impl-selection/10-basic-pp.t.orig Package-Stash-0.
  }
 -
 -done_testing;
-diff -up Package-Stash-0.22/t/impl-selection/11-basic-xs.t.orig Package-Stash-0.22/t/impl-selection/11-basic-xs.t
---- Package-Stash-0.22/t/impl-selection/11-basic-xs.t.orig	2011-01-06 05:16:45.000000000 +0000
-+++ Package-Stash-0.22/t/impl-selection/11-basic-xs.t	2011-01-06 09:42:32.875715824 +0000
+diff -up Package-Stash-0.23/t/impl-selection/11-basic-xs.t.orig Package-Stash-0.23/t/impl-selection/11-basic-xs.t
+--- Package-Stash-0.23/t/impl-selection/11-basic-xs.t.orig	2011-01-11 17:44:23.000000000 +0000
++++ Package-Stash-0.23/t/impl-selection/11-basic-xs.t	2011-01-12 09:43:15.972858265 +0000
 @@ -1,7 +1,7 @@
  #!/usr/bin/env perl
  use strict;
@@ -292,3 +236,61 @@ diff -up Package-Stash-0.22/t/impl-selection/11-basic-xs.t.orig Package-Stash-0.
  }
 -
 -done_testing;
+diff -up Package-Stash-0.23/t/release-20-leaks.t.orig Package-Stash-0.23/t/release-20-leaks.t
+--- Package-Stash-0.23/t/release-20-leaks.t.orig	2011-01-11 17:44:23.000000000 +0000
++++ Package-Stash-0.23/t/release-20-leaks.t	2011-01-12 09:44:54.067671046 +0000
+@@ -14,6 +14,8 @@ use Test::More;
+ use Test::Fatal;
+ use Test::LeakTrace;
+ 
++plan tests => 25;
++
+ use Package::Stash;
+ use Symbol;
+ 
+@@ -144,7 +146,10 @@ use Symbol;
+     ok($foo->has_symbol('@ISA'));
+     is(ref($foo->get_symbol('@ISA')), 'ARRAY');
+     is_deeply($foo->get_symbol('@ISA'), ['Exporter']);
++    SKIP: {
++    skip "Test::More >= 0.88 needed for isa_ok() tests on classes", 1 if $Test::More::VERSION < 0.88;
+     isa_ok('Foo', 'Exporter');
++    }
+ }
+ 
+ {
+@@ -198,5 +203,3 @@ use Symbol;
+         eval { $foo->get_or_add_symbol('&blorg') };
+     } "doesn't leak on errors";
+ }
+-
+-done_testing;
+diff -up Package-Stash-0.23/t/release-21-leaks-debug.t.orig Package-Stash-0.23/t/release-21-leaks-debug.t
+--- Package-Stash-0.23/t/release-21-leaks-debug.t.orig	2011-01-11 17:44:23.000000000 +0000
++++ Package-Stash-0.23/t/release-21-leaks-debug.t	2011-01-12 09:44:37.395192951 +0000
+@@ -14,6 +14,8 @@ use Test::More;
+ use Test::Fatal;
+ use Test::LeakTrace;
+ 
++plan tests => 25;
++
+ BEGIN { $^P |= 0x210 } # PERLDBf_SUBLINE
+ 
+ use Package::Stash;
+@@ -146,7 +148,10 @@ use Symbol;
+     ok($foo->has_symbol('@ISA'));
+     is(ref($foo->get_symbol('@ISA')), 'ARRAY');
+     is_deeply($foo->get_symbol('@ISA'), ['Exporter']);
++    SKIP: {
++    skip "Test::More >= 0.88 needed for isa_ok() tests on classes", 1 if $Test::More::VERSION < 0.88;
+     isa_ok('Foo', 'Exporter');
++    }
+ }
+ 
+ {
+@@ -200,5 +205,3 @@ use Symbol;
+         eval { $foo->get_or_add_symbol('&blorg') };
+     } "doesn't leak on errors";
+ }
+-
+-done_testing;
diff --git a/perl-Package-Stash.spec b/perl-Package-Stash.spec
index 3769307..9078c74 100644
--- a/perl-Package-Stash.spec
+++ b/perl-Package-Stash.spec
@@ -5,16 +5,17 @@
 %global old_eumm %(perl -MExtUtils::MakeMaker -e 'printf "%d\\n", $ExtUtils::MakeMaker::VERSION < 6.31 ? 1 : 0;' 2>/dev/null || echo 0)
 
 Name:		perl-Package-Stash
-Version:	0.22
+Version:	0.23
 Release:	1%{?dist}
 Summary:	Routines for manipulating stashes
 Group:		Development/Libraries
 License:	GPL+ or Artistic
 URL:		http://search.cpan.org/dist/Package-Stash/
 Source0:	http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Package-Stash-%{version}.tar.gz
-Patch0:		Package-Stash-0.22-EU::MM-version.patch
-Patch1:		Package-Stash-0.22-old-Test::More.patch
-Patch2:		Package-Stash-0.20-no-Test::Requires.patch
+Patch0:		Package-Stash-0.23-EU::MM-version.patch
+Patch1:		Package-Stash-0.23-old-Test::More.patch
+Patch2:		Package-Stash-0.23-no-Test::Requires.patch
+Patch3:		Package-Stash-0.23-no-Test::LeakTrace.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:	noarch
 BuildRequires:	perl(Dist::CheckConflicts)
@@ -70,6 +71,11 @@ a simple API.
 %patch2 -p1
 %endif
 
+# Skip the memory leak tests if we don't have Test::LeakTrace
+%if "%{?rhel}" == "4" || "%{?rhel}" == "5"
+%patch3 -p1
+%endif
+
 %build
 perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
@@ -96,6 +102,13 @@ rm -rf %{buildroot}
 %{_mandir}/man3/Package::Stash::PP.3pm*
 
 %changelog
+* Wed Jan 12 2011 Paul Howarth <paul at city-fan.org> - 0.23-1
+- Update to 0.23
+  - Lower perl prereq to 5.8.1
+  - Make the leak tests release-only
+- Update patches to apply cleanly
+- Add patch to skip memory leak tests if we don't have Test::LeakTrace
+
 * Thu Jan  6 2011 Paul Howarth <paul at city-fan.org> - 0.22-1
 - Update to 0.22 (bump Package::Stash::XS version requirement since a bug was
   fixed there)
diff --git a/sources b/sources
index 4d65c89..f7658ac 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-8107a40643f492ce7598e0d50a0f6907  Package-Stash-0.22.tar.gz
+334edfc7dc44f9186535782c6d700f9b  Package-Stash-0.23.tar.gz


More information about the perl-devel mailing list