Date: Sun, 17 Feb 2013 21:56:26 +0000 From: Chris Rees <utisoft@gmail.com> To: "A.J. 'Fonz' van Werven" <fonz@skysmurf.nl> Cc: Bernard Higonnet <bthcom@higonnet.net>, FreeBSD Mailing List <freebsd-ports@freebsd.org> Subject: Re: Is there an easy way to find out which port loads which library? Message-ID: <CADLo83-nsAuUnrHVvkfDC_TC-Q9JL=ggn6%2BpdAYKFe16%2B55B%2Bg@mail.gmail.com> In-Reply-To: <20130217172125.GA63086@spectrum.skysmurf.nl> References: <51210EAD.3010009@higonnet.net> <20130217172125.GA63086@spectrum.skysmurf.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On 17 Feb 2013 17:31, "A.J. 'Fonz' van Werven" <fonz@skysmurf.nl> wrote: > > Bernard Higonnet wrote: > > > Is there a simple, direct, complete, and unequivocal way to find out > > which port(s) install which libraries? > > Something like this perhaps? > # grep libfoobar.so /usr/ports/*/*/pkg-plist 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. Unfortunately neither method works with automatically generated plists.... Chris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo83-nsAuUnrHVvkfDC_TC-Q9JL=ggn6%2BpdAYKFe16%2B55B%2Bg>