--- perl.c.orig 2008-11-21 20:17:33.000000000 +0200 +++ perl.c 2009-09-16 08:11:05.000000000 +0300 @@ -4882,9 +4882,9 @@ incpush(APPLLIB_EXP, TRUE, TRUE, TRUE, TRUE); #endif -#ifdef ARCHLIB_EXP - incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE, TRUE); -#endif + /* for configuration where /usr is mounted ro (CPAN::Config, Net::Config) */ + incpush("/etc/perl", FALSE, FALSE, TRUE, TRUE); + #ifdef MACOS_TRADITIONAL { Stat_t tmpstatbuf; @@ -4911,52 +4911,57 @@ #endif #if defined(WIN32) incpush(PRIVLIB_EXP, TRUE, FALSE, TRUE, TRUE); -#else - incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE, TRUE); #endif -#ifdef SITEARCH_EXP - /* sitearch is always relative to sitelib on Windows for +#ifdef PERL_VENDORARCH_EXP + /* vendorarch is always relative to vendorlib on Windows for * DLL-based path intuition to work correctly */ # if !defined(WIN32) - incpush(SITEARCH_EXP, FALSE, FALSE, TRUE, TRUE); + incpush(PERL_VENDORARCH_EXP, FALSE, FALSE, TRUE, TRUE); # endif #endif -#ifdef SITELIB_EXP +#ifdef PERL_VENDORLIB_EXP # if defined(WIN32) - /* this picks up sitearch as well */ - incpush(SITELIB_EXP, TRUE, FALSE, TRUE, TRUE); + /* this picks up vendorarch as well */ + incpush(PERL_VENDORLIB_EXP, TRUE, FALSE, TRUE, TRUE); # else - incpush(SITELIB_EXP, FALSE, FALSE, TRUE, TRUE); + incpush(PERL_VENDORLIB_EXP, FALSE, FALSE, TRUE, TRUE); # endif #endif -#if defined(SITELIB_STEM) && defined(PERL_INC_VERSION_LIST) - /* Search for version-specific dirs below here */ - incpush(SITELIB_STEM, FALSE, TRUE, TRUE, TRUE); +#ifdef PERL_VENDORLIB_STEM /* Search for version-specific dirs below here */ + incpush(PERL_VENDORLIB_STEM, FALSE, TRUE, TRUE, TRUE); #endif -#ifdef PERL_VENDORARCH_EXP - /* vendorarch is always relative to vendorlib on Windows for +#ifdef SITEARCH_EXP + /* sitesearch is always relative to sitelib on Windows for * DLL-based path intuition to work correctly */ # if !defined(WIN32) - incpush(PERL_VENDORARCH_EXP, FALSE, FALSE, TRUE, TRUE); + incpush(SITEARCH_EXP, FALSE, FALSE, TRUE, TRUE); # endif #endif -#ifdef PERL_VENDORLIB_EXP +#ifdef SITELIB_EXP # if defined(WIN32) - incpush(PERL_VENDORLIB_EXP, TRUE, FALSE, TRUE, TRUE); /* this picks up vendorarch as well */ + incpush(SITELIB_EXP, TRUE, FALSE, TRUE, TRUE); /* this picks up sitearch as well */ # else - incpush(PERL_VENDORLIB_EXP, FALSE, FALSE, TRUE, TRUE); + incpush(SITELIB_EXP, FALSE, FALSE, TRUE, TRUE); # endif #endif -#ifdef PERL_VENDORLIB_STEM /* Search for version-specific dirs below here */ - incpush(PERL_VENDORLIB_STEM, FALSE, TRUE, TRUE, TRUE); +#ifdef SITELIB_STEM /* Search for version-specific dirs below here */ + incpush(SITELIB_STEM, FALSE, TRUE, TRUE, TRUE); #endif + incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE, TRUE); + incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE, TRUE); + + /* Non-versioned site directory for local modules and for + compatability with the previous packages' site dirs */ + + incpush("/usr/local/lib/site_perl", TRUE, FALSE, TRUE, TRUE); + #ifdef PERL_OTHERLIBDIRS incpush(PERL_OTHERLIBDIRS, TRUE, TRUE, TRUE, TRUE); #endif