Peter Humphrey <pe...@prh.myzen.co.uk> wrote: > The following installed packages are not in the database: > > virtual/-MERGING-perl-CPAN-Meta-YAML
portage generates such a directory or file in /var/db/pkg when it is merging the package. When portage exits (even uncleanly), this entry should be removed. If it still exists, it means that portage died in a bad way (strange error, power failure or kill -9 signal). It is safe to remove this file/dir from /var/db/pkg, but I would recommend to re-emerge the corresponding package (perl-CPAN-Meta-YAML in your case): It might be that portage has partially merged some files of the package but not yet all of them, or something similar. You might get collision messages when you try to re-emerge.