Date: Tue, 30 Mar 2010 08:27:21 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Programmer In Training <pit@joseph-a-nagy-jr.us> Cc: freebsd-questions@freebsd.org Subject: Re: Enough Is Enough Message-ID: <4BB1A7D9.1090005@infracaninophile.co.uk> In-Reply-To: <4BB15AB5.6070808@joseph-a-nagy-jr.us> References: <4BAE3E5C.8020905@joseph-a-nagy-jr.us> <1269787599.6000.15.camel@localhost> <4BB15AB5.6070808@joseph-a-nagy-jr.us>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 30/03/2010 02:58:13, Programmer In Training wrote:
>> find /usr/local/bin /usr/local/lib -name -type f | \
> Is the 'f' a typo? I had to remove it because find kept on erroring on it.
There is a typo, but it's to do with the -name predicate. -name needs
an argument -- but as the quoted script seems to be trying to scan for
the libraries linked to be everything in ${PREFIX}/bin and
${PREFIX}/lib you don't need to filter by name at all. Just use:
find /usr/local/bin /usr/local/lib -type f | \
'-type f' says 'only regular files, not directories or sym-links'
Note that using grep(1) to work out what a binary links to is
exceedingly bizarre. ldd(1) is the correct tool for that job.
In any case, there are better solutions to this problem: try using the
sysutils/libchk port.
Cheers,
Matthew
- --
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkuxp9kACgkQ8Mjk52CukIzmqgCfVX1vLd0TW/AZ01SLEVtKUvPP
nEwAnjFHrOj+CdtF09CqC6/VAaoP2ERP
=Tlgk
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BB1A7D9.1090005>
