Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Feb 2013 23:14:46 +0100
From:      Bernard Higonnet <bthcom@higonnet.net>
To:        FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   Re: Is there an easy way to find out which port loads which library?
Message-ID:  <51215656.1050800@higonnet.net>
In-Reply-To: <CADLo83-nsAuUnrHVvkfDC_TC-Q9JL=ggn6%2BpdAYKFe16%2B55B%2Bg@mail.gmail.com>
References:  <51210EAD.3010009@higonnet.net> <20130217172125.GA63086@spectrum.skysmurf.nl> <CADLo83-nsAuUnrHVvkfDC_TC-Q9JL=ggn6%2BpdAYKFe16%2B55B%2Bg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 17-Feb-13 22:56, Chris Rees wrote:
>
> On 17 Feb 2013 17:31, "A.J. 'Fonz' van Werven" <fonz@skysmurf.nl
> <mailto: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....

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51215656.1050800>