1 |
Le dimanche 15 mai 2005 à 17:39 -0400, Michael Cummings a écrit : |
2 |
> Mostly :) |
3 |
> |
4 |
> OK, anyone have any bugs (functional issues) with the current state of g-cpan? |
5 |
|
6 |
Erhm yes, juste found a big one (but should be easy to correct) |
7 |
|
8 |
Context : |
9 |
- running as user (member of portage group) |
10 |
- no ~/.cpan |
11 |
- PORTDIR_OVERLAY=/usr/local/portage (drwxr-xr-x 2 root root) |
12 |
|
13 |
when I run a g-cpan -u, i got : |
14 |
|
15 |
####################################################" |
16 |
cab@hoki ~/gentoo/gentoo-perl/trunk/bin $ ./g-cpan -u |
17 |
* No CPAN Config found, auto-generating a basic one |
18 |
in /home/cab/.cpan/CPAN |
19 |
mkdir /home/cab/.cpan |
20 |
mkdir /home/cab/.cpan/CPAN |
21 |
Use of uninitialized value in -d at ./g-cpan line 692 (#1) |
22 |
(W uninitialized) An undefined value was used as if it were already |
23 |
defined. It was interpreted as a "" or a 0, but maybe it was a |
24 |
mistake. |
25 |
To suppress this warning assign a defined value to your variables. |
26 |
|
27 |
To help you figure out what was undefined, perl tells you what |
28 |
operation |
29 |
you used the undefined value in. Note, however, that perl optimizes |
30 |
your |
31 |
program and the operation displayed in the warning may not |
32 |
necessarily |
33 |
appear literally in your program. For example, "that $foo" is |
34 |
usually optimized into "that " . $foo, and the warning will refer to |
35 |
the concatenation (.) operator, even though there is no . in your |
36 |
program. |
37 |
|
38 |
mkdir /usr/local/portage/perl-gcpan |
39 |
Uncaught exception from user code: |
40 |
mkdir /usr/local/portage/perl-gcpan: Permission non accordée |
41 |
at ./g-cpan line 194 |
42 |
at /usr/lib/perl5/5.8.6/File/Path.pm line 153 |
43 |
File::Path::mkpath('/usr/local/portage/perl-gcpan', 1, 493) |
44 |
called at ./g-cpan line 194 |
45 |
|
46 |
############################## |
47 |
|
48 |
btw, when i run it the second time : |
49 |
|
50 |
############################## |
51 |
cab@hoki ~/gentoo/gentoo-perl/trunk/bin $ ./g-cpan -u |
52 |
mkdir /usr/local/portage/perl-gcpan |
53 |
Uncaught exception from user code: |
54 |
mkdir /usr/local/portage/perl-gcpan: Permission non accordée |
55 |
at ./g-cpan line 194 |
56 |
at /usr/lib/perl5/5.8.6/File/Path.pm line 153 |
57 |
File::Path::mkpath('/usr/local/portage/perl-gcpan', 1, 493) |
58 |
called at ./g-cpan line 194 |
59 |
############################# |
60 |
|
61 |
typical permission problem ;p |
62 |
however there's also this unitialised thing on the first run.. ;) |
63 |
|
64 |
just reporting, can't fix tonight ;p |
65 |
|
66 |
-- |
67 |
cab |
68 |
|
69 |
|
70 |
-- |
71 |
gentoo-perl@g.o mailing list |