Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184806 - portage-2.1.3_rc7 emerge traceback on multiple versions within a single package slot
Summary: portage-2.1.3_rc7 emerge traceback on multiple versions within a single packa...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Portage team
Depends on:
Blocks: 181949
  Show dependency tree
Reported: 2007-07-10 04:41 UTC by Joe Pelkey
Modified: 2007-07-11 20:36 UTC (History)
0 users

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

fix KeyError triggered by slot collision (collision.patch,1.76 KB, patch)
2007-07-10 17:40 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Pelkey 2007-07-10 04:41:48 UTC
In portage-2.1.3_rc6, I did:
emerge -avDuNf world

and this error message came up before the dependency graph:
!!! Multiple versions within a single package slot have been
!!! pulled into the dependency graph:

('ebuild', '/', 'sys-kernel/linux-headers-', 'merge') pulled in by
  ('ebuild', '/', 'media-video/mplayer-1.0.20070622-r1', 'merge')

('ebuild', '/', 'sys-kernel/linux-headers-2.6.22', 'merge') pulled in by
  ('ebuild', '/', 'net-misc/openssh-4.6_p1-r2', 'merge')
  ('installed', '/', 'media-gfx/sane-backends-1.0.18-r2', 'nomerge')
  ('ebuild', '/', 'media-libs/libgii-1.0.2', 'merge')
  ('ebuild', '/', 'sys-apps/hal-0.5.9-r1', 'merge')

In portage-2.1.3_rc7, with the same command, python crashed with:
Calculating world dependencies \Traceback (most recent call last):
  File "/usr/bin/emerge", line 6047, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 6041, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 5335, in action_build
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 2521, in xcreate
    if not self.select_dep(
  File "/usr/bin/emerge", line 1944, in select_dep
    myuse=selected_pkg[-1], rev_dep=rev_deps, arg=arg):
  File "/usr/bin/emerge", line 1445, in create
  File "/usr/bin/emerge", line 1937, in select_dep
    rev_dep=rev_deps, arg=arg):
  File "/usr/bin/emerge", line 1445, in create
  File "/usr/bin/emerge", line 1760, in select_dep
    self.pkgsettings[p_root].setinst(p_key, p_db)
  File "/usr/lib64/portage/pym/", line 1815, in setinst
    provides = mydbapi.aux_get(mycpv, ["PROVIDE"])[0]
  File "/usr/lib64/portage/pym/", line 5078, in aux_get
    raise KeyError(mycpv)
KeyError: 'sys-kernel/linux-headers-'

From the dep tree (from rc6's emerge) for the relevant packages:
[ebuild     U ] media-video/mplayer-1.0.20070622-r1 [1.0.20070321] USE="3dnow 3dnowext X a52 aac aalib alsa amrnb%* amrwb%* arts bidi bl cd
db cdparanoia dga directfb doc dts dv dvb dvd dvdnav enca encode esd fbcon ftp ggi gif gtk iconv ipv6 ivtv* jack joystick jpeg libcaca lirc
 live lzo mad md5sum* mmx mmxext mp2 mp3 musepack nas openal opengl oss png pnm quicktime radio* rar real rtc* samba sdl speex srt sse sse2
 tga theora tivo* truetype unicode v4l v4l2 vorbis x264 xanim xinerama xv xvid xvmc zoran* (-altivec) -bindist -cpudetection -custom-cflags
 -debug -livecd -ssse3% (-svga) (-vidix) (-win32codecs) (-amr%*) (-dvdread%*)" VIDEO_CARDS="-mga -s3virge -tdfx -vesa" 0 kB
[ebuild     U ] net-misc/openssh-4.6_p1-r2 [4.5_p1-r2] USE="X chroot hpn kerberos ldap libedit pam skey smartcard tcpd -X509 (-selinux) -st
atic" 0 kB
[nomerge      ] media-gfx/sane-backends-1.0.18-r2  USE="gphoto2 ipv6 usb v4l"
[ebuild     U ] media-libs/libgii-1.0.2 [0.9.0] USE="X" 0 kB
[ebuild     U ] sys-apps/hal-0.5.9-r1 [] USE="acpi crypt doc -debug -dell% -disk-partition% -pcmcia (-selinux) (-dmi%)" 0 kB
[ebuild     U ] sys-kernel/linux-headers-2.6.22 [2.6.21] 0 kB

First line of emerge --info:
Portage 2.1.3_rc7 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.20-gentoo-r8 x86_64)

The ivtv flag on media-video/mplayer was what was trying to pull in linux-headers-, so I disabled it and portage 2.1.3_rc7 worked fine.
Comment 1 Zac Medico gentoo-dev 2007-07-10 17:40:08 UTC
Created attachment 124449 [details, diff]
fix KeyError triggered by slot collision

This is fixed in svn r7215.
Comment 2 Zac Medico gentoo-dev 2007-07-11 20:36:39 UTC
This has been released in 2.1.3_rc8.