Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Apr 2009 18:44:43 +0000
From:      Paul Schmehl <pschmehl_lists@tx.rr.com>
To:        Dmitry Marakasov <amdmi3@amdmi3.ru>, Brian Whalen <brian@brianwhalen.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Can I resume the perl upgrade?
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>

next in thread | previous in thread | raw e-mail | index | archive | help
--On Friday, April 10, 2009 13:05:04 -0500 Dmitry Marakasov <amdmi3@amdmi3.ru> 
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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5DBCF3CBA5DF51CDFE56DB6E>