Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6081 - `gentoo-stats --new` does not work
Summary: `gentoo-stats --new` does not work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Michael Cummings (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 6097
Blocks:
  Show dependency tree
 
Reported: 2002-08-06 06:05 UTC by Ole Tange
Modified: 2002-08-14 17:02 UTC (History)
1 user (show)

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 Ole Tange 2002-08-06 06:05:44 UTC
 
Comment 1 Ole Tange 2002-08-06 06:08:47 UTC
After emerge gentoo-stats I tried:

gentoo-stats --new

and got:

Can't locate URI.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 (eval 1) line 3.
Compilation failed in require at /usr/lib/perl5/site_perl/5.6.1/HTTP/Request.pm
line 39.
Compilation failed in require at /usr/lib/perl5/site_perl/5.6.1/LWP/UserAgent.pm 
line 108.
BEGIN failed--compilation aborted at 
/usr/lib/perl5/site_perl/5.6.1/LWP/UserAgent.pm line 108.
Compilation failed in require at /usr/sbin/gentoo-stats line 6.
BEGIN failed--compilation aborted at /usr/sbin/gentoo-stats line 6.

For some reason perl is not looking in /usr/lib/site_perl/5.6.1/URI/URL.pm (which 
does exist). Maybe this is actually a perl bug?

Comment 2 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2002-08-06 12:54:21 UTC
shouldn't the dependencies for gentoo-stats be installed into
/usr/lib/perl5/site_perl/5.6.1/ and not /usr/lib/site_perl/5.6.1/ ? in which
case this would not be a perl bug.
Comment 3 Michael Cummings (RETIRED) gentoo-dev 2002-08-06 17:46:52 UTC
There is a mistake in the new eclass I posted yesterday for perl-modules that
installs the modules to /usr/lib/site_perl instead of /usr/lib/perl5/site_perl
on perl 5.6. systems. I am awaiting word back on a perl 5.8 tester before
committing the fix.
Comment 4 Michael Cummings (RETIRED) gentoo-dev 2002-08-07 06:46:29 UTC
Please test again. I'm afraid there was a bug in the perl-modules.eclass I 
updated this week, I recommited a corrected version last night that should be 
propagated out by now (unless, I guess, you happen to connect to the very last 
server in the update chain :) ). emerge rsync (emerge --clean rsync if you 
haven't upgraded portage lately, clean is now assumed) and let me know if this 
is still a problem for you. Thanks for your patience,

Michael
Comment 5 Ole Tange 2002-08-07 11:11:00 UTC
emerge gentoo-stats
gentoo-stats --new
still gives errors.

However, if I emerge URI then the error disappears.

gentoo-stats should depend on a version >= dev-perl/URI-1.18

It seems URI depends on MIME which also is not found in @INC.
Comment 6 Michael Cummings (RETIRED) gentoo-dev 2002-08-07 11:30:39 UTC
One piece at a time:

* The ebuild of URI works again (eclass fix was good for you too)
* URI, once emerged, shows up in @INC again


 - gentoo-stats needs to have URI included as an RDEPEND (no prob)

Have you upgraded perl versions recently? Does the following code snippet show 
MIME-Base64 (which is the only depend in URI))? I understand that URI needs to 
be made a depend in gentoo-stats, what I'm not certain of yet is why MIME-
Base64 wasn't installed with URI (unless emerge search MIME-Base64 is showing 
it as already installed)

#!usr/bin/perl

use ExtUtils::Installed;
my $search = shift;
print "checking on $search\n";
my $instmod = ExtUtils::Installed->new();
foreach my $module ($instmod->modules()) {
my $version = $instmod->version($module) || "???";

print "$module $version\n";
}
  

Thanks,

Mike
Comment 7 Ole Tange 2002-08-07 13:40:07 UTC
The code snippet gives:
checking on
Perl 5.6.1
Pg 1.9.0
URI 1.18
XML::Parser 2.31
libwww-perl ???

I have not upgraded perl recently. If that is a requirement, then I would expect 
gentoo-stats to depend on the more recent version (Dont make _me_ work. Make the 
computer work instead).


Comment 8 Michael Cummings (RETIRED) gentoo-dev 2002-08-07 15:50:30 UTC
Installing a new release of perl should not be necessary. I only asked because
when migrating between whole versions of perl (not gentoo releases), the
experimental ebuild of perl 5.8 does not yet check and re-install modules from
your last version..
Comment 9 Michael Cummings (RETIRED) gentoo-dev 2002-08-14 12:21:52 UTC
libwww-perl is a dependancy of gentoo-stats, and uri is a dependancy of libwww-
perl, so URI should install with libwww. I successfully emerged gentoo-stats 
this morning on a perl 5.6.1 box and a perl 5.8 box and was able to run gentoo -
-new and get an ID back each time. Are you still having problems with this?
Comment 10 Ole Tange 2002-08-14 17:02:46 UTC
it seems to work now