Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172 - Can't unmerge sys-apps/baselayout
Summary: Can't unmerge sys-apps/baselayout
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-15 06:40 UTC by Lars S. Jensen
Modified: 2003-02-04 19:42 UTC (History)
2 users (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 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.