Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34595 - portage gives a brutal error if ebuild in overlay has bad name
Summary: portage gives a brutal error if ebuild in overlay has bad name
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-27 22:14 UTC by David Grant
Modified: 2011-10-30 22:17 UTC (History)
0 users

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 David Grant 2003-11-27 22:14:31 UTC
If I name an ebuild gtkwave-2.0.0-pre4.ebuild instead of
gtkwave-2.0.0_pre4.ebuild I get a monstrous error/traceback which is totall
unhelpful.

Reproducible: Always
Steps to Reproduce:
1. Rename gtkwave-2.0.0_pre4.ebuild to gtkwave-2.0.0-pre4.ebuild
2. Run emerge -up world
3. Scratch your head.  And wonder what part of your overlay directory caused the
problem.

Actual Results:  
root@sidicpc22 gtkwave # emerge -up world

These are the packages that I would merge, in order:

Calculating world dependencies |Traceback (most recent call last):
  File "/usr/bin/emerge", line 2103, in ?
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 1034, in xcreate
    if not self.create(myk):
  File "/usr/bin/emerge", line 747, in create
    if not self.select_dep("/",mydep["/"],myparent=mp,myuse=myuse):
  File "/usr/bin/emerge", line 869, in select_dep
    myeb=portage.portdb.xmatch("bestmatch-visible",x)
  File "/usr/lib/python2.2/site-packages/portage.py", line 4050, in xmatch
    myval=best(self.xmatch("match-visible",None,mydep,mykey))
  File "/usr/lib/python2.2/site-packages/portage.py", line 4061, in xmatch
    myval=self.match2(mydep,mykey,self.xmatch("list-visible",None,mydep,mykey))
  File "/usr/lib/python2.2/site-packages/portage.py", line 4047, in xmatch
    myval=self.gvisible(self.visible(self.cp_list(mykey)))
  File "/usr/lib/python2.2/site-packages/portage.py", line 4130, in gvisible
    myaux=db["/"]["porttree"].dbapi.aux_get(mycpv, ["KEYWORDS"])
  File "/usr/lib/python2.2/site-packages/portage.py", line 3748, in aux_get
    myebuild,in_overlay=self.findname2(mycpv)
ValueError: need more than 0 values to unpack


Expected Results:  
The name of the ebuild: gtkwave-2.0.0-pre4.ebuild is incorrect you moron.  Fix it.
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-11-28 04:12:16 UTC
Fixed in cvs.