Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31881 - auto-cleaning finishes up with !!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd
Summary: auto-cleaning finishes up with !!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 31882 33245 35521 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-10-23 22:32 UTC by SpanKY
Modified: 2011-10-30 22:21 UTC (History)
17 users (show)

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 SpanKY gentoo-dev 2003-10-23 22:32:48 UTC
>>> original instance of package unmerged safely.
 * Please do not contact the E team about bugs in Gentoo.
 * Only contact vapier@gentoo.org via e-mail or bugzilla.
 * Remember, this stuff is CVS only code so dont cry when
 * I break you :).
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...                                                          [ ok ]
>>> media-sound/eplayer-0.7.20031025 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!!! 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.

root@vapier 0 root # emerge info
Portage 2.0.49-r16 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r7, 2.6.0-test8)
=================================================================
System uname: 2.6.0-test8 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.4.3.11
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-pipe -march=pentium4 -O2 -frename-registers -fomit-frame-pointer -mfpmath=sse -mmmx -msse  
 -msse2 -fdelete-null-pointer-checks -funroll-loops -ffast-math -D_FILE_OFFSET_BITS=64 -D_LARGEFIL  
E_SOURCE -D_LARGEFILE64_SOURCE"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/k  
de/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /opt/  
glftpd/etc /usr/share/config /var/qmail/control /var/qmail/alias"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-pipe -march=pentium4 -O2 -frename-registers -fomit-frame-pointer -mfpmath=sse -mmmx -ms  
se -msse2 -fdelete-null-pointer-checks -funroll-loops -ffast-math -D_FILE_OFFSET_BITS=64 -D_LARGEF  
ILE_SOURCE -D_LARGEFILE64_SOURCE"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache noauto"
GENTOO_MIRRORS="http://www.ibiblio.org/gentoo"
MAKEOPTS="-j2"
PKGDIR="/mnt/space/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rux0r/gentoo-portage"
USE="x86 foomaticdb mad offensive moznomail moznoirc moznocompose apache2 emu10k1 -joystick dedica  
ted nptl cdr -scanner -3dfx -3dnow aalib acl -afs alsa acpi -apm -arts -atlas avi -berkdb -bonobo   
-canna -cjk crypt cups dga directfb -doc dvd encode esd -evo -fbcon flash -freewnn -gb gd gd-exter  
nal gdbm ggi -ggz gif -gnome -gnome-libs -gphoto2 gpm gtk gtk2 -gtkhtml -guile -icc -icc-pgo imap   
imlib -innodb ipv6 -java jpeg -kde -kerberos -lcms -ldap -libg++ -libgda libwww -matrox maildir -m  
box mikmod mmx -motif mozilla mpeg -mule mysql nas ncurses -nls nocardbus -oci8 -odbc oggvorbis op  
engl oss pam -pcmcia -pda pdflib perl pic plotutils png pnp -postgres python qt qtmt quicktime rea  
dline -ruby samba sasl sdl -slang slp snmp socks5 spell sse ssl -static svga tcltk tcpd -tetex tif  
f truetype -trusted -voodoo3 wavelan X -xface xml xml2 xmms xv -zeo zlib video_cards_nvidia"
Comment 1 Sven Blumenstein (RETIRED) gentoo-dev 2003-10-24 04:26:58 UTC
Got one guy in the forums having the same issue (http://forums.gentoo.org/viewtopic.php?t=99061).


What version of devfsd are you using?

The reason for the error is the asterisk:

!!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd!!! 
---------------------------------^^^ // shouldnt be there

Comment 2 Hans Cats 2003-10-24 09:38:40 UTC
I got the same problem. Got devfsd 1.3.25-r3.


Portage 2.0.49-r16 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.0-test6-mm4)
=================================================================
System uname: 2.6.0-test6-mm4 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.4.3.10p1
distcc 2.9 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -finline-functions
-falign-functions=16 -falign-labels=1 -falign-loops=16 -funroll-loops -ffast-math"
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/cvs/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -finline-functions
-falign-functions=16 -falign-labels=1 -falign-loops=16 -funroll-loops -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="ftp://10.0.0.3/pub/linux/Gentoo ftp://ftp.uninett.no/pub/linux/Gentoo
http://gentoo.linux.no/ ftp://gentoo.linux.no/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod
motif mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib
alsa gdbm berkdb slang readline aalib svga ggi tcltk java mysql X sdl tcpd
pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde opengl mozilla
gphoto2 cdr 3dnow acpi amd apache2 autofs bluetooth dga dvd dvdr gb gd geoip
gtk2 imagemagick imlib2 ipv6 javascript offensive php samba sse transcode
usb v4l wxwindows mmx -gpm -arts"

