1 |
Hi! |
2 |
|
3 |
Today I've decided to try to switch from `cpan` to `g-cpan`. |
4 |
I was pleasantly surprised - g-cpan have installed all ~300 perl modules I |
5 |
need and just one module required manual .ebuild editing (Crypt-MatrixSSL). |
6 |
I've successfully configured portage to use my local CPAN overlay, force |
7 |
installing latests available versions for all modules, and run tests for |
8 |
all perl modules - i.e. do exactly same what `cpan` do. |
9 |
|
10 |
But I don't understood how to implement equivalent of `cpan>upgrade`: |
11 |
|
12 |
1) `g-cpan --cpan_reload` doesn't work at all: |
13 |
|
14 |
# g-cpan --cpan_reload |
15 |
* You haven't told g-cpan what to do. |
16 |
|
17 |
Please consult g-cpan --help or man g-cpan for more information |
18 |
|
19 |
This can be worked around by running `cpan>reload index`, but it's sad |
20 |
we can't use only `g-cpan` for all tasks and still need to run `cpan`. |
21 |
|
22 |
2) `g-cpan -u` works (after `cpan>reload index`), but it have nasty side |
23 |
effect by adding several modules (I've no idea why exactly these |
24 |
modules) into world file when it finish (no matter is it updated some |
25 |
modules or not): |
26 |
|
27 |
>>> Recording perl-gcpan/CPAN-Reporter in "world" favorites file... |
28 |
>>> Recording perl-gcpan/Devel-Autoflush in "world" favorites file... |
29 |
>>> Recording perl-gcpan/Filter-CommaEquals in "world" favorites file... |
30 |
>>> Recording perl-gcpan/IO-CaptureOutput in "world" favorites file... |
31 |
>>> Recording perl-gcpan/Log-Report in "world" favorites file... |
32 |
>>> Recording perl-gcpan/Test-Reporter in "world" favorites file... |
33 |
|
34 |
3) `g-cpan -u` will update only modules in perl-gcpan/* category, but how |
35 |
to automatically update modules in perl-core/* and dev-perl/*? |
36 |
And perl core modules which are in dev-lang/perl but don't have own |
37 |
perl-core/* package yet? |
38 |
Or only way is first run `cpan>r` to find possible updates and then |
39 |
manually add ebuilds for these modules into /usr/local/portage? |
40 |
|
41 |
4) How to protect against occasional overloading of newest perl core |
42 |
module installed with new dev-lang/perl version by older versions of |
43 |
same module installed by package perl-core/* or dev-perl/* or even |
44 |
perl-gcpan/* (last two cases possible for modules which wasn't |
45 |
included in previous dev-lang/perl versions)? |
46 |
|
47 |
P.S. I'm using latest stable app-portage/g-cpan-0.16.2. |
48 |
|
49 |
-- |
50 |
WBR, Alex. |