Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110991 - Tons of "!!! Invalid db entry: ..." messages on each emerge call.
Summary: Tons of "!!! Invalid db entry: ..." messages on each emerge call.
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-31 03:37 UTC by Rodrigo Severo
Modified: 2005-11-07 09:25 UTC (History)
0 users

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


Attachments
My /var/lib/world file as requested. (world,1.69 KB, text/plain)
2005-10-31 03:41 UTC, Rodrigo Severo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rodrigo Severo 2005-10-31 03:37:47 UTC
I recently started using "-k" in my emerge calls. Since them there is an
increasing list of "!!! Invalid db entry: ..." messages on each emerge call.

Here is my "emerge info":

fellini rodrigo # emerge info
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
!!! Invalid db entry: /var/db/pkg/net-print/foomatic-db-engine-3.0.2.tbz2
!!! Invalid db entry: /var/db/pkg/app-admin/ldap-auth-workstation-0.9.tbz2
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
!!! Invalid db entry: /var/db/pkg/kde-base/dcopperl-3.4.1.tbz2
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
!!! Invalid db entry: /var/db/pkg/media-gfx/imagemagick-6.2.4.2-r1.tbz2
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
!!! Invalid db entry: /var/db/pkg/dev-util/subversion-1.2.3-r2.tbz2
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
!!! Invalid db entry: /var/db/pkg/net-print/foomatic-db-engine-3.0.2.tbz2
!!! Invalid db entry: /var/db/pkg/kde-base/dcopperl-3.4.1.tbz2
!!! Invalid db entry: /var/db/pkg/net-analyzer/rrdtool-1.2.6-r1.tbz2
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
!!! Invalid db entry: /var/db/pkg/dev-util/subversion-1.2.3-r2.tbz2
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
!!! Invalid db entry: /var/db/pkg/media-gfx/imagemagick-6.2.4.2-r1.tbz2
!!! Invalid db entry: /var/db/pkg/media-gfx/imagemagick-6.2.4.2-r1.tbz2
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
Portage 2.0.53_rc6 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r3,
2.6.11-win4lin i686)
=================================================================
System uname: 2.6.11-win4lin i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
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.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=i686 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=i686 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distcc distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.ccccom.com http://gentoo.mirror.sdv.fr
http://distro.ibiblio.org/pub/Linux/distributions/gentoo/
http://gentoo.mirrors.pair.com/ http://gentoo.osuosl.org/"
MAKEOPTS="-j9"
PKGDIR="/var/packages/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-fabrica"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib alsa apm arts audiofile avi bitmap-fonts bzip2 bzlib
cddb cdparanoia cdr crypt cups curl dga dts dvd edl eds emboss encode faac faad
fam fame ffmpeg flac foomaticdb fortran gd gdbm gif gimpprint gmp gpm gstreamer
gtk2 imagemagick imlib jbig jpeg jpeg2k junit kde kdeenablefinal lcms ldap
libcaca libg++ libwww live lzo mad matroska md5sum mikmod mjpeg mng motif mp3
mpeg mysql ncurses nls ogg oggvorbis opengl oss pam pdflib perl png postgres
ppds python qt quicktime readline real ruby samba scanner sdl speex spell ssl
svg svga tcltk tcpd tga theora tiff truetype truetype-fonts type1-fonts udev
unicode vcd vorbis win32codecs wmf xine xinerama xml2 xmms xv xvid xvmc zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Rodrigo Severo 2005-10-31 03:38:46 UTC
You can get my /var/db/pkg dir compacted at
http://fabricadeideias.com/download/var_db_pkg.tbz2. It has 40MB.
Comment 2 Rodrigo Severo 2005-10-31 03:41:16 UTC
Created attachment 71784 [details]
My /var/lib/world file as requested.

I am including all the reference/configuration files mentioned in bug # 107003.
Comment 3 Rodrigo Severo 2005-10-31 03:46:54 UTC
Here is the output I got from "emerge -uDav world" with the patches mentioned in
bug # 1007003 applied:

fellini rodrigo # emerge -uDav world
caller: cp_list('media-libs/speex')
Traceback (most recent call last):
  File "/usr/bin/emerge", line 10, in ?
    import portage
  File "/usr/lib/portage/pym/portage.py", line 7226, in ?
    settings.reset() # XXX: Regenerate use after we get a vartree -- GLOBAL
  File "/usr/lib/portage/pym/portage.py", line 1262, in reset
    self.regenerate(use_cache=use_cache)
  File "/usr/lib/portage/pym/portage.py", line 1349, in regenerate
    self.configdict["auto"]["USE"]=autouse(db[root]["vartree"],use_cache=use_cache)
  File "/usr/lib/portage/pym/portage.py", line 826, in autouse
    if not myvartree.dep_match(mydep,use_cache=True):
  File "/usr/lib/portage/pym/portage.py", line 4935, in dep_match
    mymatch=self.dbapi.match(mydep,use_cache=use_cache)
  File "/usr/lib/portage/pym/portage.py", line 4821, in match
    mydep=dep_expand(origdep,mydb=self,use_cache=use_cache)
  File "/usr/lib/portage/pym/portage.py", line 3764, in dep_expand
    return prefix+cpv_expand(mydep,mydb=mydb,use_cache=use_cache)+postfix
  File "/usr/lib/portage/pym/portage.py", line 3682, in cpv_expand
    if (not mydb.cp_list(mykey,use_cache=use_cache)) and virts and