Also had the same problem with Portage 2.0.49-r15.
Comment 3 Max Kalika (RETIRED) gentoo-dev 2003-10-24 11:32:01 UTC
*** Bug 31882 has been marked as a duplicate of this bug. ***
Comment 4 Narada Sage 2003-10-24 12:08:30 UTC
Same problem here with portage r15.
Comment 5 SpanKY gentoo-dev 2003-10-24 13:33:37 UTC
i know the asterik isnt supposed to be there but i dunno where it's coming
from ;)

i had it with devfsd 1.3.25-r3 ... but then i unmerged devfsd because i switched
over to udev ... the error went away ...

since devfsd is part of the system profile, portage wanted to install it
for me ... so i injected it `emerge -i sys-fs/devfsd-1.3.25-r5` and the error
came back

no there arent any funky directories in /var/db/pkg so dont bother asking
;)
Comment 6 Daniel Seyffer 2003-10-25 01:31:18 UTC
Same problem here, using devfsd-1.3.25-r5 and portage-2.0.49-r15.
This is a brand new Gentoo installation from scratch (I've just finished
stage2).
Comment 7 Dominique DERRIER (Whoo) 2003-10-25 07:59:32 UTC
Is it possible that temporary files ?  like:

/var/db/pkg/media-gfx/-MERGING-gimp-1.3.20-r1.portage_lockfile
/var/db/pkg/media-gfx/-MERGING-gimp-1.3.20-r1
note the "-" bofore the name

make this kind of trouble. I've removed this file and emerge didn't show
this message again.
Comment 8 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2003-10-25 22:21:29 UTC
i got this after installing apache:

>>> Safely unmerging already-installed instance...
flag-o-matic
!!! Invalid db entry: /var/db/pkg/net-www/apache-2.0.47.portage_lockfile
Comment 9 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2003-10-25 22:30:08 UTC
sorry ignore comment #8

should have pasted:

>>> Done.
preinst
flag-o-matic
prerm
flag-o-matic
!!! Invalid db entry: /var/db/pkg/net-www/apache-2.0.47.portage_lockfile
postrm
flag-o-matic
!!! Invalid db entry: /var/db/pkg/net-www/apache-2.0.47.portage_lockfile
postinst
flag-o-matic

Comment 10 SpanKY gentoo-dev 2003-10-26 01:08:55 UTC
ignore comment #8 and #9 ... rajiv is using an older ver of portage and that
bug has been fixed
Comment 11 Kim Rasmussen 2003-10-27 08:14:30 UTC
Me too...


