+++ This bug was initially created as a clone of Bug #25410 +++ I was upgrading world and portage wanted to install PDL-2.4.0-r1. Then he wanted to unmerge the original version (2.4.0), and here's the tail of the output: ... <<< dir /usr/doc/PDL-2.4.0/html/PDL <<< dir /usr/doc/PDL-2.4.0/html <<< dir /usr/doc/PDL-2.4.0 Traceback (most recent call last): File "/usr/bin/emerge", line 1951, in ? mydepgraph.merge(mydepgraph.altlist()) File "/usr/bin/emerge", line 1248, in merge if not unmerge("clean", [xsplit[0]]): File "/usr/bin/emerge", line 1452, in unmerge retval=portage.unmerge(mysplit[0],mysplit[1],portage.root,unmerge_action not in ["clean","prune"]) File "/usr/lib/python2.2/site-packages/portage.py", line 1879, in unmerge mylink.unmerge(trimworld=mytrimworld) File "/usr/lib/python2.2/site-packages/portage.py", line 4238, in unmerge if len(objld)>0: TypeError: len() of unsized object I could NOT reproduce this.