Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 241204 - sys-apps/portage-2.2_rc11 gives "invalid db entry" errors, but does not specify where
Summary: sys-apps/portage-2.2_rc11 gives "invalid db entry" errors, but does not speci...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
Depends on:
Blocks: 210077
  Show dependency tree
Reported: 2008-10-10 22:59 UTC by Beetle B.
Modified: 2008-11-02 01:01 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Beetle B. 2008-10-10 22:59:28 UTC
I upgraded to sys-apps/portage-2.2_rc11. I started getting "invalid db entry" errors, but it did not state where those errors existed. I finally traced it to /var/db/pkg (invalid entry dating all the way to 2003) and deleted it. 

I think Portage should at least give the location when reporting the error. It did in the past. 

Reproducible: Always

emerge --info output:

Portage 2.2_rc11 (default/linux/x86/2008.0/desktop, gcc-3.4.6, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
System uname: Linux-2.6.24-gentoo-r8-i686-Intel-R-_Pentium-R-_4_CPU_2.53GHz-with-glibc2.0
Timestamp of tree: Thu, 09 Oct 2008 02:47:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.3.5-r3, 2.4.4-r14, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
FEATURES="ccache distlocks fixpackages nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
LINGUAS="en ar"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/roslin /usr/portage/local/layman/desktop-effects /usr/portage/local/layman/science /usr/portage/local/layman/interactive-fiction /usr/portage/local/layman/other"
USE="7zip X a52 aac aalib acl acpi aim alsa apache2 apm asf avi bash-completion berkdb bitmap-fonts bittorrent blas bluetooth branding browserplugin bzip2 cairo calendar caps cdparanoia cdr cli cracklib crypt cups cvs dbus dga directfb divx4linux doc dri dvb dvd dvdnav dvdr dvdread eds emacs emboss encode exif fam fbcon fbdev ffmpeg fftw firefox flac fortran ftp gd gdbm gif gimp glitz gnuplot gnutella gphoto2 gpm gstreamer gtk guile hal hbci hdri i8x0 iconv icq imagemagick imap imlib ipv6 isdnlog jabber java javascript jpeg jpeg2k justify kde kerberos lame lapack latex lcms ldap leim libcaca libnotify libsamplerate live loop-aes lyx mad maildir matroska mbox md5sum midi mikmod mjpeg mmx mng mozilla mp2 mp3 mpeg mplayer msn mudflap musepack mysql ncurses network nls nptl nptlonly nsplugin oav ofx ogg oggvorbis openexr opengl openmp oscar oss pam pcre pda pdf pdflib perl pgp php plotutils png pnm pnp ppds pppd python qt qt3 qt3support qt4 quicktime radio rar readline real reflection rss rtsp samba sasl sdl session shout sox speex spell spl srt sse ssl startup-notification stream subtitles subversion svg svga sysfs tcpd tetex tga theora threads tiff tivo transparency truetype truetype-fonts type1-fonts unicode usb v4l vcd vesa videos vidix vorbis wavpack win32codecs wma wmf wxwindows x264 x86 xcomposite xine xml xorg xosd xpm xscreensaver xulrunner xv xvid yahoo zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ar" USERLAND="GNU" VIDEO_CARDS="radeon vesa fbdev"
Comment 1 Zac Medico gentoo-dev 2008-10-11 06:36:33 UTC
Looking a the code, it seems like it should show something like this:

!!! Invalid db entry: /var/db/pkg/foo/bar

I'm not sure why the path would not be shown in some case(s). Can you tell us what the specific path was that triggered the behavior that you observed?
Comment 2 Beetle B. 2008-10-11 12:29:16 UTC
The exact error message was:

!!! Invalid db entry: /dev-gamessimgear/-0.3.3
Comment 3 Zac Medico gentoo-dev 2008-10-11 18:51:47 UTC
Thanks, this is fixed in svn r11676.
Comment 4 Zac Medico gentoo-dev 2008-11-02 01:01:40 UTC
This is fixed in 2.2_rc13.