Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35495 - emerge -up world fails calculating dependencies
Summary: emerge -up world fails calculating dependencies
Status: RESOLVED DUPLICATE of bug 31901
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-09 20:18 UTC by Adam Walters
Modified: 2011-10-30 22:21 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 Adam Walters 2003-12-09 20:18:55 UTC
When I run 'emerge -up world', as root or not, it starts calculating depencencies, but always fails with a traceback and the error "AttributeError: vartree instance has no attribute 'invalidentry'". Although it will spit the same error for virtually anything. Also, when I actually merge a package successfully, when portage enters the final stages and begins auto-cleaning packages, it spits the error "!!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd!!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd". These errors hadn't been happening before I did an rsync and update world last month, and actually, the invalidentry error didn't start until about two weeks ago.

Reproducible: Always
Steps to Reproduce:
1. Log in as any user, root included.
2. Type "emerge -up world" and the bash prompt, without quotes, of course.

Actual Results:  
abwalters@abwalters portage $ sudo emerge -up world
Password:

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild     U ] sys-apps/man-pages-1.61 [1.60]
[ebuild     U ] net-www/opera-7.23 [7.21]
[ebuild     U ] sys-devel/gcc-config-1.3.4 [1.3.3-r1]
[ebuild     U ] sys-devel/gcc-3.2.3-r3 [3.2.3-r2]
[ebuild     U ] sys-libs/glibc-2.3.2-r3 [2.3.2-r1]
[ebuild     U ] media-libs/alsa-lib-0.9.8 [0.9.2]
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2133, in ?
    mydepgraph.display(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1103, in display
    elif (not "--emptytree" in myopts) and portage.db[x[1]]["vartree"].
exists_specific_cat(x[2]):
  File "/usr/lib/python2.2/site-packages/portage.py", line 3469, in 
exists_specific_cat
    self.invalidentry(self.root+"var/db/pkg/"+a[0]+"/"+x)
AttributeError: vartree instance has no attribute 'invalidentry'
---------------------------------------------------------------
below is the end of 'emerge funny-manpages' to show the invalid db entry error 
message. the rest of the emerge log is rather uninteresting and goes exactly as 
it should.
---------------------------------------------------------------
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...                                        [ ok ]
>>> games-misc/funny-manpages-1.3_rc4 merged.

>>> clean: No packages selected for removal.

>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...                                        [ ok ]
>>> Auto-cleaning packages ...
!!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd!!! Invalid db entry: 
/var/db/pkg/*sys-fs/devfsd
>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.



Expected Results:  
An output of all packages that have updates available.

ortage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.0-test11)
=================================================================
System uname: 2.6.0-test11 i686 AMD Athlon(tm)
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share
/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linu
x/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apm foomaticdb kde gnome libg++ mad pdflib gdbm berkdb arts guile perl
python esd dvd fbdev fbcon directfb alsa dga oss jpeg sdl X 3dnow opengl gif enc
ode aalib acpi apache2 avi canna cdr cjk crypt cups flash frewnn ggi gpm gtk gtk
2 imap imlib java jikes lcms ldap libwww maildir mbox mikmod motif mozilla mpeg
mpinas ncurses nls oggvorbis pam pdflibperl png pnppython qt quicktime readline
samba sasl scanner slang slp snmp socks5 spell sse ssl svga tcpd tcltk tiff true
type usb Xaw3d xface xinerama xml xml2 xmms xv zlib joystick video_cards_radeon"
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2003-12-09 20:46:03 UTC

*** This bug has been marked as a duplicate of 31901 ***