Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55980 - portage failing to emerge with "ValueError: unpack list of wrong size"
Summary: portage failing to emerge with "ValueError: unpack list of wrong size"
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-03 10:05 UTC by Paul
Modified: 2004-08-16 07:42 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 Paul 2004-07-03 10:05:04 UTC
during emerge sync, also seen something similar doing an emerge -pv system:
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2251, in ?
    mybestpv=portage.portdb.xmatch("bestmatch-visible","sys-apps/portage")
  File "/usr/lib/portage/pym/portage.py", line 4690, in xmatch
    myval=best(self.xmatch("match-visible",None,mydep,mykey))
  File "/usr/lib/portage/pym/portage.py", line 4701, in xmatch
    myval=match_from_list(mydep,self.xmatch("list-visible",None,mydep,mykey))
  File "/usr/lib/portage/pym/portage.py", line 4687, in xmatch
    myval=self.gvisible(self.visible(self.cp_list(mykey)))
  File "/usr/lib/portage/pym/portage.py", line 4782, in gvisible
    myaux=db["/"]["porttree"].dbapi.aux_get(mycpv, ["KEYWORDS"])
  File "/usr/lib/portage/pym/portage.py", line 4547, in aux_get
    myret=doebuild(myebuild,"depend","/",self.mysettings,dbkey=mydbkey)
  File "/usr/lib/portage/pym/portage.py", line 2074, in doebuild
    mysettings.setcpv(mycpv,use_cache=use_cache)
  File "/usr/lib/portage/pym/portage.py", line 1371, in setcpv
    self.pusekey = best_match_to_list(self.mycpv, self.pusedict.keys())
  File "/usr/lib/portage/pym/portage.py", line 3493, in best_match_to_list
    for x in match_to_list(mypkg,mylist):
  File "/usr/lib/portage/pym/portage.py", line 3480, in match_to_list
    if match_from_list(x,[mypkg]):
  File "/usr/lib/portage/pym/portage.py", line 3533, in match_from_list
    cat,pkg = catsplit(mycpv)
ValueError: unpack list of wrong size
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2004-07-03 17:30:09 UTC
You didn't provide emerge --info, nor did you say precisely how/if you can reproduce it.

Although, looking at the traceback, I would say that in /etc/portage/package.use you have "pkg" instead of "cat/pkg".
Comment 2 Paul 2004-07-03 17:55:22 UTC
ah, stupid, of course
i that is the problem, man portage isn't available on the minimal livecd, so i wasn't sure of the correct format, and i did that a few install attempts ago and have been copying the package.use file across, perpetuating the error
Comment 3 Christian Korff 2004-08-16 07:42:12 UTC
Since I got the same problem I would suggest to make it more userfriendly.
The error message is not really easy to understand.