Gentoo Archives: gentoo-perl

From: Michael Cummings <mcummings@g.o>
To: gentoo-perl@l.g.o
Subject: Re: [gentoo-perl] [g-cpan] last call for bugs
Date: Mon, 16 May 2005 11:17:01
Message-Id: 200505160717.06144.mcummings@gentoo.org
In Reply to: Re: [gentoo-perl] [g-cpan] last call for bugs by Michael Cummings
OK, the "fix" will be posted soon. I didn't want to add another module to the 
overhead (File::Temp would be sooooooo nice for what I want), but basically I 
added a loop to go through all of the overlays and confirm you can write to 
at least one of them - and the first one you can write to is the one you use 
in the session. And if you can't write to any of them, we exit with an error, 
because there's not much point in being able to use overlays if you can't 
write to a single one.

On Sunday 15 May 2005 06:23 pm, Michael Cummings wrote:
> Glad I asked :) > > I've a few ideas, should have them posted by mid-morning (your time ;) ) > > On Sunday 15 May 2005 18:03, Antoine Raillon wrote: > > Le dimanche 15 mai 2005 à 17:39 -0400, Michael Cummings a écrit : > > > Mostly :) > > > > > > OK, anyone have any bugs (functional issues) with the current state of > > > g-cpan? > > > > Erhm yes, juste found a big one (but should be easy to correct) > > > > Context : > > - running as user (member of portage group) > > - no ~/.cpan > > - PORTDIR_OVERLAY=/usr/local/portage (drwxr-xr-x 2 root root) > > > > when I run a g-cpan -u, i got : > > > > ####################################################" > > cab@hoki ~/gentoo/gentoo-perl/trunk/bin $ ./g-cpan -u > > * No CPAN Config found, auto-generating a basic one > > in /home/cab/.cpan/CPAN > > mkdir /home/cab/.cpan > > mkdir /home/cab/.cpan/CPAN > > Use of uninitialized value in -d at ./g-cpan line 692 (#1) > > (W uninitialized) An undefined value was used as if it were already > > defined. It was interpreted as a "" or a 0, but maybe it was a > > mistake. > > To suppress this warning assign a defined value to your variables. > > > > To help you figure out what was undefined, perl tells you what > > operation > > you used the undefined value in. Note, however, that perl optimizes > > your > > program and the operation displayed in the warning may not > > necessarily > > appear literally in your program. For example, "that $foo" is > > usually optimized into "that " . $foo, and the warning will refer to > > the concatenation (.) operator, even though there is no . in your > > program. > > > > mkdir /usr/local/portage/perl-gcpan > > Uncaught exception from user code: > > mkdir /usr/local/portage/perl-gcpan: Permission non accordée > > at ./g-cpan line 194 > > at /usr/lib/perl5/5.8.6/File/Path.pm line 153 > > File::Path::mkpath('/usr/local/portage/perl-gcpan', 1, 493) > > called at ./g-cpan line 194 > > > > ############################## > > > > btw, when i run it the second time : > > > > ############################## > > cab@hoki ~/gentoo/gentoo-perl/trunk/bin $ ./g-cpan -u > > mkdir /usr/local/portage/perl-gcpan > > Uncaught exception from user code: > > mkdir /usr/local/portage/perl-gcpan: Permission non accordée > > at ./g-cpan line 194 > > at /usr/lib/perl5/5.8.6/File/Path.pm line 153 > > File::Path::mkpath('/usr/local/portage/perl-gcpan', 1, 493) > > called at ./g-cpan line 194 > > ############################# > > > > typical permission problem ;p > > however there's also this unitialised thing on the first run.. ;) > > > > just reporting, can't fix tonight ;p > > > > -- > > cab > > -- > -----o()o--------------------------------------------- > Michael Cummings | #gentoo-dev, #gentoo-perl > Gentoo Perl Dev | on irc.freenode.net > -----o()o---------------------------------------------
-- -----o()o--------------------------------------------- Michael Cummings | #gentoo-dev, #gentoo-perl Gentoo Perl Dev | on irc.freenode.net -----o()o---------------------------------------------

Replies

Subject Author
Réf. : Re: [gentoo-perl] [g-cpan] last call for bugs antoine.raillon@××××.com