On 17-Feb-13 22:56, Chris Rees wrote:
On 17 Feb 2013 17:31, "A.J. 'Fonz' van Werven" <f...@skysmurf.nl
<mailto:f...@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....
I did in fact bump into too lengthy an argument list.
An alternative to your suggestion which worked for me was a for/do loop
in bash.
Thanks to both
Bernard Higonnet
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"