Port upgrading leaves system unusable
When a port is upgraded it is:
- Deinstalled
- Dependencies are then upgraded
- Dependencies are deleted as their own dependencies are upgraded
- As the chain is walked back up then the various ports are installed
This leaves the system missing many packages for a long period of time.
It would be much better if this upgraded dependencies first and then deinstalled/installed the upgraded port.
The -t option seems to work as I expect. This also avoids the issue of portmaster losing control of building ports due to make all default changing to make stage (which installs run-depends) [https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=189398]
Ports r191960 changed this behavior
7. Split tracking of build and run depends to before and after the
port build respectively.
I've just fallen victim to this bug. binutils got removed before updating indexinfo, which left the system in an unusable state.
- Does
-tfix this then? - How do we know when to apply it?