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
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".
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
Since I got the same problem I would suggest to make it more userfriendly. The error message is not really easy to understand.