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

Bug 63429

Summary: portage should handle invalid virtuals file better
Product: Gentoo Linux Reporter: Sebastian Dröge <sebastian.droege>
Component: [OLD] DevelopmentAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 147007    

Description Sebastian Dröge 2004-09-09 08:01:49 UTC
Hi,
when using cascading profiles (default-linux/ppc/2004.2) with portage portage 2.0.51_pre20 on ppc I get the following error:

Traceback (most recent call last):
  File "/usr/bin/emerge", line 14, in ?
    import portage
  File "/usr/lib/portage/pym/portage.py", line 6878, in ?
    do_vartree(settings)
  File "/usr/lib/portage/pym/portage.py", line 6863, in do_vartree
    if not virts_p.has_key(vkeysplit[1]):
IndexError: list index out of range


On x86 it works as it should
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2004-09-09 17:01:03 UTC
Just guessing... but is your virtuals file in the profiles valid?
Comment 2 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-09-10 03:15:07 UTC
I'll have a look at the cascading profiles for ppc. If I'm not mistaken I just copied the flat ones into the cascading directory.
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2004-09-10 05:28:16 UTC
jason@localhost ~ $ cat gentoo-x86/profiles/default-linux/ppc/virtuals
This file is not empty
Comment 4 SpanKY gentoo-dev 2004-09-10 22:22:51 UTC
ok, so the profile is stupid ... looks like Pieter created it that way ... at any rate, ive removed the offending virtuals file

the bug here is that portage should have been like 'the virtuals file at default-linux/ppc/virtuals is corrupt'
Comment 5 Zac Medico gentoo-dev 2006-11-07 03:46:49 UTC
This is fixed in svn r4980 (substituted grabdict_package for grabdict).
Comment 6 Zac Medico gentoo-dev 2006-11-07 15:32:16 UTC
This has been released in 2.1.2_rc1-r5.