Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33245 - portage prints wrong db entry as invalid
Summary: portage prints wrong db entry as invalid
Status: RESOLVED DUPLICATE of bug 31881
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-11 12:50 UTC by Achim Gsell
Modified: 2011-10-30 22:19 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 Achim Gsell 2003-11-11 12:50:11 UTC
Running an "emerge clean" I got an error message about an invalid db entry 
"sys-fs/devfsd" but the real problem was the invalid db entry "/var/db/pkg/
app-text/-MERGING-sablotron-0.97.portage_lockfile".  
 
In the method "cp_all()" of "class vardbapi" variable "y" contains the invalid 
entry put "x" will be printed. 
 
The following patch fixes the error: 
 
--- portage.py.orig     2003-11-11 21:15:03.000000000 +0100 
+++ portage.py  2003-11-11 21:33:20.000000000 +0100 
@@ -3334,7 +3334,7 @@ 
                for y in mylist: 
                        mysplit=catpkgsplit(y) 
                        if not mysplit: 
-                               self.invalidentry(self.root+"var/db/pkg/"+x) 
+                               self.invalidentry(self.root+"var/db/pkg/"+y) 
                                continue 
                        mykey=mysplit[0]+"/"+mysplit[1] 
                        if not mykey in returnme: 

Reproducible: Always
Steps to Reproduce:
1. Create an invalid entry in /var/db/pkg/<category> 
2. Run "emerge clean" or something similiar 
 
Actual Results:  
Prints a "random" invalid entry. 


Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 
2.4.20-gentoo-r8) 
================================================================= 
System uname: 2.4.20-gentoo-r8 i686 Pentium III (Katmai) 
Gentoo Base System version 1.4.3.10p1 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/
share/config /var/bind /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/
share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/
config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/pam.d /etc/skel /etc/X11/
chooser.sh /etc/X11/startDM.sh /etc/X11/app-defaults /usr/X11R6/lib/X11/xkb/
symbols/pc /usr/X11R6/lib/X11/xkb /etc/X11/rstart/rstartd.real /etc/X11/xdm /
etc/afs/C /etc/afs/afsws /etc/env.d" 
CXXFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="ccache autoaddcvs -sandbox buildpkg" 
GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/" 
MAKEOPTS="-j3" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/var/portage" 
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" 
USE="x86 foomaticdb mad esd 3dfx 3dnow aalib acl acpi afs alsa apache2 apm arts 
avi berkdb cdr crypt cups dga directfb doc dvd emacs encode ethereal fbcon gd 
gdbm gif -gnome gphoto2 gpm gtk imap imlib innodb ipv6 java jpeg kde lcms ldap 
leim libg++ libwww lirc mbox mcal mikmod mmx motif mozilla mpeg mule mysql nas 
ncurses nls oav odbc oggvorbis opengl oss pam pcmcia pdflib perl plotutils png 
pnp python qt quicktime readline samba sasl scanner sdl slang snmp spell ssl 
svga tcltk tcpd tetex tiff truetype usb voodoo3 X Xaw3d xml2 xmms xv zlib"
Comment 1 SpanKY gentoo-dev 2003-11-11 12:59:19 UTC

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