From owner-freebsd-ports@FreeBSD.ORG Fri Apr 10 18:44:44 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D37A11065674 for ; Fri, 10 Apr 2009 18:44:44 +0000 (UTC) (envelope-from prvs=34490a816=pschmehl_lists@tx.rr.com) Received: from ip-relay-001.utdallas.edu (ip-relay-001.utdallas.edu [129.110.20.111]) by mx1.freebsd.org (Postfix) with ESMTP id A118C8FC0A for ; Fri, 10 Apr 2009 18:44:44 +0000 (UTC) (envelope-from prvs=34490a816=pschmehl_lists@tx.rr.com) X-Group: RELAYLIST X-IronPort-AV: E=Sophos;i="4.40,168,1238994000"; d="scan'208";a="10107975" Received: from smtp3.utdallas.edu ([129.110.20.110]) by ip-relay-001.utdallas.edu with ESMTP; 10 Apr 2009 13:44:44 -0500 Received: from utd65257.utdallas.edu (utd65257.utdallas.edu [129.110.3.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTPSA id 4BD1B8150; Fri, 10 Apr 2009 13:44:44 -0500 (CDT) Date: Fri, 10 Apr 2009 18:44:43 +0000 From: Paul Schmehl To: Dmitry Marakasov , Brian Whalen Message-ID: <5DBCF3CBA5DF51CDFE56DB6E@utd65257.utdallas.edu> In-Reply-To: <20090410180504.GE81025@hades.panopticon> References: <486EACE56EE9A4FF9B93958A@utd65257.utdallas.edu> <49DF7A02.80802@brianwhalen.net> <20090410180504.GE81025@hades.panopticon> X-Mailer: Mulberry/4.0.6 (Linux/x86) X-Munged-Reply-To: Figure it out MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: freebsd-ports@freebsd.org Subject: Re: Can I resume the perl upgrade? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Paul Schmehl List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Apr 2009 18:44:45 -0000 --On Friday, April 10, 2009 13:05:04 -0500 Dmitry Marakasov wrote: > > * Brian Whalen (brian@brianwhalen.net) wrote: > >> > According to /usr/ports/UPDATING, if you want to upgrade to perl5.10, >> > you do the following: >> > >> > Portupgrade users: >> > 0) Fix pkgdb.db (for safety): >> > pkgdb -Ff >> > >> > 1) Reinstall perl with new 5.10: >> > portupgrade -o lang/perl5.10 -f perl-5.8.\* >> > >> > 2) Reinstall everything that depends on Perl: >> > portupgrade -fr perl >> > >> > My machine got rebooted right in the middle of step 3. Is there a way >> > to resume where I left off? Or do I just start over? >> > >> What about perl-after-upgrade instead of step 3? I havent done this >> perl upgrade yet, but normally this is enough. > > I did this: > > find /var/db/pkg -name "+CONTENTS" | xargs grep --files-with-match > "lib/perl5.*5.8.9" | awk -F/ '{print $5}' > > then this: > > for f in `find /usr/local/bin /usr/local/lib /usr/local/libexec > /usr/local/sbin -type f`; do ldd $f 2>/dev/null | grep -q libperl && > pkg_which $f; done > > and portupgraded only named ports. No problems so far. > This worked great for me. Thanks for the tip. -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. ******************************************* Check the headers before clicking on Reply.