Enough Is Enough

Matthew Seaman m.seaman at infracaninophile.co.uk
Tue Mar 30 07:27:27 UTC 2010


-----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-----


More information about the freebsd-questions mailing list