Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181953 - emerge -u --world fails on KeyError
Summary: emerge -u --world fails on KeyError
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 181949 187293
  Show dependency tree
 
Reported: 2007-06-13 20:55 UTC by Premysl Paska
Modified: 2007-06-15 03:25 UTC (History)
0 users

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


Attachments
prevent the KeyError (circular_blocks.patch,858 bytes, patch)
2007-06-13 21:51 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Premysl Paska 2007-06-13 20:55:20 UTC
rocket etc # emerge -u --world
Calculating world dependencies \Traceback (most recent call last):
  File "/usr/bin/emerge", line 5530, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 5525, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 4842, in action_build
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 2241, in xcreate
    if not self.validate_blockers():
  File "/usr/bin/emerge", line 1954, in validate_blockers
    self.altlist()
  File "/usr/bin/emerge", line 2129, in altlist
    mygraph.remove(node)
  File "/usr/lib/portage/pym/portage.py", line 349, in remove
    raise KeyError(node)
KeyError: ('ebuild', '/', 'app-emulation/vmware-modules-1.0.0.15-r1', 'merge')


where the affected package is blocked by an older version:
rocket etc # emerge -up vmware-modules

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] sys-apps/sysvinit-2.86-r8 [2.86-r5]
[ebuild  NS   ] sys-kernel/gentoo-sources-2.6.20-r8  USE="-build -symlink"
[ebuild     U ] sys-apps/debianutils-2.17.5 [2.15-r1]
[ebuild     U ] x11-misc/shared-mime-info-0.20 [0.16]
[ebuild  N    ] sys-apps/mktemp-1.5
[ebuild  N    ] virtual/init-0
[ebuild     U ] sys-apps/baselayout-1.12.9-r2 [1.12.5-r2]
[ebuild     U ] sys-apps/module-init-tools-3.2.2-r3 [3.2.2-r1]
[ebuild     U ] app-emulation/vmware-modules-1.0.0.15-r1 [1.0.0.13]
[blocks B     ] >=app-emulation/vmware-modules-1.0.0.14 (is blocking app-emulation/vmware-workstation-5.5.1.19175-r4)

This sounds similar to bug 151331, but since it is closed for about 8 months, a have chosen to open new bug.

"emerge -pv --world" works fine as opposed to "emerge -upv --world" which gives the same traceback as posted above.

After I have unmerged the blocker, "emerge -u --world" started to work fine, so the bug is not a blocker or so ;-)

I should also note that for about a year I haven't performed complete update and I'm emerging only selected packages.

rocket etc # emerge --info
Portage 2.1.2.7 (default-linux/x86/2006.1/desktop, gcc-3.4.6, glibc-2.4-r4, 2.6.16-gentoo-r9 i686)
=================================================================
System uname: 2.6.16-gentoo-r9 i686 Intel(R) Pentium(R) D CPU 3.40GHz
Gentoo Base System version 1.12.5
Timestamp of tree: Wed, 13 Jun 2007 19:30:01 +0000
ccache version 2.3 [enabled]
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT=""
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="cs en fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aalib alsa apache2 arts bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups curl dbus dri dv dvd dvdr dvdread eds emboss encode esd fam firefox fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog java jpeg kde kdeenablefinal libg++ mad midi mikmod mmx mozsvg mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl php png ppds pppd python qt qt3 qt4 quicktime readline reflection ruby samba sdl session sockets spell spl sse sse2 ssl svg tcpd threads tiff truetype truetype-fonts type1-fonts unicode vorbis win32codecs wxwindows x86 xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs en fr" USERLAND="GNU" VIDEO_CARDS="fbdev i810 vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2007-06-13 21:51:58 UTC
Created attachment 121972 [details, diff]
prevent the KeyError

Thanks, this is fixed in svn r6838.
Comment 2 Zac Medico gentoo-dev 2007-06-15 03:25:09 UTC
This has been released in 2.1.3_rc1.