Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128455 - emerge --resume -p gives traceback when needed ebuild is missing
Summary: emerge --resume -p gives traceback when needed ebuild is missing
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2006-04-01 17:45 UTC by Ben Kohler
Modified: 2006-04-29 08:27 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 Ben Kohler 2006-04-01 17:45:04 UTC
When I delete an ebuild that was in my --resume list (usually from my overlay), the next "emerge --resume" prints this nice message:

*** Resuming merge...
!!! Error: The resume list contains packages that no longer
!!!        available to be emerged. Please restart/continue
!!!        the merge operation manually.

However, if I do "emerge --resume --pretend" it gives me this nasty traceback:

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

!!! aux_get(): ebuild path for 'net-nntp/nzbperl-0.6.7' not specified:
!!!            None
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3350, in ?
    mydepgraph.display(portage.mtimedb["resume"]["mergelist"])
  File "/usr/bin/emerge", line 1549, in display
    if (x[0]!="binary") and ("fetch" in string.split(portage.portdb.aux_get(x[2],["RESTRICT"])[0])):
  File "/usr/lib/portage/pym/portage.py", line 4782, in aux_get
    raise KeyError, "'%(cpv)s' at %(path)s" % {"cpv":mycpv,"path":myebuild}
KeyError: "'net-nntp/nzbperl-0.6.7' at None"

Seems like both should give the same polite message telling me a needed ebuild no longer exists.  To recreate, start an emerge like "emerge irssi" then ctrl+c it.  Then delete the ebuild for the version it was emerging.  Then emerge --resume -p.

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

# emerge --info
Portage 2.1_pre7-r3 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16-ben-r1 i686)
=================================================================
System uname: 2.6.16-ben-r1 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-r2
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 -fomit-frame-pointer"
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 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
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 cli crypt css ctype cups dba dri dvd dvdr dvdread eds emboss encode expat fam fastbuild ffmpeg firefox flac foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gimp gpm gstreamer gtk gtk2 imlib ipv6 isdnlog ithreads java jpeg kde kdeenablefinal libg++ libwww mad memlimit mikmod mmx mmxext motif mp3 mpeg mplayer ncurses nfsv4 nls nptl nptlonly nsplugin nvidia ogg opengl pam pcre pdflib perl png posix pppd python qt quicktime readline real reiser4 samba sdl session simplexml soap sockets spell spl sse ssl suspend2 tcpd theora tidy tiff tokenizer truetype truetype-fonts type1-fonts udev unicode userlocales v4l visualization vorbis vrl2 win32codecs wxwindows xcomposite xine xinerama xml xmms xprint xsl 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, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Zac Medico gentoo-dev 2006-04-25 13:39:47 UTC
This is fixed in svn r3235.
Comment 2 Zac Medico gentoo-dev 2006-04-29 08:27:55 UTC
Released in 2.1_pre10.