Deinstall reinstall sequence in ports after update

From: Christoph Kukulies <kuku_at_kukulies.org>
Date: Wed, 09 Feb 2022 08:25:31 UTC
I did an update from 12.1 to 12.3 and I’m in the course of rebuilding /usr/posts/emulators/virtualbox-ose.

Although I also did a ports update it occurs in a lot of places that a dependency
turns out to be newer than the installed one. E.g. it happened the first time with gmake.

It is suggested to do a

make deinstall
make reinstall

The make install of virtualbox-ose now gets interrupted in all places where the installed tool (e.g. qt5-qmake)
is older than the updated one in ports.

I then have to go into that directory (qt5-qmake for exmple) and do the make deinstall,make reinstall manually.

Since I#ll have to anticipate  probably a large number of such situations, I’m thinking of doing
this deinstall/reinstall sequence automatically  beforehand.

Is there an automatism provided for this situation?

—
Christoph Kukulies