Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 126120

Summary: portage 2.1_pre6-r2 emerge --resume --pretend broken
Product: Portage Development Reporter: Ben Kohler <ben>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: Dominik.Elsbroek
Priority: High Keywords: InVCS
Version: 2.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 115839, 125886    
Attachments: /var/cache/edb/mtimedb as requested
fix KeyError from applied_useflags

Description Ben Kohler 2006-03-13 22:57:03 UTC
when attempting "emerge --resume --pretend" (during an emerge consisting of several packages) i get the following error output:

ben ~ # emerge --resume --pretend

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

Traceback (most recent call last):
  File "/usr/bin/emerge", line 3249, in ?
    mydepgraph.display(portage.mtimedb["resume"]["mergelist"])
  File "/usr/bin/emerge", line 1541, in display
    if portage.portdb.fetch_check(x[2], self.applied_useflags[x[2]]):
KeyError: 'app-emulation/cedega-5.1'
ben ~ # 

---

emerge --info output:

ben ~ # emerge --info
Portage 2.1_pre6-r2 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r0, 2.6.15-r4s2-r5 i686)
=================================================================
System uname: 2.6.15-r4s2-r5 i686 AMD Athlon(tm) XP 2100+
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 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="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-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="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac alsa apm avi bash-completion berkdb bitmap-fonts bzip2 cdr crypt css cups dba dri dvd dvdr dvdread eds emboss encode ffmpeg firefox flac foomaticdb fortran gdbm gif gimp gpm gstreamer gtk gtk2 imlib ipv6 ithreads java jpeg kde kdeenablefinal libg++ libwww mad mikmod mmx mmxext motif mp3 mpeg mplayer ncurses nfsv4 nls nptl nptlonly nsplugin nvidia ogg opengl pam pdflib perl png python qt quicktime readline real samba sdl spell sse ssl tcpd theora tidy tiff truetype truetype-fonts type1-fonts udev unicode userlocales v4l visualization vorbis vrl2 win32codecs wxwindows xcomposite xine xinerama xml xmms xprint xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS

ben ~ #
Comment 1 Ben Kohler 2006-03-13 22:58:19 UTC
Created attachment 82071 [details]
/var/cache/edb/mtimedb as requested
Comment 2 Zac Medico gentoo-dev 2006-03-14 16:08:15 UTC
Created attachment 82163 [details, diff]
fix KeyError from applied_useflags

Thanks for reporting.  This is fixed in svn r2890.  If you save the patch as /tmp/applied_useflags.patch, then you can apply it as follows:

cd /usr/lib/portage
patch -p0 < /tmp/applied_useflags.patch
Comment 3 Zac Medico gentoo-dev 2006-03-14 18:06:21 UTC
Released in 2.1_pre6-r3.
Comment 4 Zac Medico gentoo-dev 2006-06-09 05:27:08 UTC
*** Bug 136162 has been marked as a duplicate of this bug. ***