Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Feb 2019 14:03:22 -0500
From:      TIM KELLERS <trkellers@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: portupgrade confusion
Message-ID:  <73e4fc37-cf0a-ebd7-fd61-3e175a6ac924@gmail.com>
In-Reply-To: <CAAdA2WMH4amzf5FMV9bxKz6pm30KFpDCvqdvVQ0Ds2iF%2Bq9ubQ@mail.gmail.com>
References:  <CAAdA2WMH4amzf5FMV9bxKz6pm30KFpDCvqdvVQ0Ds2iF%2Bq9ubQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2/17/19 4:42 AM, Odhiambo Washington wrote:
> Whenever I upgrade a port on my FreeBSD-11.2, I always end up with  the
> following:
>
> --->  Cleaning out obsolete shared libraries
> No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
> No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
> No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
> No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
> No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
> No such file or directory @ realpath_rec - /usr/local/lib/compat/pkg/db5
> No such file or directory @ realpath_rec -
> /usr/local/lib/compat/pkg/libQt5Network.so.5.12.0
>
> What's the cause of this?
>
> BTW, other than 'portupgrade -a' what can I do to deinstall all ports, wipe
> all libraries related to them and reinstall all the ports afresh??
> I am trying to see if there is a way to not have conflicting libraries.
>
>
I had that problem a few months ago and this little piece of code fixed 
it for me:


# 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


Tim Kellers




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?73e4fc37-cf0a-ebd7-fd61-3e175a6ac924>