Sometimes (not always), when I run emerge -s <something> as a regular user, it fails with an error message. But if then I su to root, run the same command, exit and run it again as a user, it works. Below is a transcript of my terminal window: fghellar@xp fghellar $ emerge -p wine These are the packages that I would merge, in order. Calculating dependencies \Traceback (most recent call last): File "/usr/bin/emerge", line 1264, in ? if not mydepgraph.create(mytype+" "+portage.root+" "+mykey,None,"--onlydeps" not in myopts): File "/usr/bin/emerge", line 416, in create edepend=portage.db[myroot]["porttree"].dbapi.aux_get(mykey,portage.auxdbkeys) File "/usr/lib/python2.2/site-packages/portage.py", line 2601, in aux_get self.auxcache[mycpv][auxdbkeys[x]]=mylines[x][:-1] IndexError: list index out of range fghellar@xp fghellar $ su - Password: xp root # emerge -p wine These are the packages that I would merge, in order. Calculating dependencies ...done! [ebuild N ] dev-util/yacc-1.9.1-r1 to / [ebuild N ] dev-lang/tk-8.3.3-r1 to / [ebuild N ] app-emulation/wine-20020605-r2 to / xp root # exit logout fghellar@xp fghellar $ emerge -p wine These are the packages that I would merge, in order. Calculating dependencies ...done! [ebuild N ] dev-util/yacc-1.9.1-r1 to / [ebuild N ] dev-lang/tk-8.3.3-r1 to / [ebuild N ] app-emulation/wine-20020605-r2 to / fghellar@xp fghellar $
I forgot to mention, this is with portage-2.0.13.
When I said emerge -s, I meant emerge -p. (I need some sleep...)
Works fine here... portage 2.0.13 Fails on exit in 2.0.15(masked) due to attempt at non-root cache writeout.
similair problem with emerge -s <package> for portage 2.0.15 the file /var/cache/edb/xcache.p has perms 644 and is owned root.root Chenging this to 664 root.wheel aleviates the problem stu$ emerge -s rxvt [ Results for search key : rxvt ] [ Applications found : 1 ] * x11-terms/rxvt Latest version Available: 2.7.8-r5 Latest version Installed: 2.7.8-r5 Homepage: Description: rxvt -- nice small x11 terminal Error in sys.exitfunc: Traceback (most recent call last): File "/usr/lib/python2.2/atexit.py", line 20, in _run_exitfuncs apply(func, targs, kargs) File "/usr/lib/python2.2/site-packages/portage.py", line 3846, in store myxfile=open("/var/cache/edb/xcache.p","w") IOError: [Errno 13] Permission denied: '/var/cache/edb/xcache.p'
Reopening for portage 2.0.22: fghellar@xp fghellar $ emerge -p nedit These are the packages that I would merge, in order. Calculating dependencies ...done! [ebuild N ] app-editors/nedit-5.3 to / fghellar@xp fghellar $ emerge -p -e nedit These are the packages that I would merge, in order. Calculating dependencies -Traceback (most recent call last): File "/usr/bin/emerge", line 1422, in ? if not mydepgraph.create([mytype,portage.root,mykey],None,"--onlydeps" not in myopts): File "/usr/bin/emerge", line 762, in create self.create(myk,parent) File "/usr/bin/emerge", line 762, in create self.create(myk,parent) File "/usr/bin/emerge", line 762, in create self.create(myk,parent) File "/usr/bin/emerge", line 734, in create myeb=portage.db[portage.root]["porttree"].dep_bestmatch(mydep2) File "/usr/lib/python2.2/site-packages/portage.py", line 2160, in dep_bestmatch mymatch=self.dbapi.xmatch("bestmatch-visible",mydep) File "/usr/lib/python2.2/site-packages/portage.py", line 2875, in xmatch myval=best(self.xmatch("match-visible",None,mydep,mykey)) File "/usr/lib/python2.2/site-packages/portage.py", line 2886, in xmatch myval=self.match2(mydep,mykey,self.xmatch("list-visible",None,mydep,mykey)) File "/usr/lib/python2.2/site-packages/portage.py", line 2872, in xmatch myval=self.gvisible(self.visible(self.cp_list(mykey))) File "/usr/lib/python2.2/site-packages/portage.py", line 2950, in gvisible myaux=db["/"]["porttree"].dbapi.aux_get(mycpv, ["KEYWORDS"]) File "/usr/lib/python2.2/site-packages/portage.py", line 2764, in aux_get self.auxcache[mycpv][auxdbkeys[x]]=mylines[x][:-1] IndexError: list index out of range fghellar@xp fghellar $ su - Password: xp root # emerge -p -e nedit These are the packages that I would merge, in order. Calculating dependencies ...done! [ebuild N ] dev-util/yacc-1.9.1-r1 to / [ebuild N ] x11-base/opengl-update-1.3 to / [ebuild N ] sys-libs/ncurses-5.2-r5 to / [ebuild N ] sys-libs/pwdb-0.61-r3 to / [ebuild N ] dev-libs/glib-1.2.10-r4 to / [ebuild N ] sys-devel/libtool-1.4.1-r9 to / [ebuild N ] sys-devel/gettext-0.11.1 to / [ebuild N ] sys-devel/m4-1.4p to / [ebuild N ] sys-apps/groff-1.17.2-r2 to / [ebuild N ] sys-libs/gdbm-1.8.0-r5 to / [ebuild N ] sys-devel/perl-5.6.1-r5 to / [ebuild N ] sys-devel/autoconf-2.53a to / [ebuild N ] sys-apps/miscfiles-1.3 to / [ebuild N ] sys-libs/cracklib-2.7-r5 to / [ebuild N ] sys-devel/automake-1.6.1-r6 to / [ebuild N ] sys-libs/pam-0.75-r7 to / [ebuild N ] sys-devel/flex-2.5.4a-r4 to / [ebuild N ] sys-libs/zlib-1.1.4 to / [ebuild N ] x11-base/xfree-4.2.0-r12 to / [ebuild N ] x11-libs/openmotif-2.1.30-r1 to / [ebuild N ] app-editors/nedit-5.3 to / xp root # exit logout fghellar@xp fghellar $ emerge -p -e nedit These are the packages that I would merge, in order. Calculating dependencies ...done! [ebuild N ] dev-util/yacc-1.9.1-r1 to / [ebuild N ] x11-base/opengl-update-1.3 to / [ebuild N ] sys-libs/ncurses-5.2-r5 to / [ebuild N ] sys-libs/pwdb-0.61-r3 to / [ebuild N ] dev-libs/glib-1.2.10-r4 to / [ebuild N ] sys-devel/libtool-1.4.1-r9 to / [ebuild N ] sys-devel/gettext-0.11.1 to / [ebuild N ] sys-devel/m4-1.4p to / [ebuild N ] sys-apps/groff-1.17.2-r2 to / [ebuild N ] sys-libs/gdbm-1.8.0-r5 to / [ebuild N ] sys-devel/perl-5.6.1-r5 to / [ebuild N ] sys-devel/autoconf-2.53a to / [ebuild N ] sys-apps/miscfiles-1.3 to / [ebuild N ] sys-libs/cracklib-2.7-r5 to / [ebuild N ] sys-devel/automake-1.6.1-r6 to / [ebuild N ] sys-libs/pam-0.75-r7 to / [ebuild N ] sys-devel/flex-2.5.4a-r4 to / [ebuild N ] sys-libs/zlib-1.1.4 to / [ebuild N ] x11-base/xfree-4.2.0-r12 to / [ebuild N ] x11-libs/openmotif-2.1.30-r1 to / [ebuild N ] app-editors/nedit-5.3 to / fghellar@xp fghellar $
The 2.0.24 ebuild will now correct permissions problems. Should be fixed; closing.