I don't think there's a way to do what you're asking, you can use
grep -r CONFIG_CHECK /var/db/pkg/ command.
Another way is create a script like this (
NOT TESTED):
Code: Select all
for i in $(grep -lr CONFIG_CHECK /var/db/pkg/ | cut -d'/' -f5-); do
awk '/CONFIG_/{print}' <(ebuild $(equery w $(dirname ${i})) setup);
ebuild $(equery w $(dirname ${i})) clean
done
The ebuild setup should show you if a kernel config is uset and clean remove sources from /var/tmp/portage .
This script is based on [profile=283094]khayyam[/profile] idea proposed on [post=7786514]this post[/post].
Questions are guaranteed in life; Answers aren't.
"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968