Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 117157 - emerge sync has left emerge unusable
Summary: emerge sync has left emerge unusable
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-29 22:54 UTC by Robert Persson
Modified: 2005-12-29 23:06 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 Robert Persson 2005-12-29 22:54:36 UTC
After running emerge sync today emerge has been completely broken. Not even emerge --help works. Every time I tried to run emerge I got the message:

Performing Global Updates: /usr/portage/profiles/updates/4Q-2005
(Could take a couple of minutes if you have a lot of binary packages.)
Comment 1 Robert Persson 2005-12-29 22:54:36 UTC
After running emerge sync today emerge has been completely broken. Not even emerge --help works. Every time I tried to run emerge I got the message:

Performing Global Updates: /usr/portage/profiles/updates/4Q-2005
(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.*'
.Traceback (most recent call last):
  File "/usr/bin/emerge", line 10, in ?
    import portage
  File "/usr/lib/portage/pym/portage.py", line 7480, in ?
    do_upgrade(mykey)
  File "/usr/lib/portage/pym/portage.py", line 7385, in do_upgrade
    key=dep_getkey(line.split()[0])
  File "/usr/lib/portage/pym/portage.py", line 3609, in dep_getkey
    if mydep[-1]=="*":
IndexError: string index out of range

I tried using portage-rescue but I ended up with error messages identical to the one above except for the line numbers (due to the different portage version used).

I tried moving /usr/portage out of the way and I was then able to run emerge sync again, but once a new /usr/portage had been created I got the same problem as before.

I tried running python-updater, but this relies on emerge and therefore failed.
Comment 2 Robert Persson 2005-12-29 23:06:30 UTC
It seems that what the error messages were trying to tell me was that I had the invalid atom "* media-video/mpeg4ip" in my /etc/portage/package.mask (it should have been "# media-video/mpeg4ip").