portmaster -af fails due to dead port - HELP

Warren Block wblock at wonkity.com
Fri Jul 3 13:36:56 UTC 2015


On Fri, 3 Jul 2015, RW via freebsd-questions wrote:

> On Thu, 02 Jul 2015 23:06:50 -0400
> William F. Dudley Jr. wrote:
>
>> https://www.freebsd.org/releases/9.3R/installation.html
>>
>> And it says "users of systems being upgraded from FreeBSD 8.4-RELEASE
>> or earlier will be prompted by freebsd-update(8) to rebuild all
>> third-party applications (e.g., ports installed from the ports
>> tree)".  So I need to rebuild the ports.
>
>
> You don't need to rebuild them, just replace them with packages built
> against the new  base system using pkg. I expect the freebsd-update
> message was written before pkg was created.
>
> I think at this point it might be simpler to do a pkg delete -a and
> install the packages you want.

That is still the same with building from ports.  Building ports with 
some of the old ones still in place can cause problems.  The fastest and 
easiest way is to get a list of installed packages, delete them all, 
then reinstall from that list.  The portmaster man page shows a 
procedure for this, but it has not (yet) been updated for use with pkg. 
An updated version is here:

https://forums.freebsd.org/threads/rebuilding-all-ports-with-portmaster.51210/


Yes, a PR has been submitted to update the portmaster man page:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191166


More information about the freebsd-questions mailing list