On Thu, 19 Feb 2015 20:38:18 +0000 (UTC), James wrote: > So for a given eclass, how to I find the list of all ebuilds that use > that eclass I'm interested in? Is my only option a brute force search > of the "inherit" inside every ebuild?
Well, brute force works
grep -Er 'inherit.*systemd' /var/portage
That shows every ebuild, you may want to reduce it to a list of packages
with something like:
for i in $(grep -Erl 'inherit.*systemd' /var/portage)
do
dirname $i
done | sort -u
> What if I only want to look at
> an eclass, like systemd, limited to a specific category of ebuilds, for
> example sys-cluster; what is the best tool/script to search for a
> specific eclass limited to a single category?
grep works again, just search the category directory(s).
--
Neil Bothwick
Why marry a virgin? If she wasn't good enough for the rest of them, then
she isn't good enough for you.
pgplaS4_qLSq9.pgp
Description: OpenPGP digital signature