Portage 2.0.49-r16 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4, 2.4.20-gentoo-r2)
=================================================================
System uname: 2.4.20-gentoo-r2 i686 Mobile Intel(R) Pentium(R) 4 - M CPU
1.80GHz
Gentoo Base System version 1.4.2.8
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://trumpetti.atm.tut.fi/gentoo/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm
berkdb slang readline tetex bonobo svga tcltk java guile X sdl gpm tcpd pam
libwww ssl perl python esd imlib oggvorbis qt motif opengl dga gtk gtk2 -kde
-arts -gnome xface"
Comment 12 fbusse 2003-10-28 01:22:05 UTC
Might not be directly related, but I'm also getting errors like this during
unmerging:
!!! Invalid db entry: /var/db/pkg/media-sound/ogmtools-1.0.2.portage_lockfile
Comment 13 Ronald Steininger 2003-10-28 02:30:48 UTC
It really seems that stale lockfiles causes this (and other) problems with
portage. Take a look at http://bugs.gentoo.org/show_bug.cgi?id=31901#c7 ,
comment #7 by myself. Re-emerging the packages (or removing the lockfiles)
solves also this problem.
Comment 14 Narada Sage 2003-10-28 12:01:38 UTC
Adding note about following messages appearing (couldn't find match ...):

 !!! Couldn't find match for media-video/mplayer
>>> clean: No packages selected for removal.
!!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd!!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd!!!
Invalid db entry: /var/db/pkg/*sys-fs/devfsd!!! Invalid db entry: /var/db/pkg/*sys-fs/devfsd
!!! Couldn't find match for media-libs/libsndfile
!!! Couldn't find match for media-libs/libdv
Comment 15 Pieter Van den Abeele (RETIRED) gentoo-dev 2003-10-29 06:47:07 UTC
same problem here: 

I have a file -MERGING-dvacm4-0.3.4.portage_lockfile 

trying to rm or even ls *.portage_lockfile it  gives:

root@research dev-libs # ls *.portage_lockfile
ls: invalid option -- M
Try `ls --help' for more information.

Could this be what is causing this?

Pieter
Comment 16 Pieter Van den Abeele (RETIRED) gentoo-dev 2003-10-29 06:51:23 UTC
the filename has shell metacharacters
--------------------------------

The classic case is a filename starting with '-'. You can try referring to
the file as ./-foo, or escape the metacharacter with a \, or use the '-'
or '--' flag in the rm command (use man rm to see which is installed on your
system), which forces rm to take whatever follows as the name of a file to
be removed.

If none of these work then your best bet is to avoid trying to name the file
yourself. Use rm -ri . to make Unix find the file for you, and with great
care say 'y' to the file you want removed, and 'n' to all the others.

A less dangerous method is to refer to the file by its inode number, which
is its real name as far as Unix is concerned anyway. Use ls -i to find out
the inode number, and then use find . -inum inode -ok rm '{}' \;. The advantage
of this method is that it also allows you to rename the file if you actually
want to keep it, but have been unable to access it because of the funny characters.
To rename the file, use find . -inum inode -ok mv '{}' new-file-name \;.
If you don't want the -ok safety check, use -exec instead.
Comment 17 Hans Cats 2003-10-29 09:27:55 UTC
I made the errors go away by:

1. rm -rf /var/db/pkg/sys-fs/devfsd-1.3.25-r3/
2. /usr/lib/portage/bin/./fix-db.py
3. emerge devfsd
Comment 18 Michele Noberasco (RETIRED) gentoo-dev 2003-11-03 07:09:24 UTC
The solution above worked for me, too.
Also, fix-db.py wanted me to delete file
/var/db/pkg/kde-base/-MERGING-kdebase-3.1.4.portage_lockfile
Comment 19 TGL 2003-11-10 05:49:45 UTC
> Invalid db entry: /var/db/pkg/*sys-fs/devfsd!!! 

Do you think this could be related to the fact that "*sys-fs/devfsd" is
exactly the very last line of the "packages" file in portage profile?
I'm thinking of a not-so-local variable which would have kept this value
after an iteration on the content of this file, and which would then be 
reused somewhere else where it is supposed to be fresh, or something 
like this.

That said, this is just an thought, because in fact I've not been able to

find any evidence of such a bug in the code. It is just that I feel this
coincidence is suspectfull.
Comment 20 TGL 2003-11-10 07:16:03 UTC
Okay, I've just read today portage changelog, and I guess this means
this bug is fixed:

  10 Nov 2003; Nicholas Jones <carpaski@gentoo.org> portage.py: <snip>
  Fixes for '*' being returned as part of a package split. <snip>

So forget my previous comment.
Comment 21 SpanKY gentoo-dev 2003-11-11 12:59:19 UTC
*** Bug 33245 has been marked as a duplicate of this bug. ***
Comment 22 Achim Gsell 2003-11-11 13:51:17 UTC
In method "cp_all()" of "class vardbapi" variable "y" contains the name of
the invalid entry but variable "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:
Comment 23 Jarkko 2003-11-26 05:50:02 UTC
Comment #19 is true. Just try it for your self. Put temporarily an extra line /etc/make.profile/packages and run some command. The devfsd will be replaced by whatever you type there.
Comment 24 Jarkko 2003-11-26 06:56:20 UTC
Hmm, the patch was correct but now it complains about this line:

writemsg(red("INCOMPLETE MERGE:")+match[0]+"\n")
Comment 25 Jarkko 2003-11-26 07:05:32 UTC
Maybe that line (#3119) in portage.py should be:

 writemsg(red("INCOMPLETE MERGE:")+mypath+"\n")

instead of

 writemsg(red("INCOMPLETE MERGE:")+match[0]+"\n")


After changing that all the errors were gone...
Comment 26 Benedict Verhegghe 2003-11-27 00:55:49 UTC
The patch from #22 together with that from #25 worked for me too.
In the last, one could also replace the match[0] by match.group(0) or match.group(1).
I like the last one, because it returns a cleaner package name. (It could be
tuned further to return category+package). So here is my complete patch:

--- portage.py.orig     2003-11-27 09:39:15.000000000 +0100
+++ portage.py  2003-11-27 09:34:58.000000000 +0100
@@ -3116,7 +3116,7 @@
        def invalidentry(self, mypath):
                match = re.search(".*/-MERGING-(.*)",mypath)
                if match:
-                       writemsg(red("INCOMPLETE MERGE:")+match[0]+"\n")
+                       writemsg(red("INCOMPLETE MERGE:")+match.group(1)+"\n")
                else:
                        if re.search("portage_lockfile$",mypath):
                                writemsg("Lockfile removed: %s" % mypath)
@@ -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:
Comment 27 Marius Caldas 2003-12-05 17:53:36 UTC
I confirm that the patch above fixed this problem for me, on an amd64 box.
Comment 28 SpanKY gentoo-dev 2003-12-10 12:15:21 UTC
*** Bug 35521 has been marked as a duplicate of this bug. ***
Comment 29 Philipp Kern 2003-12-24 04:24:38 UTC
#26 fixed it on my box, too.
Comment 30 Thomas T. Veldhouse 2003-12-24 09:06:38 UTC
This is still a problem, and it has now shown its face in stable.
Comment 31 SpanKY gentoo-dev 2003-12-24 10:15:27 UTC
we kknow it's a problem in stable which is why this bug isnt closed

however, the fix is in cvs [see InCVS in Keywords], and you can find workarounds on this bug
Comment 32 Philipp Kern 2003-12-24 13:47:04 UTC
>>> app-cdr/mp3burn-0.1 merged.
>>> Recording app-cdr/mp3burn in "world" favorites file...

!!! Couldn't find match for app-cdr/mp3burn

>>> clean: No packages selected for removal.

>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...                                        [ ok ]
>>> Auto-cleaning packages ...
INCOMPLETE MERGE:mp3burn-0.1.portage_lockfile
INCOMPLETE MERGE:mp3burn-0.1

Annoying...
Comment 33 Ricardo Nuno 2004-01-09 04:19:13 UTC
This is still an issue, i'm on a clean install
using devfsd-1.3.25-r3 and portage-2.0.49-r21
Comment 34 Thomas Koller 2004-01-09 05:06:23 UTC
Same here on a clean install. the issue is still present
Comment 35 Jeremy Degroat 2004-01-13 14:01:38 UTC
Likewise, clean install with devfsd-1.3.25-r3 and portage-2.0.49-r21.

Still experiencing !Invalid db entry: /var/db/pkg/*sys-fs/devfsd errors.
Comment 36 JoBo 2004-01-23 06:45:24 UTC
Same here on a clean install.(Made yesterday)
Comment 37 Evert 2004-02-03 06:07:57 UTC
I'm experiencing this problem already for months, then it goes away, sometimes it comes back again...
I just had the same problem with emerging psmisc, then nmap (3.48 -> 3.50).
Then, after re-emerging psmisc it went unmerging nmap 3.48...

[...snip...]
>>> original instance of package unmerged safely.
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...                                                                                                                     [ ok ]>>> sys-apps/psmisc-21.2-r4 merged.
 
>>> clean: No packages selected for removal.
 
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...                                                                                                                     [ ok ]>>> Auto-cleaning packages ...
 
 net-analyzer/nmap
    selected: 3.48
   protected: 3.50
     omitted: none
 
>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.
 
>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging net-analyzer/nmap-3.48...
No package files given... Grabbing a set.
--- !mtime obj /usr/share/nmap/nmap-services
--- !mtime obj /usr/share/nmap/nmap-service-probes
[...snip...]
Comment 38 Thomas T. Veldhouse 2004-02-03 06:19:29 UTC
This one irritates me!  If the fix is in CVS, why hasn't it trickled down and STABLE showing the bug as fixed?  This is ludicrous!
Comment 39 Marius Mauch (RETIRED) gentoo-dev 2004-02-08 18:19:59 UTC
closing as 2.0.50 is stable now, if anyone still sees this with 2.0.50 please reopen.
Comment 40 Marius Mauch (RETIRED) gentoo-dev 2004-02-08 18:20:37 UTC
really closing now ;)