Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Mar 2020 12:55:19 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        andreas@naund.org, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: r358062(ncurses) breaks installed ports, howto check?
Message-ID:  <55226290-1A9A-4B68-A056-68458E6CC5D5@yahoo.com>
In-Reply-To: <7A3C5CEF-9E4C-4C38-9A23-04E9200CB740@yahoo.com>
References:  <7A3C5CEF-9E4C-4C38-9A23-04E9200CB740@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On 2020-Feb-27, at 15:11, Mark Millard <marklmi@yahoo.com> wrote:

> Andreas Ott andreas at naund.org wrote on
> Thu Feb 27 20:20:13 UTC 2020 :
>=20
>=20
>>> # find /usr/local/*bin* /usr/local/lib* -type f \
>>> | xargs ldd -f '%p %A\n' 2>&1 | grep "^/lib/libncurses[^ ]*\.so\.8" =
| cut -w -f2 \
>>> | xargs pkg which -q | sort -u | more
>>=20
>> after pkp update && pkg upgrade, this came back empty.
>=20
> The command is designed to report on the usage before the
> libncurses*.so.8 are deleted, rather than after they have
> been deleted: it was intended to help prepare beforehand.
> It sounds like you did an activity that deleted the old
> versions already before running the command.
>=20
> I've not (yet?) thought about detecting and reporting forms
> of libncurses*.so.8 being referenced but not being found.
> I have not progressed to a version of head with
> libncurses*.so.9 files yet.

The following finds "libncurses[^ ]*\.so\.8 =3D> not found " examples
from ldd and reports on the port that got such:

# find /usr/local/*bin* /usr/local/lib* -type f \
| xargs ldd -a 2>&1 | egrep '(^/.*:$|libncurses[^ ]*\.so\.8 =3D> not =
found )' \
| grep -B1 " not found " | grep "^/.*:$" | sed -e's;:$;;' \
| xargs pkg which -q | sort -u | more
dialog4ports-0.1.6
gdb-8.3.1
libedit-3.1.20191211,1
llvm10-10.0.0.r2
python37-3.7.6
readline-8.0.1

(I created a context to run the above sort of command in,
a context with a few examples to find.)

=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55226290-1A9A-4B68-A056-68458E6CC5D5>