Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23045 - portage : IndexError: list index out of range (NOT the eclass bug)
Summary: portage : IndexError: list index out of range (NOT the eclass bug)
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-18 08:07 UTC by Henti Smith
Modified: 2011-10-30 22:21 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 Henti Smith 2003-06-18 08:07:34 UTC
nvidia and X11 crashed system and overwrote some files including it seems portage.
any emerge or ebuild command results in the output :

Traceback (most recent call last):
  File "/usr/bin/emerge", line 6, in ?
    import
os,sys,portage,emergehelp,xpak,string,re,commands,time,threading,shutil,traceback
  File "/usr/lib/python2.2/site-packages/portage.py", line 4353, in ?
    do_vartree()
  File "/usr/lib/python2.2/site-packages/portage.py", line 4341, in do_vartree
    if not virts_p.has_key(vkeysplit[1]):
IndexError: list index out of range

the imports line differ according to what command you use.



Reproducible: Always
Steps to Reproduce:
1. emerge
2.
3.

Actual Results:  
nothing 

Expected Results:  
working ;P 

I've untarred the portage-rescue according to
/usr/portage/sys-apps/portage/files/README.RESCUE
 spoke to seemant and lordlogic on irc ;P
Comment 1 Brandon Low (RETIRED) gentoo-dev 2003-06-18 08:22:11 UTC
The issue was a FREAKILY corrupted virtuals file full of what looked like /etc/profile.env stuff, once the file was removed portage resumed functioning normally,  I warned the user that portage may try to merge incorrect things to satisfy virtuals until all virtuals needed were resatisfied and stored in a replacement /var/cache/edb/virtuals file.