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

Bug 38175

Summary: emerge portage-2.0.50_pre16 fails with: IOError: [Errno 21] Is a directory
Product: Portage Development Reporter: mikepolniak <mikpolniak>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: output of find /var/db/pkg -mindepth 3 -type d

Description mikepolniak 2004-01-14 07:47:19 UTC
emerge fails with Errno 21 at the end of emerge at.........

Performing Global Updates: /usr/portage/profiles/updates/3Q-2003
(Could take a couple minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  @='/var/db move'
  s='/var/db SLOT move' S='binary SLOT move'
..................................@Traceback (most recent call last):
  File "/usr/sbin/emerge", line 14, in ?
    import portage
  File "/usr/lib/portage/pym/portage.py", line 6210, in ?
    do_upgrade(mykey)
  File "/usr/lib/portage/pym/portage.py", line 6133, in do_upgrade
    db["/"]["vartree"].dbapi.move_ent(mysplit)
File "/usr/lib/portage/pym/portage.py", line 3769, in move_ent
    fixdbentries(origcp, newcp, pkgdir)
  File "/usr/lib/portage/pym/portage.py", line 3130, in fixdbentries
    mycontent = f.read()
IOError: [Errno 21] Is a directory

Then running emerge <anything> fails with the same error.
So i reverted with ebuild portage-2.0.49-r21.ebuild merge 
and emerge works.





Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2004-01-14 17:45:07 UTC
What's the output of "find /var/db/pkg -mindepth 3 -type d" ?
Comment 2 mikepolniak 2004-01-14 19:21:17 UTC
Created attachment 23837 [details]
output of find /var/db/pkg -mindepth 3 -type d 

22:03 >>find /var/db/pkg -mindepth 3 -type d				  /root

/var/db/pkg/media-tv/xawtv-3.65/files
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2004-01-14 19:49:05 UTC
update xawtv, if /var/db/pkg/media-tv/xawtv-3.65 still exists remove it and all subdirectories of it.
Comment 4 Brian Harring (RETIRED) gentoo-dev 2004-07-16 02:10:21 UTC
Closing, no activity in 5+ months.
Reopen if still an issue.