Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 586986

Summary: equery depends reports "Invalid CPV" for valid package name
Product: Portage Development Reporter: Ulrich Müller <ulm>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: normal CC: esigra
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 346443    

Description Ulrich Müller gentoo-dev 2016-06-24 23:03:45 UTC
$ 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
Comment 1 Paul Varner (RETIRED) gentoo-dev 2016-08-16 16:06:52 UTC
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
Comment 2 Ulrich Müller gentoo-dev 2016-08-16 20:08:16 UTC
(In reply to Paul Varner from comment #1)

That fixes the problem for me.
Comment 3 Ulrich Müller gentoo-dev 2017-02-08 20:45:41 UTC
Can this bug be closed? It is fixed in gentoolkit-0.3.3.
Comment 4 Paul Varner (RETIRED) gentoo-dev 2017-02-09 15:22:01 UTC
Released in gentoolkit-0.3.3