Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9923 - perl-5.6.1-r7; MakeMaker-6.05-r1 update into /usr/lib/site_perl
Summary: perl-5.6.1-r7; MakeMaker-6.05-r1 update into /usr/lib/site_perl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Michael Cummings (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-29 15:37 UTC by Ferris McCormick (RETIRED)
Modified: 2002-11-26 09:14 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 Ferris McCormick (RETIRED) gentoo-dev 2002-10-29 15:37:49 UTC
Recent updates to perl & Makemaker-6.05-r1 (Oct 24 date) suggested by 'emerge
rsync;emerge -p -u system' result in a perl package which puts new packages into
the '/usr/lib/site_perl' tree.  However, when 'use'-ing packages, perl doesn't
ever look there.  It looks in /usr/lib/perl5/... like always.

Thus, something like

  emerge dev-perl/MD5
  perl
   use Digest::MD5;

gets MD5.pm not found because it's under /usr/lib/site_perl, not
/usr/lib/perl5/site_perl

Problem first noticed with ExtUtils-MakeMaker-6.05-r1.  I don't care where
anything goes, just so long as perl can find it after it puts it someplace.
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-29 15:46:43 UTC
remerge MD5 please.
Comment 2 Mike Roest 2002-10-31 14:32:37 UTC
I am getting the same issue on my Gentoo 1.2 system.  Since installing MakeMaker
6.05-r1 perl packages are not able to be found.  
eg: Time::HiRes
# perl
use Time::HiRes;
Can't locate Time/HiRes.pm in @INC (@INC contains:
/usr/lib/perl5/5.6.1/i686-linux /usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i686-linux /usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl .) at - line 1.
BEGIN failed--compilation aborted at - line 1.

# perl
use lib '/usr/lib/site_perl/5.6.1';
use Time::HiRes;

If I add /usr/lib/site_perl/5.6.1 to the lib it works fine.  I have remerged
Time::HiRes 2 or 3 times.  Also completely removed it and remerged it from clean
with the same results.

Can you please repair this as it is breaking things.
Comment 3 Mike Roest 2002-10-31 16:10:30 UTC
Well I remerge perl 5.6.1-r7 and MakeMaker then Time-HiRes and it's working now.
Comment 4 pee 2002-10-31 18:34:50 UTC
I ran into this problem also here is a test case usind dbd-mysql

# remove perl stuffs
emerge unmerge $(qpkg -I -nc | grep perl)

# this fails with @INC DBI.pm not found error, due to /usr/lib/site_perl 
# being used , actually you get several failure for @INC doing the
# dependency installs
emerge sys-devel/perl
emerge DBD-mysql

# clean it again

# this will now succeed, installs in /usr/lib/perl5/site_perl
emerge sys-devel/perl
emerge ExtUtils-MakeMaker
emerge DBD-mysql

*  sys-devel/perl
      Latest version available: 5.6.1-r7
      Latest version installed: 5.6.1-r7
      Homepage: http://www.perl.org
      Description: Larry Wall's Practical Extraction and Reporting Language

*  dev-perl/ExtUtils-MakeMaker
      Latest version available: 6.05-r1
      Latest version installed: 6.05-r1
      Homepage:
http://cpan.valueclick.com/modules/by-module/ExtUtils/ExtUtils-MakeMaker-6.05.readme
      Description: MakeMaker Perl Module
Comment 5 Ferris McCormick (RETIRED) gentoo-dev 2002-11-02 09:14:25 UTC
emerge rsync; emerge -p -u world  just wanted to update lots of perl modules,
so I tried one:  The comment on the dev-perl/perl-tk package was that the update
was to put it into the correct locations.

It put it into /usr/lib/site_perl

This is not the correct location on my system.

I do not know what change here is intended, so I have not started playing with
MM_Unix.pm, but /usr/lib/site_perl does not seem to me to be a good place to
put things.

ln -s perl5/site_perl site_perl does not seem very elegant...
Comment 6 Michael Cummings (RETIRED) gentoo-dev 2002-11-05 09:58:57 UTC
emerge rsync
emerge ExtUtils-MakeMaker

This should now be taken care of in two places for you, the default profiles 
now dep on the MakeMaker update, and the perl modules eclass again DEPEND's on 
it. With this patch/update, your perl modules should be installing correctly 
again. For a test, emerge MD5-Digest (it's very small and quick, so good for 
testing) - you should NOT find it in /usr/lib/site_perl, but in the proper 
place under /usr/lib/perl5/

Michael
Comment 7 Ferris McCormick (RETIRED) gentoo-dev 2002-11-07 15:54:00 UTC
That got it.  Thanks,
Ferris