跳转到主要内容

FreeBSD No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/

No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/libboost_atomic.so.1.71.0
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/libXaw7.so.7
No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/libXaw6.so.6.0.1

so after deleting all links with missing targets, portupgrade is not writing those lines anymore.

But still there remains issue with pkg which creates these links or deletes targets of these links with no cleanup after that. Will track this behaviour further.

Code to delete all corrupted links here:

# change folder
cd /usr/local/lib/compat/pkg
# print dangling links
find . -type l -exec test ! -e {} \; -print
# delete dangling links
find . -type l -exec test ! -e {} \; -delete