Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 163485

Summary: unable to --unmerge vanilla-sources-2.6.14_rc2
Product: Gentoo Linux Reporter: Blu3 <david+gentoo.org>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Blu3 2007-01-23 20:02:06 UTC
I've been unable to unmerge this package since it was installed.  I eventually just deleted the directory so it wasn't taking up disk space but I'd like to get portage fixed up.

Scott ~ # emerge --unmerge =vanilla-sources-2.6.14_rc2

 sys-kernel/vanilla-sources
    selected: 2.6.14_rc2
   protected: none
     omitted: 2.6.20_rc5

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging sys-kernel/vanilla-sources-2.6.14_rc2...
No package files given... Grabbing a set.
--- !found obj /usr/src/linux-2.6.14-rc2/usr/initramfs_data.S
--- !found obj /usr/src/linux-2.6.14-rc2/usr/gen_init_cpio.c
[...]
--- !found obj /usr/src/linux-2.6.14-rc2/scripts/mod/empty.c
--- !found obj /usr/src/linux-2.6.14-rc2/scripts/mod/Makefile
--- !found dir /usr/src/linux-2.6.14-rc2/scripts/mod
Traceback (most recent call last):
  File "/usr/bin/emerge", line 5270, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 5251, in emerge_main
    mtimedb["ldpath"]):
  File "/usr/bin/emerge", line 3416, in unmerge
    vartree=vartree, ldpath_mtimes=ldpath_mtimes)
  File "/usr/lib/portage/pym/portage.py", line 3891, in unmerge
    ldpath_mtimes=ldpath_mtimes)
  File "/usr/lib/portage/pym/portage.py", line 6858, in unmerge
    self._unmerge_pkgfiles(pkgfiles)
  File "/usr/lib/portage/pym/portage.py", line 6927, in _unmerge_pkgfiles
    statobj = os.stat(obj)
TypeError: stat() argument 1 must be (encoded string without NULL bytes), not str
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-01-23 20:31:26 UTC

*** This bug has been marked as a duplicate of bug 142279 ***