From owner-freebsd-questions@FreeBSD.ORG Sun Nov 2 11:19:43 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DB7B16A4CE for ; Sun, 2 Nov 2003 11:19:43 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D85843F93 for ; Sun, 2 Nov 2003 11:19:40 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) hA2JJZdl087588 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 2 Nov 2003 19:19:35 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id hA2JJZqH087587; Sun, 2 Nov 2003 19:19:35 GMT (envelope-from matthew) Date: Sun, 2 Nov 2003 19:19:35 +0000 From: Matthew Seaman To: "H.Wade Minter" Message-ID: <20031102191935.GB77980@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , "H.Wade Minter" , FreeBSD Questions References: <8DA587DE-0D55-11D8-B2CC-000A95A8D520@lunenburg.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/NkBOFFp2J2Af1nK" Content-Disposition: inline In-Reply-To: <8DA587DE-0D55-11D8-B2CC-000A95A8D520@lunenburg.org> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on happy-idiot-talk.infracaninophile.co.uk cc: FreeBSD Questions Subject: Re: Updating ports perl from 5.8.0 to 5.8.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Nov 2003 19:19:43 -0000 --/NkBOFFp2J2Af1nK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 02, 2003 at 11:56:50AM -0500, H.Wade Minter wrote: > I'd like to update my ports-installed version of Perl from 5.8.0 to=20 > 5.8.1. On my test system, I did a "portupgrade -rR perl", but it=20 > didn't update any of my installed p5- modules, which caused breakage=20 > until I reinstalled all of them by hand. >=20 > Is there a better way to update Perl? Would a "portupgrade -rRf" have=20 > helped? Yes -- I had to do this on two machines (well, one machine and a jail but the difference is immaterial). After running into the problems you describe, and realising that most of the perl modules I had installed didn't show up as dependencies of perl, and after doing the first one I reckoned the best move was to use brute force. Generate a list of all of the ports that install files under /usr/local/lib/perl5/5.8.0 and /usr/local/lib/perl5/site_perl/5.8.0: find /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0 \ -type f -print | xargs -L 1 pkg_which | sort -u > /tmp/perl-files It's quite likely that you'll see several several files claimed by both perl and a perl module port. In this case, you don't need to install the separate port as perl-5.8.1 comes with the latest versions of everything. The procedure then is to pkg_delete all of the ports that install anything under those two directories, except for perl itself. Then portupgrade -f perl and re-run use.perl port Then re-install all of the perl-based ports. After that, you'll need to run pkgdb -Fvu to fix up any dependencies. Some ports expect to have various perl modules installed as dependencies, which are now available as part of the standard set of perl modules, so edit the dependencies appropriately. Cheers, Matthew=09 --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --/NkBOFFp2J2Af1nK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/pVjHdtESqEQa7a0RAuHQAKCMtxwzwsl1eD4I+sOEWCNF42XdVgCfZtKS RCGD4quxwqDcemB7oKWzGF4= =rHEx -----END PGP SIGNATURE----- --/NkBOFFp2J2Af1nK--