On Mon, 21 Jul 2008 11:30:32 +0200, Slaven Rezic wrote: >> As far as I can see this bug does not apply to the Debian package, >> which uses a patch to read the relevant directories from a config >> file. > /usr/lib/perl5 is not scanned and indexed on my system:
Thanks for checking! > $ sudo /usr/bin/perlindex -index |& grep Scanning > Scanning /usr/share/perl/5.8 ... > Scanning /usr/lib/perl/5.8 ... > Scanning /usr/local/share/perl/5.8.8 ... > Scanning /usr/share/perl5 ... > Scanning /usr/bin ... > Scanning /usr/local/lib/perl/5.8.8 ... That's interesting. perlindex should use /etc/perlindex/config, which should by default contain: /usr/lib/perl /usr/lib/perl5 /usr/share/perl /usr/share/perl5 /usr/local/lib/perl /usr/local/lib/perl5 /usr/local/share/perl /usr/local/share/perl5 Let's try: # /usr/bin/perlindex -index | grep Scanning Scanning /usr/share/perl/5.10 ... Scanning /usr/lib/perl/5.10 ... Scanning /usr/share/perl5 ... Scanning /usr/bin ... Hu! # cat /etc/perlindex/config /usr/lib/perl /usr/lib/perl5 /usr/share/perl /usr/share/perl5 /usr/local/lib/perl /usr/local/lib/perl5 /usr/local/share/perl /usr/local/share/perl5 So yes, there's something wrong here ... After some digging around in the code it seems that @config_perllib (the directories from the configfile) never gets added to @perllib (the list of directories to be scanned). Ok, let's change this :) # perl ~gregoa/src/svn-pkg-perl/trunk/perlindex/perlindex -index Using Pod::Text Using IO::Scalar Scanning /usr/share/perl/5.10 ... Scanning /usr/lib/perl/5.10 ... Scanning /usr/share/perl5 ... Scanning /usr/bin ... Scanning /usr/lib/perl ... Scanning /usr/lib/perl5 ... Looks better. I'll upload a new package as soon as possible. Cheers, gregor -- .''`. http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4 : :' : debian gnu/linux user, admin & developer - http://www.debian.org/ `. `' member of https://www.vibe.at/ | how to reply: http://got.to/quote/ `- NP: Supertramp: Ain't Nobody But Me
signature.asc
Description: Digital signature