emerge fails when the options --emptytree and --onlydeps are given at the same time. I have tried with mplayer, vim, komba2, kde and python and it has failed but not with the ebuild portage, so I don't know if it is a bug in those ebuilds or in emerge. I'm using portage 1.9.6-r1. Here is the output for "emerge -po python --emptytree": These are the packages that I would merge, in order. Calculating dependencies |Traceback (most recent call last): File "/usr/bin/emerge", line 1220, in ? if not mydepgraph.create(mytype+" "+portage.root+" "+mykey,None,"--onlydeps" not in myopts): File "/usr/bin/emerge", line 454, in create self.digraph.addnode(mynew,mybigkey) File "/usr/lib/python2.2/site-packages/portage.py", line 199, in addnode self.dict[myparent][0]=self.dict[myparent][0]+1 KeyError: ebuild / dev-lang/python-2.2-r7
Will be fixed in Portage 2.0.2