From: osfameron Date: Thu, 24 May 2012 13:34:58 +0000 (+0100) Subject: Patch for Carp version mismatch X-Git-Tag: 1.008007~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2Flocal-lib.git;a=commitdiff_plain;h=cd3eb7416ab4d62d03215848df230c1b6c469050 Patch for Carp version mismatch --- diff --git a/Changes b/Changes index ea35f68..e32c0bc 100644 --- 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 diff --git a/lib/local/lib.pm b/lib/local/lib.pm index ffed3ea..e00b221 100644 --- a/lib/local/lib.pm +++ b/lib/local/lib.pm @@ -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 . Improvements to stacking multiple local::lib dirs and removing them from the environment later on contributed by Andrew Rodland . +Patch for Carp version mismatch contributed by Hakim Cassimally . + =head1 COPYRIGHT Copyright (c) 2007 - 2010 the local::lib L and L as