This for portage 2.0.38: emerge clean caused this traceback trying to remove mod_ssl 2.8.8: >>> Unmerging net-www/mod_ssl-2.8.10... <<< obj /usr/share/doc/mod_ssl-2.8.10/html/ssldoc.patch <<< obj /usr/share/doc/mod_ssl-2.8.10/html/ssl_template.title-tutor.gif [...] --- !empty dir /etc/apache/conf --- !empty dir /etc/apache --- !empty dir /etc Traceback (most recent call last): File "/usr/bin/emerge", line 1324, in ? if 1==unmerge(myaction, myfiles): File "/usr/bin/emerge", line 1101, in unmerge retval=portage.unmerge(mysplit[0],mysplit[1],portage.root) File "/usr/lib/python2.2/site-packages/portage.py", line 1373, in unmerge mylink.delete() File "/usr/lib/python2.2/site-packages/portage.py", line 3129, in delete os.unlink(self.dbdir+"/"+x) OSError: [Errno 21] Is a directory: '//var/db/pkg/net-www/mod_ssl-2.8.10/files' strider root # ls /var/db/pkg/net-www/mod_ssl-2.8.10/files digest-mod_ssl-2.8.10 Only /var/db/pkg/*/*-package I've seen so far with a subdir in it, but you might want to do a recursive upwards unlink/rmdir just to be sure.
Do this for me please: emerge gentoolkit qpkg -f /var/db/pkg/net-www/mod_ssl-2.8.10/files After that you can rm -Rf /var/db/pkg/net-www/mod_ssl-2.8.10
Sorry, no can do. I wiped that file 10 seconds after the emerge, when I saw what the emerge failed on. I did look in the files dir though, and it contained the digest file for the package in question. Maybe the package-builder thought he needed it to be able to call 'ebuild /var/db/pkg/.../mod_ssl* config' to autoinsert the module into the Apache-config after installation. And I've rsync'ed since that, so no idea what was in the original 2.8.10.ebuild-file. The Gentoo-developers have a (bad) habit of sneaking out a new version without changing the revision so it might have looked different. Feel free to write it off as a freak accident and close the case. :-)
Semi remedied. Don't wanna quick fix this so I added a message instead of the traceback. portage-2.0.41