From owner-freebsd-questions@FreeBSD.ORG Tue Mar 30 07:27:26 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F33041065672 for ; Tue, 30 Mar 2010 07:27:26 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 67B9A8FC0C for ; Tue, 30 Mar 2010 07:27:26 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id o2U7RL3J014067 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 30 Mar 2010 08:27:22 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <4BB1A7D9.1090005@infracaninophile.co.uk> Date: Tue, 30 Mar 2010 08:27:21 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: Programmer In Training References: <4BAE3E5C.8020905@joseph-a-nagy-jr.us> <1269787599.6000.15.camel@localhost> <4BB15AB5.6070808@joseph-a-nagy-jr.us> In-Reply-To: <4BB15AB5.6070808@joseph-a-nagy-jr.us> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.95.3 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, SPF_FAIL autolearn=no version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Enough Is Enough X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2010 07:27:27 -0000 -----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-----