I just made fixvirtuals script because Portage had a problem which I fixed on bug 31148 so some virtual entries are broken. I'm not sure if 'emerge portage' should do it automatically.
Created attachment 20776 [details] fixvirutals script
Included.