$ equery depends -a virtual/emacs * These packages depend on virtual/emacs: !!! Invalid CPV: 'app-emacs/diff-mode--20120823 $ echo $? 1 However, diff-mode- is a perfectly valid package name: "3.1.2 Package Names A package name may contain any of the characters [A-Za-z0-9+_-]. It must not begin with a hyphen or a plus sign, and must not end in a hyphen followed by anything matching the version syntax described in section 3.2." https://projects.gentoo.org/pms/6/pms.html#x1-200003.1.2
I have pushed the fix for this to the gentoolkit repository. It can be tested with gentoolkit-9999 https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=8b40fded4ca1ecc94ed1391acb3a7e16218d4779
(In reply to Paul Varner from comment #1) That fixes the problem for me.
Can this bug be closed? It is fixed in gentoolkit-0.3.3.
Released in gentoolkit-0.3.3