Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 343225 - >=dev-lang/perl-5.10 breakage: @INC lacks /usr/local/lib/site_perl
Summary: >=dev-lang/perl-5.10 breakage: @INC lacks /usr/local/lib/site_perl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-29 08:59 UTC by Malte Starostik
Modified: 2010-11-03 09:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Malte Starostik 2010-10-29 08:59:12 UTC
After upgrading perl from 5.8.8-r8 to 5.12.2-r2, the default @INC lacks /usr/local/lib/site_perl which was previously configured by perl-5.8.8-reorder-INC.patch.  This came as a surprise and broke quite some scripts here as all our local modules are located in that dir.

Workaround:
echo PERL5LIB="/usr/local/lib/site_perl" >> /etc/env.d/99perl && env-update
However, PERL5LIB may also need to be added to /etc/conf.d/env_whitelist e.g. for mod_perl.  And to crontab(s) etc.

If this is generally considered a regression, it should be fixed.  Otherwise, maybe it should have been mentioned in the "Perl 5.12 upgrade procedure" news item.

Reproducible: Always

Steps to Reproduce:
1. upgrade to >=dev-lang/perl-5.10
2. try to run a perl script that relied on @INC containing /usr/local/lib/site_perl
3. 

Actual Results:  
It won't find the modules

Expected Results:  
That path should not have been removed from @INC w/o notice

Portage 2.2.0_alpha1 (default/linux/x86/10.0/desktop/kde, gcc-4.4.4, glibc-2.11.2-r0, 2.6.35-gentoo-r11-stellaware i686)
=================================================================
System uname: Linux-2.6.35-gentoo-r11-stellaware-i686-Genuine_Intel-R-_CPU_T2500_@_2.00GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 29 Oct 2010 07:15:03 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
Repositories: gentoo crossdev stellaware
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10 AdobeFlash-10.1 dlj-1.1 googleearth PUEL"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -fomit-frame-pointer -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=prescott -fomit-frame-pointer -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs --load-average=3.0"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j3 -l3"
PKGDIR="/usr/portage/packages"                                                                                                                         
PORTAGE_CONFIGROOT="/"                                                                                                                                 
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                                                                
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/crossdev /var/lib/layman/stellaware"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amr avahi berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups curl cxx dbus dga djvu dri dts dv dvd dvdr emboss encode exif ffmpeg firefox flac fontconfig fortran gdbm geoip geolocation gif gimp git gpm hal iconv icu inotify ipv6 java java6 jpeg jpeg2k kde kerberos lame lcms ldap libnotify libsamplerate lm_sensors lzma mad matroska mikmod mmx mng mp3 mp4 mpeg msn mudflap ncurses nls nptl nptlonly nsplugin ntfs ogg openal opencore-amr openexr opengl openmp oscar pam pango pcre pdf perl plasma png ppds pppd python qt3support qt4 quicktime readline samba sasl sdl semantic-desktop session smp sndfile snmp speex spell sqlite sse sse2 ssl startup-notification svg sysfs tcpd themes theora threads tiff truetype unicode usb v4l v4l2 vcd vim-syntax vorbis webkit x264 x86 xattr xcb xcomposite xine xml xmp xorg xosd xulrunner xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Torsten Veller (RETIRED) gentoo-dev 2010-10-29 19:34:45 UTC
"/etc/perl" and "/usr/local/lib/site_perl" will be added again in 5.12.2-r2.

A general rework of INC is scheduled for perl-5.14.


 @INC:
    /etc/perl
    /usr/lib64/perl5/site_perl/5.12.2/x86_64-linux-thread-multi
    /usr/lib64/perl5/site_perl/5.12.2
    /usr/lib64/perl5/vendor_perl/5.12.2/x86_64-linux-thread-multi
    /usr/lib64/perl5/vendor_perl/5.12.2
    /usr/lib64/perl5/5.12.2/x86_64-linux-thread-multi
    /usr/lib64/perl5/5.12.2
    /usr/lib64/perl5/site_perl
    /usr/lib64/perl5/vendor_perl/5.12.1/x86_64-linux-thread-multi
    /usr/lib64/perl5/vendor_perl/5.12.1
    /usr/lib64/perl5/vendor_perl
    /usr/local/lib/site_perl
    .
Comment 2 Torsten Veller (RETIRED) gentoo-dev 2010-10-31 08:00:48 UTC
5.12.2-r2 is in the tree. Thanks.
Comment 3 Torsten Veller (RETIRED) gentoo-dev 2010-11-03 09:02:01 UTC
Stabilization request filed in bug #343795