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

Bug 172

Summary: Can't unmerge sys-apps/baselayout
Product: Gentoo Linux Reporter: Lars S. Jensen <larssj>
Component: [OLD] Core systemAssignee: Daniel Robbins (RETIRED) <drobbins>
Status: RESOLVED FIXED    
Severity: normal CC: azarah, develop
Priority: High    
Version: 1.0 RC6 r14   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Lars S. Jensen 2002-01-15 06:40:50 UTC
I have install sys-apps/baselayout-1.6.9 and can't unmerge 
sys-apps/baselayout-1.6.7-r1. 
sys-apps/portage-1.8.5 
-------------------------------------------
--- !found dev /dev/xda1
--- !found dev /dev/xda
--- !found dev /dev/vcsa9
Traceback (most recent call last):
  File "/usr/sbin/ebuild", line 33, in ?
    a=portage.doebuild(pargs[0],x,getroot(),debug=debug)
  File "/usr/lib/python2.0/site-packages/portage.py", line 704, in doebuild
    return unmerge(settings["CATEGORY"],settings["PF"],myroot)
  File "/usr/lib/python2.0/site-packages/portage.py", line 805, in unmerge
    mylink.unmerge()
  File "/usr/lib/python2.0/site-packages/portage.py", line 2049, in unmerge
    if not isdev(obj):
  File "/usr/lib/python2.0/site-packages/portage.py", line 738, in isdev
    mymode=os.stat(x)[ST_MODE]
OSError: [Errno 2] No such file or directory: '/dev/vcsa8'
>>> sys-apps/baselayout-1.6.7-r1 unmerged
Comment 1 Nils Ohlmeier 2002-01-18 14:57:08 UTC
If /dev/vcsa8 is a removable drive please insert a disk to work around this bug.
For me this solves the problem temp, also it should be fixed in the software.

Hope it helps
  Nils Ohlmeier
Comment 2 Lars S. Jensen 2002-01-18 17:22:14 UTC
The problem is that portage.py in 'isdev' can't check/unlink invalid symbolic link.

/dev/vcsa8 is symbolic link to /dev/vcc/a8 that is invalid.

rm /dev/vcsa8
And then:
rm /dev/vcs8
rm  /dev/midi00
rm  /dev/sg0 
...
--- !empty dir /boot
>>> sys-apps/baselayout-1.6.7-r1 unmerged
And the unmerge was done :-).
Comment 3 Daniel Robbins (RETIRED) gentoo-dev 2002-01-18 22:42:29 UTC
fixed on cvs.  This bug was silly since we don't unmerge device nodes anyway.