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
1 OK, the "fix" will be posted soon. I didn't want to add another module to the
2 overhead (File::Temp would be sooooooo nice for what I want), but basically I
3 added a loop to go through all of the overlays and confirm you can write to
4 at least one of them - and the first one you can write to is the one you use
5 in the session. And if you can't write to any of them, we exit with an error,
6 because there's not much point in being able to use overlays if you can't
7 write to a single one.
8
9 On Sunday 15 May 2005 06:23 pm, Michael Cummings wrote:
10 > Glad I asked :)
11 >
12 > I've a few ideas, should have them posted by mid-morning (your time ;) )
13 >
14 > On Sunday 15 May 2005 18:03, Antoine Raillon wrote:
15 > > Le dimanche 15 mai 2005 à 17:39 -0400, Michael Cummings a écrit :
16 > > > Mostly :)
17 > > >
18 > > > OK, anyone have any bugs (functional issues) with the current state of
19 > > > g-cpan?
20 > >
21 > > Erhm yes, juste found a big one (but should be easy to correct)
22 > >
23 > > Context :
24 > > - running as user (member of portage group)
25 > > - no ~/.cpan
26 > > - PORTDIR_OVERLAY=/usr/local/portage (drwxr-xr-x 2 root root)
27 > >
28 > > when I run a g-cpan -u, i got :
29 > >
30 > > ####################################################"
31 > > cab@hoki ~/gentoo/gentoo-perl/trunk/bin $ ./g-cpan -u
32 > > * No CPAN Config found, auto-generating a basic one
33 > > in /home/cab/.cpan/CPAN
34 > > mkdir /home/cab/.cpan
35 > > mkdir /home/cab/.cpan/CPAN
36 > > Use of uninitialized value in -d at ./g-cpan line 692 (#1)
37 > > (W uninitialized) An undefined value was used as if it were already
38 > > defined. It was interpreted as a "" or a 0, but maybe it was a
39 > > mistake.
40 > > To suppress this warning assign a defined value to your variables.
41 > >
42 > > To help you figure out what was undefined, perl tells you what
43 > > operation
44 > > you used the undefined value in. Note, however, that perl optimizes
45 > > your
46 > > program and the operation displayed in the warning may not
47 > > necessarily
48 > > appear literally in your program. For example, "that $foo" is
49 > > usually optimized into "that " . $foo, and the warning will refer to
50 > > the concatenation (.) operator, even though there is no . in your
51 > > program.
52 > >
53 > > mkdir /usr/local/portage/perl-gcpan
54 > > Uncaught exception from user code:
55 > > mkdir /usr/local/portage/perl-gcpan: Permission non accordée
56 > > at ./g-cpan line 194
57 > > at /usr/lib/perl5/5.8.6/File/Path.pm line 153
58 > > File::Path::mkpath('/usr/local/portage/perl-gcpan', 1, 493)
59 > > called at ./g-cpan line 194
60 > >
61 > > ##############################
62 > >
63 > > btw, when i run it the second time :
64 > >
65 > > ##############################
66 > > cab@hoki ~/gentoo/gentoo-perl/trunk/bin $ ./g-cpan -u
67 > > mkdir /usr/local/portage/perl-gcpan
68 > > Uncaught exception from user code:
69 > > mkdir /usr/local/portage/perl-gcpan: Permission non accordée
70 > > at ./g-cpan line 194
71 > > at /usr/lib/perl5/5.8.6/File/Path.pm line 153
72 > > File::Path::mkpath('/usr/local/portage/perl-gcpan', 1, 493)
73 > > called at ./g-cpan line 194
74 > > #############################
75 > >
76 > > typical permission problem ;p
77 > > however there's also this unitialised thing on the first run.. ;)
78 > >
79 > > just reporting, can't fix tonight ;p
80 > >
81 > > --
82 > > cab
83 >
84 > --
85 > -----o()o---------------------------------------------
86 > Michael Cummings | #gentoo-dev, #gentoo-perl
87 > Gentoo Perl Dev | on irc.freenode.net
88 > -----o()o---------------------------------------------
89
90 --
91
92 -----o()o---------------------------------------------
93 Michael Cummings | #gentoo-dev, #gentoo-perl
94 Gentoo Perl Dev | on irc.freenode.net
95 -----o()o---------------------------------------------

Replies

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