g-cpan -u VS cpan>upgrade
Alex Efros <powerman <at> powerman.name>
2011-09-22 20:02:53 GMT
Today I've decided to try to switch from `cpan` to `g-cpan`.
I was pleasantly surprised - g-cpan have installed all ~300 perl modules I
need and just one module required manual .ebuild editing (Crypt-MatrixSSL).
I've successfully configured portage to use my local CPAN overlay, force
installing latests available versions for all modules, and run tests for
all perl modules - i.e. do exactly same what `cpan` do.
But I don't understood how to implement equivalent of `cpan>upgrade`:
1) `g-cpan --cpan_reload` doesn't work at all:
# g-cpan --cpan_reload
* You haven't told g-cpan what to do.
Please consult g-cpan --help or man g-cpan for more information
This can be worked around by running `cpan>reload index`, but it's sad
we can't use only `g-cpan` for all tasks and still need to run `cpan`.
2) `g-cpan -u` works (after `cpan>reload index`), but it have nasty side
effect by adding several modules (I've no idea why exactly these
modules) into world file when it finish (no matter is it updated some
modules or not):
>>> Recording perl-gcpan/CPAN-Reporter in "world" favorites file...
>>> Recording perl-gcpan/Devel-Autoflush in "world" favorites file...
>>> Recording perl-gcpan/Filter-CommaEquals in "world" favorites file...
>>> Recording perl-gcpan/IO-CaptureOutput in "world" favorites file...