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 1ObfYs-0008Kk-8K for garchives@archives.gentoo.org; Wed, 21 Jul 2010 20:06:38 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 537CDE0BEE for ; Wed, 21 Jul 2010 20:06:37 +0000 (UTC) Received: from mail-ew0-f53.google.com (mail-ew0-f53.google.com [209.85.215.53]) by pigeon.gentoo.org (Postfix) with ESMTP id AEFB5E0B6F for ; Wed, 21 Jul 2010 19:37:34 +0000 (UTC) Received: by ewy19 with SMTP id 19so3173338ewy.40 for ; Wed, 21 Jul 2010 12:37:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=otStf6rhu55bpyI3AynjlDuUpbEPD4pXZhnRLJtv60k=; b=Se0TbI6hCcyIGEX86154yM9A68ejljCYgA+ebZxYZQJJAqcCkAemJEpsbCQWQAP7Bs /WovXF2KjfCk08MisE7ecOeSBZ/dDMmEKLUXDfQyY78tXEjQk631h1LaFF2y+hI+ydpr YskB2d16PwQMbbfk7iW+HazAtShOmEj36RvXY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=Pl92rFCWaQiiWHZQYWDfpIkOsedkFNijSk4N4ga2Y5ZhJCA/blnATUEmcbbPc7yLVf HdD/P26qh42nq9AXoC4JLgNQc7hEWRpatYjZRJfZsnHc6d/AoRLztXYzilDUzlbpBqqM Nz+WbsPqfLO/RxX97I9nLhr97S3i3S9TROyzg= Received: by 10.213.32.74 with SMTP id b10mr3548961ebd.26.1279741053909; Wed, 21 Jul 2010 12:37:33 -0700 (PDT) Received: from nazgul.localnet (196-215-57-66.dynamic.isadsl.co.za [196.215.57.66]) by mx.google.com with ESMTPS id a48sm53942266eei.1.2010.07.21.12.37.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 21 Jul 2010 12:37:32 -0700 (PDT) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: I don't understand Perl. What do I do after an update? Date: Wed, 21 Jul 2010 21:34:21 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.34-ck-r1; KDE/4.4.5; x86_64; ; ) References: <20100721173448.GA7386@math.princeton.edu> In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201007212134.21252.alan.mckinnon@gmail.com> X-Archives-Salt: 0adcc468-693e-4d03-b419-864aa84bdf15 X-Archives-Hash: b12c08470a6ddc0cc5da16df159ce825 On Wednesday 21 July 2010 20:33:42 Nikos Chantziaras wrote: > On 07/21/2010 08:34 PM, Willie Wong wrote: > > On Wed, Jul 21, 2010 at 08:04:54PM +0300, Nikos Chantziaras wrote: > >> Portage recently updated Perl from 5.10.1 to 5.12.1 (and later -r1). > >> However, a crapload of files still remain in > >> /usr/lib/perl5/{site_perl,vendor_perl}/5.10.1. I found out the hard way > >> after trying to emerge openoffice (and everyone knows how painful that > >> one is): > >> > >> What is the user required to do after updating Perl? elogv doesn't tell > >> me anything about upgrading. > > > > There's this neat little script called perl-cleaner > > > > http://www.gentoo.org/proj/en/perl/perl-cleaner.xml > > Thanks. How do I call the script? I don't have any idea what perl > modules or ph files are (or why I need them). What do I need to do? Short version: You run perl-cleaner --modules and it just does it. Long version: perl comes out the box as an interpreter and some base functionality. The community provides a brazillion useful modules for all sort of things. Like eg Date. Need to do some Date manipulation? No need to write the disgusting code yourself to work with Dates, someone else already did it. Just install a module. The trouble is that modules are often written in perl itself and closely tied to the version of perl used. If you upgrade perl, you must also rebuild all the modules tied to it, they don't just migrate. This is a painful process. It's enough to drive a sysadmin to drink or (god forbid), to Windows. Portage can't help as the ebuild doesn't know what you have installed. So you must run a script to go and dig out all this crap for you. All I can say is, every day I get down on my knees and offer thanks that perl is not slotted. -- alan dot mckinnon at gmail dot com