virts.has_key(mykey):
  File "/usr/lib/portage/pym/portage.py", line 4774, in cp_list
    self.invalidentry(self.root+VDB_PATH+"/"+mysplit[0]+"/"+x)
  File "/usr/lib/portage/pym/portage.py", line 4497, in invalidentry
    raise Exception
Exception

Do you need any extra info?
Comment 4 Rodrigo Severo 2005-10-31 03:49:14 UTC
Should I stay with portage 2.0.53 or should I go back to portage 2.0.51? I am
asking it because I only upgraded from 2.0.51 to 2.0.53 in hope of fixing these
issues. As it seems 2.0.53 has nothing to do with the intended solution, it
might be safer to got back to 2.0.51.

Please advise.
Comment 5 Rodrigo Severo 2005-11-07 06:43:39 UTC
As a bump try here is the output of "/usr/lib/portage/bin/fix-db.py" on this
same machine:

# /usr/lib/portage/bin/fix-db.py
caller: cp_list('media-libs/speex')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
caller: cp_list('media-libs/gd')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
caller: cp_list('media-libs/aalib')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
caller: cp_list('media-libs/libmikmod')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
caller: cp_list('media-libs/ungif')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
caller: cp_list('net-print/foomatic-db')
!!! Invalid db entry: /var/db/pkg/net-print/foomatic-db-engine-3.0.2.tbz2
caller: cp_list('app-admin/fam')
!!! Invalid db entry: /var/db/pkg/app-admin/ldap-auth-workstation-0.9.tbz2
caller: cp_list('media-libs/svgalib')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
caller: cp_list('media-libs/alsa-lib')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
caller: cp_list('kde-base/kdebase')
!!! Invalid db entry: /var/db/pkg/kde-base/dcopperl-3.4.1.tbz2
caller: cp_list('media-libs/libvorbis')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
caller: cp_list('media-libs/xine-lib')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
caller: cp_list('media-gfx/imagemagick')
!!! Invalid db entry: /var/db/pkg/media-gfx/imagemagick-6.2.4.2-r1.tbz2
caller: cp_list('media-libs/libggi')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
caller: cp_list('dev-util/cscope')
!!! Invalid db entry: /var/db/pkg/dev-util/subversion-1.2.3-r2.tbz2
caller: cp_list('media-libs/tiff')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
caller: cp_list('net-print/cups')
!!! Invalid db entry: /var/db/pkg/net-print/foomatic-db-engine-3.0.2.tbz2
caller: cp_list('kde-base/arts')
!!! Invalid db entry: /var/db/pkg/kde-base/dcopperl-3.4.1.tbz2
caller: cp_list('net-analyzer/net-snmp')
!!! Invalid db entry: /var/db/pkg/net-analyzer/rrdtool-1.2.6-r1.tbz2
caller: cp_list('media-libs/giflib')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
caller: cp_list('media-libs/flac')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
caller: cp_list('media-libs/libsdl')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
caller: cp_list('media-libs/libogg')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
caller: cp_list('media-libs/libpng')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
caller: cp_list('dev-util/guile')
!!! Invalid db entry: /var/db/pkg/dev-util/subversion-1.2.3-r2.tbz2
caller: cp_list('media-libs/gstreamer')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
caller: cp_list('media-gfx/gphoto2')
!!! Invalid db entry: /var/db/pkg/media-gfx/imagemagick-6.2.4.2-r1.tbz2
caller: cp_list('media-gfx/sane-backends')
!!! Invalid db entry: /var/db/pkg/media-gfx/imagemagick-6.2.4.2-r1.tbz2
caller: cp_list('media-libs/imlib')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
caller: cp_list('media-libs/plotutils')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
caller: cp_list('media-libs/nas')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
caller: cp_list('media-libs/libmad')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
caller: cp_list('media-libs/pdflib')
!!! Invalid db entry: /var/db/pkg/media-libs/tunepimp-0.3.0-r1.tbz2
Traceback (most recent call last):
  File "/usr/lib/portage/bin/fix-db.py", line 59, in ?
    pkgdirlist = os.listdir(pkgdir)
OSError: [Errno 20] Not a directory: '/var/db/pkg/All/digest-base-1.10.tbz2/'

I really don't know what to do with the "Not a directory" error message. Should
there be only directories inside '/var/db/pkg/All/'?
Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2005-11-07 07:24:21 UTC
Do those files or links exist? If they do, they shouldn't. Did you at some 
stage set PKGDIR to "/var/db/pkg"? 
Comment 7 Rodrigo Severo 2005-11-07 09:05:23 UTC
(In reply to comment #6)
> Do those files or links exist?

Yes.

> If they do, they shouldn't.

Should I delete them?

> Did you at some stage set PKGDIR to "/var/db/pkg"? 

Not that I am aware of.

Comment 8 Rodrigo Severo 2005-11-07 09:25:33 UTC
I removed all references to .tbz2 files inside /var/db/pkg and things seem to be
fine now.

I really don't remember setting PKGDIR to /var/db/pkg but I can be wrong.

I am closing this bug.