Re: Note: libutil.so bump from main-n279246-0c381b7f0570
Date: Fri, 15 Aug 2025 00:30:13 UTC
On Aug 14, 2025, at 16:33, Dag-Erling Smørgrav <des@FreeBSD.org> wrote:
> Mark Millard <marklmi@yahoo.com> writes:
>> On the amd64 system I've long had: [...] I still ended up without the
>> 3 libraries in each context:
>
> Check `pkg info -b compat-libraries` and `ldconfig -r | grep util.so.9`.
> The first should show that the compat-libraries package provides the
> library, the second should show that the linker finds it.
>
> (although to be fair it appears `pkg upgrade` does not take the fact
> that it intends to keep copies of the removed libraries into account
> when deciding to remove a package because libraries it needs are no
> longer available, so this feature still needs work, but it's there)
My original check technique looking for relevant copies used:
# find / -name libutil.so.9 -print
# find / -name libcrypto.so.9 -print
# find / -name libssl.so.9 -print
The only found examples were in my non-updated chroot/jail
directory trees.
As for your example commands:
amd64:
# pkg info -b compat-libraries
pkg: No package(s) matching compat-libraries
# ldconfig -r | grep util.so.9
#
aarch64:
# pkg info -b compat-libraries
compat-libraries-20250811223518:
librustc_driver-3b46dba39a49a3ae.so
librustc_driver-8ef71439f16254ac.so
libxml2.so.2
# ldconfig -r | grep util.so.9
#
So: Also no such instance of any of the 3 old
libraries in question being found.
(I'll note, this is after having gotten things to
be using the new .so files already for the updated
contexts.)
>> If it had left in place the 3 older files, there is still the question
>> of the standard way of later cleaning out the old versions: no
>> delete-old-libs
>
> `pkg delete compat-libraries` (pkg should refuse to delete it if some of
> its libraries are still needed)
Okay.
# man pkg-info | grep -i compat
compatibility.
compatibility.
# man pkg-delete | grep -i compat
#
The 2 pkg commands involved do not seem to document how
they are to be used with "compat-libraries" for such
things.
# grep compat /usr/local/etc/pkg.conf*
#
So: No sample command alias either.
( unknown-repository use could be another undocumented context )
===
Mark Millard
marklmi at yahoo.com