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

Bug 375293

Summary: app-portage/gentoolkit-0.3.0.4: equery changes wine gives "Invalid CPV error"
Product: Portage Development Reporter: Paul Varner (RETIRED) <fuzzyray>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://forums.gentoo.org/viewtopic-t-841357.html
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 346443    

Description Paul Varner (RETIRED) gentoo-dev 2011-07-15 15:06:13 UTC
# equery --debug changes wine
Traceback (most recent call last):
  File "/usr/bin/equery", line 38, in <module>
    equery.main()
  File "/usr/lib64/python2.6/site-packages/gentoolkit/equery/__init__.py", line 352, in main
    loaded_module.main(module_args)
  File "/usr/lib64/python2.6/site-packages/gentoolkit/equery/changes.py", line 155, in main
    changelog = ChangeLog(changelog_path)
  File "/usr/lib64/python2.6/site-packages/gentoolkit/helpers.py", line 78, in __init__
    self.indexed_entries = self._index_changelog()
  File "/usr/lib64/python2.6/site-packages/gentoolkit/helpers.py", line 184, in _index_changelog
    result.append((VersionMatch(entry_ver, op='='), entry))
  File "/usr/lib64/python2.6/site-packages/gentoolkit/versionmatch.py", line 52, in __init__
    self.version = cpv.version
  File "/usr/lib64/python2.6/site-packages/gentoolkit/cpv.py", line 89, in version
    self._set_cpv_chunks()
  File "/usr/lib64/python2.6/site-packages/gentoolkit/cpv.py", line 113, in _set_cpv_chunks
    chunks = split_cpv(self.cpv, validate=self.validate)
  File "/usr/lib64/python2.6/site-packages/gentoolkit/cpv.py", line 234, in split_cpv
    raise errors.GentoolkitInvalidCPV(cpv)
gentoolkit.errors.GentoolkitInvalidCPV: Invalid CPV: 'wine-*'


Error is caused by this entry in the ChangeLog:
*wine-* (11 Apr 2003) 


11 Apr 2002; Tilman Klar <phoenix@gentoo.org> wine-2002*, 
files/digest-wine-2002*, files/wine-2002* : 
Removed all wine versions prior to Jan 2003 from the tree. 

11 Apr 2002; Tilman Klar <phoenix@gentoo.org> wine-20030115.ebuild, 
wine-20030219.ebuild, wine-20030318.ebuild, wine-20030408.ebuild : 
Updated DEPEND. There were major problems with the new version of 
binutils, that's why i made wine depend on <=binutils-2.13.90.0.18-r1. 
For further information check bug #19106.

Since the ChangeLog entries are not always generated by a machine, the changes module needs to ignore InvalidCPV errors and just continue with what it can parse.
Comment 2 Paul Varner (RETIRED) gentoo-dev 2011-08-24 17:54:43 UTC
This will also be included in gentoolkit-0.3.0.4-r2
Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2011-12-02 06:33:19 UTC
released in >=app-portage/gentoolkit-0.3.0-r2