Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59501 - portage 2.0.51_pre15-16 traceback if an already merged ebuild doesn't exists
Summary: portage 2.0.51_pre15-16 traceback if an already merged ebuild doesn't exists
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-08-05 04:12 UTC by Guillaume Destuynder (RETIRED)
Modified: 2004-10-22 08:47 UTC (History)
0 users

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


Attachments
emerge.patch using varttree for querying (emerge-fix.patch,760 bytes, patch)
2004-08-11 17:13 UTC, Brian Harring (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Destuynder (RETIRED) gentoo-dev 2004-08-05 04:12:30 UTC
Eg, i have maildrop-1.6.3 merged on the system but the ebuild isn't present anymore:

Calculating world dependencies -!!! aux_get(): ebuild for 'mail-filter/maildrop-
1.6.3' does not exist at:
!!!            None
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2705, in ?
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 1245, in xcreate
    if not self.create(myk,myuse=binpkguseflags):
  File "/usr/bin/emerge", line 866, in create
    self.pkgsettings.setinst(mykey,portage.db[myroot]["porttree"].dbapi)
  File "/usr/lib/portage/pym/portage.py", line 1726, in setinst
    provides = mydbapi.aux_get(mycpv, ["PROVIDE"])[0]
  File "/usr/lib/portage/pym/portage.py", line 5272, in aux_get
    raise KeyError, "'%s' at %s" % (mycpv,myebuild)
KeyError: "'mail-filter/maildrop-1.6.3' at None"

Note that portage wasn't traceback-ing with previous versions (2.0.51_pre14 and earlier)

Reproducible: Always
Steps to Reproduce:

1. create a new/different version of an ebuild
2. merge it
3. delete this ebuild
4. run emerge -p world

Actual Results:  
Portage tracesback

Expected Results:  
Portage should handle the situation after it gives the error: Calculating world dependencies -
!!! aux_get(): ebuild for 'mail-filter/maildrop-
1.6.3' does not exist at

Portage 2.0.51_pre16 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.                                                  6.7-rsbac-r1 
i686 AMD Duron(tm) 
Processor)
=================================================================
System 
uname: 2.6.7-rsbac-r1 i686 AMD Duron(tm) Processor

Gentoo Base System version 1.4.16
distcc 
2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 
[enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-
1.8.3
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.19-
r1,sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.2-
r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-
pointer -msse -mmmx -m3dnow -mfpmath=387 -fforce-addr -fprefetch-loop-arrays"
CHOST="i686-pc-linux-
gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/share/config 
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo 
/etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -msse -mmmx -m3dnow -
mfpmath=387 -fforce-addr -fprefetch-loop-
arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs manifest 
sandbox 
strict"
GENTOO_MIRRORS="ftp://gentoo.blueyonder.co.uk/mirrors/gentoo"
MAKEOPTS="-
j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/kang/gentoo/gentoo-
x86"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow acpi apache2 apm 
berkdb crypt encode ethereal foomaticdb gd gdbm gif gnome gpm gtk2 guile hardened imlib java jpeg 
libg++ libwww mad mmx mysql ncurses nls objc oggvorbis opengl pam pdflib perl png python 
quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xv zlib"
Comment 1 Daniel Black (RETIRED) gentoo-dev 2004-08-05 05:16:58 UTC
portage 2.0.51_pre17 just released. I don't know if it fixed this.
Comment 2 Brian Harring (RETIRED) gentoo-dev 2004-08-05 06:54:25 UTC
Custom virtuals at all?
Don't spose you could give a specific test case that we could use to verify/fix this?  emerge -p world is a bit specific to your system :)
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2004-08-05 08:00:04 UTC
My bug. I'll fix it tomorrow.
Comment 4 Guillaume Destuynder (RETIRED) gentoo-dev 2004-08-05 17:48:35 UTC
as of pre17 i can just reproduce it with "emerge -pU world" (-U being deprecated since pre15 i think)
i tried on another box and can reproduce it too with -pU
So, just follow the "steps to reproduce" stuff and do emerge -pU world instead of -p world
Comment 5 Brian Harring (RETIRED) gentoo-dev 2004-08-11 17:13:16 UTC
Created attachment 37254 [details, diff]
emerge.patch using varttree for querying

Crap... just posted this to bug #58677, instead of this bug :-/
Either way, fixed in cvs, here's the patch in the meantime until pre18 is out.
Comment 6 Nicholas Jones (RETIRED) gentoo-dev 2004-10-22 08:47:47 UTC
Bug has been fixed and released in stable portages on or before 2.0.51-r2