From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1R6pUI-0004Im-2d for garchives@archives.gentoo.org; Thu, 22 Sep 2011 20:03:14 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E861C21C0D5; Thu, 22 Sep 2011 20:02:55 +0000 (UTC) Received: from powerman.name (powerman.name [85.90.198.1]) by pigeon.gentoo.org (Postfix) with ESMTP id F066721C0D5 for ; Thu, 22 Sep 2011 20:02:54 +0000 (UTC) Received: (qmail 25765 invoked by uid 1000); 22 Sep 2011 20:02:53 -0000 Date: Thu, 22 Sep 2011 23:02:53 +0300 From: Alex Efros To: gentoo-perl@lists.gentoo.org Subject: [gentoo-perl] g-cpan -u VS cpan>upgrade Message-ID: <20110922200253.GC2017@home.power> Mail-Followup-To: gentoo-perl@lists.gentoo.org Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-perl@lists.gentoo.org Reply-To: gentoo-perl@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: http://powerman.name/ User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: X-Archives-Hash: 6efb83e57bedcda6cb2720e0467e7812 Hi! 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... >>> Recording perl-gcpan/Log-Report in "world" favorites file... >>> Recording perl-gcpan/Test-Reporter in "world" favorites file... 3) `g-cpan -u` will update only modules in perl-gcpan/* category, but how to automatically update modules in perl-core/* and dev-perl/*? And perl core modules which are in dev-lang/perl but don't have own perl-core/* package yet? Or only way is first run `cpan>r` to find possible updates and then manually add ebuilds for these modules into /usr/local/portage? 4) How to protect against occasional overloading of newest perl core module installed with new dev-lang/perl version by older versions of same module installed by package perl-core/* or dev-perl/* or even perl-gcpan/* (last two cases possible for modules which wasn't included in previous dev-lang/perl versions)? P.S. I'm using latest stable app-portage/g-cpan-0.16.2. -- WBR, Alex.