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 1R7lu1-0001PZ-PI for garchives@archives.gentoo.org; Sun, 25 Sep 2011 10:25:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 513BB21C036; Sun, 25 Sep 2011 10:25:28 +0000 (UTC) Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com [209.85.215.181]) by pigeon.gentoo.org (Postfix) with ESMTP id D267921C036 for ; Sun, 25 Sep 2011 10:25:27 +0000 (UTC) Received: by eyg5 with SMTP id 5so3465174eyg.40 for ; Sun, 25 Sep 2011 03:25:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=fBTwewtJ3LelJP+ksFzqx8eVDvBBLT7BDOHOi3Fqfkw=; b=e91shOIoeDQD9ufqhecop91P3ZLvIQZHAxSba4ZGCknw/vJpoXaj4vEHGmmxicTW4/ sBuav1eHZASHUMMPpWXk+tdx0AOSkXwl0l5CB7Skq+VUodn5wO95KpvhnDCsIszzujR9 JTgNZ1Bbc+k9NkkLtesCsphntD+GbbdHoRtdA= 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 Received: by 10.213.33.133 with SMTP id h5mr1714264ebd.128.1316946325752; Sun, 25 Sep 2011 03:25:25 -0700 (PDT) Received: by 10.213.20.139 with HTTP; Sun, 25 Sep 2011 03:25:25 -0700 (PDT) In-Reply-To: <20110922200253.GC2017@home.power> References: <20110922200253.GC2017@home.power> Date: Sun, 25 Sep 2011 13:25:25 +0300 Message-ID: Subject: Re: [gentoo-perl] g-cpan -u VS cpan>upgrade From: Sergiy Borodych To: gentoo-perl@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: f8d2582e6519bc7645a3b0cc8d1c52a6 Hello Alex, 2011/9/22 Alex Efros : > 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) =C2=A0`g-cpan --cpan_reload` doesn't work at all: > > =C2=A0 =C2=A0 =C2=A0 =C2=A0# g-cpan --cpan_reload > =C2=A0 =C2=A0 =C2=A0 =C2=A0 * You haven't told g-cpan what to do. > > =C2=A0 =C2=A0 =C2=A0 =C2=A0Please consult g-cpan --help or man g-cpan for= more information > > =C2=A0 =C2=A0This can be worked around by running `cpan>reload index`, bu= t it's sad > =C2=A0 =C2=A0we can't use only `g-cpan` for all tasks and still need to r= un `cpan`. This mode works for me fine. What versions of perl, cpan you use ? > > 2) =C2=A0`g-cpan -u` works (after `cpan>reload index`), but it have nasty= side > =C2=A0 =C2=A0effect by adding several modules (I've no idea why exactly t= hese > =C2=A0 =C2=A0modules) into world file when it finish (no matter is it upd= ated some > =C2=A0 =C2=A0modules or not): > > =C2=A0 =C2=A0 =C2=A0 =C2=A0>>> Recording perl-gcpan/CPAN-Reporter in "wor= ld" favorites file... > =C2=A0 =C2=A0 =C2=A0 =C2=A0>>> Recording perl-gcpan/Devel-Autoflush in "w= orld" favorites file... > =C2=A0 =C2=A0 =C2=A0 =C2=A0>>> Recording perl-gcpan/Filter-CommaEquals in= "world" favorites file... > =C2=A0 =C2=A0 =C2=A0 =C2=A0>>> Recording perl-gcpan/IO-CaptureOutput in "= world" favorites file... > =C2=A0 =C2=A0 =C2=A0 =C2=A0>>> Recording perl-gcpan/Log-Report in "world"= favorites file... > =C2=A0 =C2=A0 =C2=A0 =C2=A0>>> Recording perl-gcpan/Test-Reporter in "wor= ld" favorites file... > > 3) =C2=A0`g-cpan -u` will update only modules in perl-gcpan/* category, b= ut how > =C2=A0 =C2=A0to automatically update modules in perl-core/* and dev-perl/= *? > =C2=A0 =C2=A0And perl core modules which are in dev-lang/perl but don't h= ave own > =C2=A0 =C2=A0perl-core/* package yet? > =C2=A0 =C2=A0Or only way is first run `cpan>r` to find possible updates a= nd then > =C2=A0 =C2=A0manually add ebuilds for these modules into /usr/local/porta= ge? emerge do it for you. AFAIK g-cpan designed for update only custom cpan mod= ules. > > 4) =C2=A0How to protect against occasional overloading of newest perl cor= e > =C2=A0 =C2=A0module installed with new dev-lang/perl version by older ver= sions of > =C2=A0 =C2=A0same module installed by package perl-core/* or dev-perl/* o= r even > =C2=A0 =C2=A0perl-gcpan/* (last two cases possible for modules which wasn= 't > =C2=A0 =C2=A0included in previous dev-lang/perl versions)? > > P.S. I'm using latest stable app-portage/g-cpan-0.16.2. > Ah, see here you version. Try 0.16.4 - in this version fixed some your bugs= . Like ... 24 Jan 2011; Robin H. Johnson +g-cpan-0.16.4.ebuild: Bump. Bug #352561: Allow --cpan_reload without other arguments. ... Unfortunately, recently, g-cpan not actively develops :( --=20 Sergiy Borodych http://bor.org.ua