reverse the perl/arch paths in PERL5LIB
Brian Phillips [Wed, 19 May 2010 18:34:28 +0000 (13:34 -0500)]
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.

lib/local/lib.pm

index a917cd5..eb89cc3 100644 (file)
@@ -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})