From: Brian Phillips Date: Wed, 19 May 2010 18:34:28 +0000 (-0500) Subject: reverse the perl/arch paths in PERL5LIB X-Git-Tag: 1.006009~33 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1b2a57eb3f4f0716c3de9380ee889014e51a9b49;p=p5sagit%2Flocal-lib.git reverse the perl/arch paths in PERL5LIB This ensures consistency with how perl handles PERL5LIB where it looks in the architecture-specific directory prior to pure-perl directories. See https://rt.cpan.org/Public/Bug/Display.html?id=57493 for details. --- diff --git a/lib/local/lib.pm b/lib/local/lib.pm index a917cd5..eb89cc3 100644 --- a/lib/local/lib.pm +++ b/lib/local/lib.pm @@ -332,8 +332,8 @@ sub build_environment_vars_for { MODULEBUILDRC => $class->modulebuildrc_path($path), PERL_MM_OPT => "INSTALL_BASE=${path}", PERL5LIB => join($Config{path_sep}, - $class->install_base_perl_path($path), $class->install_base_arch_path($path), + $class->install_base_perl_path($path), (($ENV{PERL5LIB}||()) ? ($interpolate == INTERPOLATE_ENV ? ($ENV{PERL5LIB})