Patch for Carp version mismatch
osfameron [Thu, 24 May 2012 13:34:58 +0000 (14:34 +0100)]
Changes
lib/local/lib.pm

diff --git a/Changes b/Changes
index ea35f68..e32c0bc 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,4 +1,8 @@
 Revision history for local::lib
+1.NEXT
+
+        - Avoid issue where PERL5LIB Carp is older than local::lib one
+
 1.008004 2011-02-24
 
         - Fix stackable tests on win32 by canonicalizing the path ahead of time
index ffed3ea..e00b221 100644 (file)
@@ -8,7 +8,6 @@ use 5.008001; # probably works with earlier versions but I'm not supporting them
 
 use File::Spec ();
 use File::Path ();
-use Carp ();
 use Config;
 
 our $VERSION = '1.008004'; # 1.8.4
@@ -175,6 +174,7 @@ sub resolve_home_path {
     }
   };
   unless (defined $homedir) {
+    require Carp;
     Carp::croak(
       "Couldn't resolve homedir for "
       .(defined $user ? $user : 'current user')
@@ -1015,6 +1015,8 @@ G. de Oliveira <garu@cpan.org>.
 Improvements to stacking multiple local::lib dirs and removing them from the
 environment later on contributed by Andrew Rodland <arodland@cpan.org>.
 
+Patch for Carp version mismatch contributed by Hakim Cassimally <osfameron@cpan.org>.
+
 =head1 COPYRIGHT
 
 Copyright (c) 2007 - 2010 the local::lib L</AUTHOR> and L</CONTRIBUTORS> as