Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153248 - After emerge --sync, performing global updates crashes with OSError exception
Summary: After emerge --sync, performing global updates crashes with OSError exception
Status: RESOLVED DUPLICATE of bug 147010
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-29 02:11 UTC by Ludovic CINTRAT
Modified: 2006-10-29 02:18 UTC (History)
0 users

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 Ludovic CINTRAT 2006-10-29 02:11:03 UTC
User-Agent:       Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.2 (like Gecko)
Build Identifier: 

After emerge --sync, performing global updates crashes with OSError exception:
OSError: [Errno 16] Device or resource busy

Reproducible: Always

Steps to Reproduce:
1.emerge --sync
2.
3.

Actual Results:  
Performing Global Updates: /usr/portage/profiles/updates/4Q-2006
(Could take a couple of 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' p='update /etc/portage/package.*'
......
pTraceback (most recent call last):
  File "/usr/bin/emerge", line 4049, in ?
    emerge_main()
  File "/usr/bin/emerge", line 3770, in emerge_main
    portage.global_updates(settings, trees, mtimedb["updates"])
  File "/usr/lib/portage/pym/portage.py", line 6656, in global_updates
    myupd)
  File "/usr/lib/portage/pym/portage_update.py", line 198, in 
update_config_files
    write_atomic(updating_file, "".join(file_contents[x]))
  File "/usr/lib/portage/pym/portage_util.py", line 728, in write_atomic
    f.close()
  File "/usr/lib/portage/pym/portage_util.py", line 696, in close
    os.rename(self.name, self._real_name)
OSError: [Errno 16] Device or resource busy



Can't run "emerge info", the bug reproduces on any emerge option, i don't know 
how to override the "global update"
Comment 1 Zac Medico gentoo-dev 2006-10-29 02:18:26 UTC
Quick and easy work-around:

CONFIG_PROTECT_MASK=/etc/portage emerge --info

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