Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2018 13:55:09 -0600
From:      Paul Schmehl <pschmehl_lists@tx.rr.com>
To:        freebsd@dreamchaser.org, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Forcing port reinstalls without rebuilding over and over again
Message-ID:  <65A1A57543E82F5253099D1A@Pauls-MacBook-Pro.local>
In-Reply-To: <150a91f0-f27b-9fab-157f-dccdebd33e21@dreamchaser.org>
References:  <47758EF2A172AE3BCA2F6E66@Pauls-MacBook-Pro.local> <150a91f0-f27b-9fab-157f-dccdebd33e21@dreamchaser.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--On December 12, 2018 at 11:49:00 AM -0700 Gary Aitken 
<freebsd@dreamchaser.org> wrote:

> On 12/12/18 1:07 AM, Paul Schmehl wrote:
>> Is there a way, using portmaster, to force the rebuild of all ports
>> without rebuilding the same ports over and over and over again?
>>
>> I've noticed that using portmaster -f forces the rebuild of every
>> dependency. I think I've now rebuild perl and python at least 20 or
>> 30 times. Once should be enough. I guess if you're going to rebuild
>> everything, it would be ok to ignore dependencies for ports, since
>> they're all going to be rebuilt anyway.
>>
>> What's the magic potion for that?
>
> If I understand the question, use the -R option.
> I typically rebuild ports using:
>    portmaster --no-term-title -R categoryA/portA categoryB/portB
>
> I have not tried using -af, but I'm guessing the effect would be what you
> want.
>

The recommendation in the Handbook for updating over major versions using 
freebsd-update is to update all ports and then run freebsd-update install 
one last time.

I tried portmaster -Rafd, but I'm still seeing perl and python being 
rebuilt repeatedly, and with some ports, a long list of dependencies are 
being built. It sure seems the -R option should do the trick, especially 
because the man page specifically states that, but it doesn't seem to be 
working that way.

"-R  used with the -r or -f options to skip ports updated on a previous 
run. When used with -r it will also prevent the rebuild of the parent port 
if it, and all of its dependencies are up to date."

Paul Schmehl, Retired
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
*******************************************
"It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead." Thomas Jefferson
"There are some ideas so wrong that only a very
intelligent person could believe in them." George Orwell




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