On Friday 14 November 2003 10:43 am, Marius Mauch wrote:
> On 11/14/03  Robert Crawford wrote:
> > Been trying to fix this for two days.I just did an emerge sync, and
> > then emerge -puD system, then -fuD system,  and got this error:
> >
> > 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'
>
> Check bug 31901 on http://bugs.gentoo.org, some of the comments there
> might help you.
>
> Marius

Thanks much, Marius! Just before I read your response, I found it (see below).
---------------------------------------------------------------------------------------------------------
WOW! Perseverance in searching the forums really pays off, even if you don't 
really know what you're doing!

A seemingly related post in Portage & Programming (and answer by Genone, a 
developer) pointed me to:
http://bugs.gentoo.org/show_bug.cgi?id=31901

After I read that, and all the listed posts on this bug, I ran the fix-db.py 
script I learned about, and got:

mymachine wrc # /usr/lib/portage/bin/fix-db.py
ERROR: Package directory is empty for 'dev-libs/-MERGING-openssl-0.9.7c-r1'
       Deleting this directory. Remerge if you want it back.
Traceback (most recent call last):
  File "/usr/lib/portage/bin/fix-db.py", line 54, in ?
    pkgdirlist = os.listdir(pkgdir)
OSError: [Errno 20] Not a directory: 
'/var/db/pkg/dev-libs/-MERGING-openssl-0.9.7c-r1.portage_lockfile/'

I then as root deleted the file, and tried to run emerge -up kde, and it now 
works- apparently fixed!
-------------------------------------------------------------------------
BEFORE DELETING THE LOCKFILE THE FIX_DB FOUND:

mymachine wrc # emerge -up kde
These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] sys-kernel/gentoo-sources-2.4.20-r8
[ebuild  N    ] media-sound/alsa-driver-0.9.8
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'
-----------------------------------------------------------------------------------------------------
AFTER DELETING THE LOCKFILE:
mymachine wrc # emerge -up kde

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

Calculating dependencies ...done!
[ebuild  N    ] sys-kernel/gentoo-sources-2.4.20-r8
[ebuild  N    ] media-sound/alsa-driver-0.9.8
[ebuild     U ] dev-libs/openssl-0.9.7c-r1 [0.9.7b-r2]
[ebuild     U ] media-libs/tiff-3.6.0 [3.5.7-r1]
[ebuild     U ] dev-libs/libxml2-2.6.2 [2.5.11]
[ebuild     U ] dev-libs/libxslt-1.1.0 [1.0.33]
[ebuild     U ] media-libs/audiofile-0.2.4 [0.2.3-r1]
[ebuild     U ] app-text/ghostscript-7.05.6-r4 [7.05.6-r3]
[ebuild     U ] media-libs/lcms-1.11 [1.09]
[blocks B     ] <kde-base/kdelibs-3.1.4 (from pkg x11-libs/qt-3.2.2-r1)
[ebuild     U ] x11-libs/qt-3.2.2-r1 [3.1.2-r4]
[ebuild     U ] media-libs/alsa-lib-0.9.8 [0.9.7]
[ebuild     U ] kde-base/arts-1.1.4 [1.1.3]
[ebuild     U ] kde-base/kdelibs-3.1.4 [3.1.3-r1]
[ebuild     U ] kde-base/kdeedu-3.1.4 [3.1.3]
[ebuild     U ] sys-apps/eject-2.0.13 [2.0.12-r1]
[ebuild     U ] kde-base/kdebase-3.1.4 [3.1.3]
[ebuild     U ] kde-base/kdenetwork-3.1.4 [3.1.3]
[ebuild     U ] media-libs/libsdl-1.2.6-r2 [1.2.5-r2]
[ebuild     U ] gnome-base/ORBit2-2.8.2 [2.8.1]
[ebuild     U ] gnome-base/libbonobo-2.4.2 [2.4.0]
[ebuild     U ] gnome-base/gnome-vfs-2.4.1 [2.4.0]
[ebuild     U ] media-libs/win32codecs-20031001 [0.90.1-r2]
[ebuild  N    ] media-libs/xine-lib-1_rc2
[ebuild     U ] media-sound/mpg123-0.59s-r1 [0.59s]
[ebuild     U ] dev-util/dialog-0.9_beta20031002 [0.9_beta20030308-r1]
[ebuild     U ] app-portage/gentoolkit-0.1.35 [0.1.30]
[ebuild     U ] dev-lang/tcl-8.4.4 [8.4.3]
[ebuild     U ] dev-lang/tk-8.4.4 [8.4.3]
[ebuild     U ] kde-base/kdemultimedia-3.1.4-r1 [3.1.3]
[ebuild     U ] media-sound/xmms-1.2.8-r3 [1.2.7-r25]
[ebuild     U ] kde-base/kdeaddons-3.1.4 [3.1.3]
[ebuild  N    ] kde-base/kdepim-3.1.4
[ebuild     U ] kde-base/kdetoys-3.1.4 [3.1.3]
[ebuild     U ] kde-base/kdegames-3.1.4 [3.1.3]
[ebuild     U ] app-text/xpdf-2.03 [2.02.1]
[ebuild     U ] kde-base/kdegraphics-3.1.4 [3.1.3]
[ebuild  N    ] kde-base/kdeadmin-3.1.4
[ebuild  N    ] kde-base/kdeartwork-3.1.4
[ebuild     U ] kde-base/kdeutils-3.1.4 [3.1.3]
[ebuild  N    ] kde-base/kde-3.1.4

mymachine wrc #
-----------------------------------------------------------
Apparently, this problem is caused by:
python version 2.2.3-r1
portage version 2.0.49-r15

and solved by deleting the specific lockfile leftover from a botched emerge, 
and detected by the fix-db.py script! If I'm not careful, I might wind up 
actually knowing a little about what I'm doing here!

Gentoo Bugzilla is my new "best friend"!

Robert Crawford



--
[EMAIL PROTECTED] mailing list

Reply via email to