For example: > $ sudo portupgrade -f graphics/qt5-opengl x11-toolkits/qt5-widgets > ... > ---> Preserving /usr/local/lib/qt5/libQt5Widgets.so.5.15 as /usr/local/lib/compat/pkg/libQt5Widgets.so.5.15 > cp: symlink: libQt5Widgets.so.5.15.0: File exists > Copy failed! portupgrade-2.4.16,2
Can you try the latest patch proposed (by me) at Bug 266386? It includes another, newer bug caused by latest /usr/bin/file update on main and stable/13, but was harmless when I tried it before the MFC of offending commit. The second hunk of the patch fixed the issue here for me, but unfortunately lost track from where/whom I've got the fix. The first hunk of the patch is the proposed fix for another issue by Katsuyuki Miyoshi.
Finally I found where I've got the fix for this by grep'ping my maildir. Bug223943 Comment13 was the source, and I've hand-crafted the local patch, which essentially the second hunk now, much later.