Date: Thu, 14 Aug 2025 17:30:13 -0700 From: Mark Millard <marklmi@yahoo.com> To: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org> Cc: John Kennedy <warlock@phouka.net>, FreeBSD Current <freebsd-current@freebsd.org>, FreeBSD-pkgbase@freebsd.org Subject: Re: Note: libutil.so bump from main-n279246-0c381b7f0570 Message-ID: <BE355C2E-D473-4A05-BEC4-CCA7BADA8CE6@yahoo.com> In-Reply-To: <86bjohv5qe.fsf@ltc.des.dev> References: <F4F162E8-8EB7-49F1-AA86-F238B1AB53BD@yahoo.com> <86ms81vbuv.fsf@ltc.des.dev> <D264EC7B-955C-44A0-BB8E-3AC2AFA6809D@yahoo.com> <86bjohv5qe.fsf@ltc.des.dev>
index | next in thread | previous in thread | raw e-mail
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
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BE355C2E-D473-4A05-BEC4-CCA7BADA8CE6>
