Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125993 - sys-apps/portage-2.1_pre6-r1 broken with KeyError: 'mergelist' error
Summary: sys-apps/portage-2.1_pre6-r1 broken with KeyError: 'mergelist' error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Highest critical (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
: 126020 126034 (view as bug list)
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2006-03-12 15:32 UTC by Benjamin Hodgetts
Modified: 2006-03-13 02:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix the KeyError (mergelist_keyerror.patch,485 bytes, patch)
2006-03-12 15:55 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Hodgetts 2006-03-12 15:32:24 UTC
After upgrading to glibc2.4 and emerge -e system'ing, I went to emerge something after and now portage doesn't work, it just spits out the following if you try and emerge anything:

----------------------------------------
Calculating dependencies... done!
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3263, in ?
    if "resume" in portage.mtimedb and \
KeyError: 'mergelist'
----------------------------------------

Other things such as emerge --sync, emerge --info and emerge -pv packagename still work, but not emerging packages themselves, which as you can guess has left me utterly screwed so I can't do very much anymore so immediate help is appreciated. There is a thread on the forum about this too, so it isn't an isolated issue: http://forums.gentoo.org/viewtopic-p-3176503.html

-----------------------------------------

Portage 2.1_pre6-r1 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.4-r0, 2.6.16-rc3-nitro1 x86_64)
=================================================================
System uname: 2.6.16-rc3-nitro1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi aim alsa apm avi bash-completion berkdb bitmap-fonts bluetooth bzip2 cdparanoia cdr cjk clamav crypt cups dbus dga dri dts dvd dvdr dvdread emboss encode exif ffmpeg flac flash foomaticdb fortran ftp gif glut gnome gphoto2 gpm gstreamer gtk gtk2 hal icq ieee1394 imagemagick imlib ipv6 javascript joystick jpeg jpeg2k lirc lzw lzw-tiff mad matroska mikmod mng mp3 mpeg ncurses nls nptl nsplugin ogg opengl pam pda pdf pdflib perl png ppds python qt quicktime readline samba scanner sdl smartcard speex spell ssl svg symlink szip tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb v4l vcd videos vorbis wmf wxwindows xine xmms xpm xv xvid yahoo zlib elibc_glibc input_devices_mouse input_devices_joystick input_devices_keyboard kernel_linux linguas_en userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS
Comment 1 Zac Medico gentoo-dev 2006-03-12 15:55:06 UTC
Created attachment 82002 [details, diff]
fix the KeyError

Please test this patch.  If you save it as /tmp/mergelist_keyerror.patch then you can apply it as follows:

cd /usr/lib/portage
patch -p0 < /tmp/mergelist_keyerror.patch
Comment 2 Benjamin Hodgetts 2006-03-12 16:13:20 UTC
Works great. Thanks Zac.
Comment 3 Zac Medico gentoo-dev 2006-03-12 16:23:03 UTC
This is in svn r2864 and will be released in 2.1_pre6-r2.
Comment 4 Zac Medico gentoo-dev 2006-03-12 19:13:08 UTC
Released in 2.1_pre6-r2.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-03-13 01:15:31 UTC
*** Bug 126020 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-03-13 02:41:08 UTC
*** Bug 126034 has been marked as a duplicate of this bug. ***