Re: directory from 14.0 in 14.1

From: Dave Cottlehuber <dch_at_skunkwerks.at>
Date: Fri, 02 Aug 2024 06:47:46 UTC
On Thu, 1 Aug 2024, at 22:43, LuMiWa wrote:
> Hi!
>
> I updated FreeBSD 14.0 to 14.1 - RELEASE with freebsd-update upgrade.
> I found in /usr/local directory x86_64-portbld-freebsd14.0 and inside
> are /bin and /lib and in the /lib is /ldscripts
> Why I have it and it is safe to delete, please? Or is some other way to
> solve the "problem"?

stuff in /usr/local/ is generally (always?) from ports.

Thus we can use `pkg which $PATH` to find what they belong to, for files
only.

e.g. on mine:

$ pkg which /usr/local/x86_64-portbld-freebsd15.0/bin/ar
/usr/local/x86_64-portbld-freebsd15.0/bin/ar was installed by package binutils-2.40_5,1

If there's nothing in the directories you're fine to delete them.

I'm reasonably sure that binutils uses an ABI naming scheme, so even
if you have 14.1-RELEASE, the package will still be found in
/usr/local directory/x86_64-portbld-freebsd14.0/ ...

Perhaps somebody else can confirm that.

A+
Dave