Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 586986 - equery depends reports "Invalid CPV" for valid package name
Summary: equery depends reports "Invalid CPV" for valid package name
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 346443
  Show dependency tree
 
Reported: 2016-06-24 23:03 UTC by Ulrich Müller
Modified: 2017-02-09 15:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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