From owner-freebsd-ports@FreeBSD.ORG Tue Feb 19 19:00:44 2013 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2871AC04 for ; Tue, 19 Feb 2013 19:00:44 +0000 (UTC) (envelope-from feld@feld.me) Received: from feld.me (unknown [IPv6:2607:f4e0:100:300::2]) by mx1.freebsd.org (Postfix) with ESMTP id F3022F47 for ; Tue, 19 Feb 2013 19:00:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=feld.me; s=blargle; h=In-Reply-To:Message-Id:From:Mime-Version:Date:References:Subject:Cc:To:Content-Type; bh=gHeQZUTjVN57FN3Pvm23RrsXUHXqH/USWpiqd+aN0CM=; b=a4YEmh4H6PfaGixYIWX8825LEzdctvUeL5EBEvrRYan48x5Pb2ZWKxUgrXkdj/KqI/Sxqr3radY8j/Zpt9cps07v+dYKfTdYboaRf/+udEY12f9Q5p9pdRwvStknemD+; Received: from localhost ([127.0.0.1] helo=mwi1.coffeenet.org) by feld.me with esmtp (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1U7sQa-000GCC-4V; Tue, 19 Feb 2013 13:00:32 -0600 Received: from feld@feld.me by mwi1.coffeenet.org (Archiveopteryx 3.1.4) with esmtpsa id 1361300425-59152-51256/5/1; Tue, 19 Feb 2013 19:00:25 +0000 Content-Type: text/plain; format=flowed; delsp=yes To: "A.J. 'Fonz' van Werven" , Chris Rees Subject: Re: Is there an easy way to find out which port loads which library? References: <51210EAD.3010009@higonnet.net> <20130217172125.GA63086@spectrum.skysmurf.nl> Date: Tue, 19 Feb 2013 13:00:25 -0600 Mime-Version: 1.0 From: Mark Felder Message-Id: In-Reply-To: User-Agent: Opera Mail/12.13 (FreeBSD) Cc: Bernard Higonnet , FreeBSD Mailing List X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2013 19:00:44 -0000 On Sun, 17 Feb 2013 15:56:26 -0600, Chris Rees wrote: > Most shells won't allow an argument list that long. > % find /usr/ports -depth 3 -name pkg-plist -exec grep libfoobar.so \{} \; > has been shown to be faster than hacking around arg list limits with > echo | > xargs. The following may prove to be even faster as it fills the shell argument list as full as possible for each execution of grep. % find /usr/ports -depth 3 -name pkg-plist -exec grep libfoobar.so \{} + (notice the + at the end) It's something I picked up from here: http://www.etalabs.net/sh_tricks.html