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

Bug 187518

Summary: sys-apps/portage-2.1.3.1 crashes on x86-fbsd
Product: Gentoo Linux Reporter: Joe Peterson (RETIRED) <lavajoe>
Component: [OLD] Core systemAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: bsd+disabled
Priority: High    
Version: unspecified   
Hardware: x86   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 181949, 189285    
Attachments: handle EISDIR thrown from mkdir when the directory already exists

Description Joe Peterson (RETIRED) gentoo-dev 2007-08-02 17:12:04 UTC
Running any portage utilities on g/fbsd will produce this following:

Traceback (most recent call last):
  File "/usr/bin/ebuild", line 29, in ?
    import portage
  File "/usr/lib/portage/pym/portage.py", line 8797, in ?
    init_legacy_globals()
  File "/usr/lib/portage/pym/portage.py", line 8753, in init_legacy_globals
    db = create_trees(**kwargs)
  File "/usr/lib/portage/pym/portage.py", line 8709, in create_trees
    config_incrementals=portage_const.INCREMENTALS)
  File "/usr/lib/portage/pym/portage.py", line 1324, in __init__
    portage_util.ensure_dirs(target_root)
  File "/usr/lib/portage/pym/portage_util.py", line 851, in ensure_dirs
    os.makedirs(dir_path)
  File "/usr/lib/python2.4/os.py", line 159, in makedirs
    mkdir(name, mode)
OSError: [Errno 21] Is a directory: '/'

portage-2.1.3.1 has been package.masked on fbsd.
Comment 1 Zac Medico gentoo-dev 2007-08-02 17:31:26 UTC
Created attachment 126719 [details, diff]
handle EISDIR thrown from mkdir when the directory already exists

This is fixed in svn r7545.
Comment 2 Joe Peterson (RETIRED) gentoo-dev 2007-08-02 17:58:54 UTC
Patch works.  Let me know when this is released, and I'll test/unmask on g/fbsd.
Comment 3 Zac Medico gentoo-dev 2007-08-02 18:40:44 UTC
This has been released in 2.1.3.2.