svn commit: r358166 - head

Mark Millard marklmi at yahoo.com
Sat Feb 22 02:50:38 UTC 2020



On 2020-Feb-21, at 15:59, Kevin Oberman <rkoberman at gmail.com> wrote:

> On Fri, Feb 21, 2020 at 8:38 AM Mark Millard via freebsd-ports <freebsd-ports at freebsd.org> wrote:
> Based on the example from https://www.freebsd.org/cgi/man.cgi?ldd
> there are commands such as the following that might help:
> 
> . . .
> 
> This can be a lot of files to go through (e.g., lib*) and so
> can take a fair amount of time.
> 
> ===
> Mark Millard
> marklmi at yahoo.com
> ( dsl-only.net went
> away in early 2018-Mar)
>  
> You can feed that list into 'pkg which', awk that to remove all of the commands and then all but the last space delimited string of the remainder, and uniq. I also sorted.
> bison-3.5.2,1
> gdbm-1.18.1_1
> gettext-tools-0.20.1_1
> gnuplot-5.2.8
> llvm80-8.0.1_3
> lua52-5.2.4
> sqlite3-3.30.1,1
> xterm-353_1

Cool.

In the style of my prior examples (including the change that
found libedit and such), analogous would be:

# find /usr/local/*bin* /usr/local/lib* -type f \
| xargs -n1 file -F ' ' | grep 'ELF' | cut -f1 -d' ' \
| xargs ldd -f '%A %p\n' 2>&1 | grep ncurses\.so\.8 | cut -f1 -d' ' \
| xargs pkg which | cut -f6 -d' ' | sort -u | more
bison-3.5.2,1
gdbm-1.18.1_1
gettext-tools-0.20.1_1
gnuplot-5.2.8
libedit-3.1.20191211,1
libtextstyle-0.20.1
llvm10-10.0.0.r2
llvm80-8.0.1_3
lua52-5.2.4
mesa-dri-18.3.2_9
ruby-2.6.5,1
sqlite3-3.30.1,1
xterm-353_1

Looks like I'll be reasonably ready when I get to the point
of wanting to deal with this.


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



More information about the freebsd-ports mailing list