I emerged PDL-2.4.0-r1, and after it had installed the new version, and removed the old files, I got: [...] <<< dir /usr/doc/PDL-2.4.0/html/PDL/Fit <<< dir /usr/doc/PDL-2.4.0/html/PDL/Filter <<< dir /usr/doc/PDL-2.4.0/html/PDL/Doc <<< dir /usr/doc/PDL-2.4.0/html/PDL/Core <<< 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 1993, in ? mydepgraph.merge(mydepgraph.altlist()) File "/usr/bin/emerge", line 1264, in merge if not unmerge("clean", [xsplit[0]]): File "/usr/bin/emerge", line 1468, 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 1882, in unmerge mylink.unmerge(trimworld=mytrimworld) File "/usr/lib/python2.2/site-packages/portage.py", line 4245, in unmerge if len(objld)>0: TypeError: len() of unsized object Everything appears fine (the package is recorded as being installed). Looking at the code, we see: [...] while pos<len(mydirs): obj=mydirs[pos] objld=listdir(obj) if len(objld)>0: #we won't remove this directory (yet), continue pos += 1 continue elif (objld != None): [...] I suspect objld is None (the directory is empty, and listdir isn't being passed a non-zero EmptyOnError), so len(None) is invoked, which will blow up... phil
Just experienced this bug with portage-2.0.48-r5. Just an FYI for carpaski.
Bizarre update: Just installed a new package and when clean was invoked as the final step, it cleaned the PDL-2.4.0 stuff as well - and it worked this time. There is clearly a bug somewhere, but maybe not where I first thought :-) phil
re-emerge PDL for now *** This bug has been marked as a duplicate of 25339 ***