Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9234 - emerge clean does not expect subdirs in /var/db/pkg/*/*/
Summary: emerge clean does not expect subdirs in /var/db/pkg/*/*/
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-17 03:26 UTC by Olav Kolbu
Modified: 2011-10-30 22:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olav Kolbu 2002-10-17 03:26:33 UTC
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.
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2002-10-17 19:37:08 UTC
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
Comment 2 Olav Kolbu 2002-10-18 02:34:31 UTC
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. :-)
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2002-10-20 04:16:00 UTC
Semi remedied. Don't wanna quick fix this so I added a message instead of the
traceback. portage-2.0.41