From owner-freebsd-ports@FreeBSD.ORG Wed Jul 18 02:37:43 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8AE0216A403 for ; Wed, 18 Jul 2007 02:37:43 +0000 (UTC) (envelope-from beckman@angryox.com) Received: from thermonuclear.org (thermonuclear.org [70.164.19.80]) by mx1.freebsd.org (Postfix) with ESMTP id 2CC6413C48E for ; Wed, 18 Jul 2007 02:37:43 +0000 (UTC) (envelope-from beckman@angryox.com) Received: from thermonuclear.org (beckman@localhost [127.0.0.1]) by thermonuclear.org (8.13.6/8.13.4) with ESMTP id l6I2bgvK030314 for ; Tue, 17 Jul 2007 22:37:42 -0400 (EDT) (envelope-from beckman@angryox.com) Received: from localhost (beckman@localhost) by thermonuclear.org (8.13.6/8.13.4/Submit) with ESMTP id l6I2bftR030311 for ; Tue, 17 Jul 2007 22:37:41 -0400 (EDT) (envelope-from beckman@angryox.com) X-Authentication-Warning: thermonuclear.org: beckman owned process doing -bs Date: Tue, 17 Jul 2007 22:37:41 -0400 (EDT) From: Peter Beckman X-X-Sender: beckman@thermonuclear.org To: freebsd-ports@freebsd.org In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=us-ascii Subject: Re: bsdpan- to p5- migration X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2007 02:37:43 -0000 On Tue, 17 Jul 2007, Peter Beckman wrote: > I didn't really understand BSDPAN, and so I installed all of my Perl > modules via CPAN. Now I have all of these bsdpan-* packages installed, and > portupgrade can't manage them. I'd love to migrate them all to p5-* > packages so that portupgrade can manage them, but I haven't seen a mail > post [1] about a good way (or a proper way) to do this with minimal effort. I found a non-production server to test this on, and here are my results. It seems that removing bsdpan-* from pkgtools.conf HOLD section and doing a portupgrade "bsdpan-*" will find the corresponding p5-* origin automagically and upgrade your ports accordingly, WITH CAVEATS. During the process, bsdpan-PathTools was being upgraded by port upgrade. The bsdpan version was deinstalled, and the installation of the p5 version failed (I don't know why, screen scrolled off buffer). Every single upgrade after that died: "Can't locate Cwd.pm in @INC" I knew what the problem was immediately. I went to search.cpan.org, downloaded the latest PathTools, ran perl Makefile.PL (the Build.PL wouldn't work), then re-ran portupgrade "bsdpan-*". I wouldn't recommend this process for a production server that is critical and requires Perl libraries to function, unless they are loaded in memory and if it crashed during upgrades you could be down for a few minutes while you manually fix the problems caused by this little upgrade. But at least now all my packages are upgraded and not duplicated! Beckman --------------------------------------------------------------------------- Peter Beckman Internet Guy beckman@angryox.com http://www.angryox.com/ --------------------------------------------------------------------------- ** PLEASE NOTE PurpleCow.com IS NOW AngryOx.com DO NOT USE PurpleCow.com ** ** PurpleCow.com is now owned by City Auto Credit LLC as of May 23, 2007 ** ---------------------------------------------------------------------------