Since today (for apparently no good reason), emerge -Dupv world fails deliberately; /var/cache/edb/{virtuals,world} get truncated to a zero byte mess and Nothing Works(tm). Reproducible: Always Steps to Reproduce: 1. Run emerge --sync 2. Run emerge -Dupv world Actual Results: --8<-- snip --8<-- [ ~ ] user@host $ emerge -Dupv world These are the packages that I would merge, in order: Calculating world dependencies / aux_get(): stale entry was not regenerated for sys-devel/libtool-1.4.3-r2; deleting and exiting. !!! list index out of range -->8-- snap -->8-- Note that you may replace sys-devel/libtool-<whatever> by arbitrary packages. Expected Results: Everything Just Works(tm). [ ~ ] user@host $ emerge --info Portage 2.0.49-r16-gpp7 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.4.22-gentoo-r5) ================================================================= System uname: 2.4.22-gentoo-r5 i686 mobile AMD Athlon(tm) XP 1500+ Gentoo Base System version 1.4.3.10 distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -ffast-math -funroll-loops -fforce-addr" 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 /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -ffast-math -funroll-loops -fforce-addr" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs sandbox ccache digest userpriv usersandbox" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.linux.no/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PKGUSE="( media-libs/smpeg => -gtk )( net-misc/vnc => -java )( media-sound/timidity++ => -motif -gtk )( dev-db/unixODBC => -gnome )( app-crypt/gnupg => caps -X )( net-www/netscape-flash => -gtk )( net-www/links => -X )( app-pda/multisync => evo irmc )( media-video/dvdrip => -gnome )( media-gfx/imagemagick => -X )( net-www/mozilla => moznoirc moznomail moznocompose )( media-sound/alsa-driver => oss )( sys-libs/glibc => pic )( games-strategy/dopewars => -ncurses )( media-sound/lame => -gtk )( app-cdr/cdrdao => -gnome )( media-sound/rhythmbox => xine )( app-misc/mc => -X )" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 avi crypt cups encode gif imlib jpeg mad mikmod motif mpeg ncurses nls pdflib png quicktime spell truetype xml2 xv zlib berkdb readline tetex guile X sdl tcpd pam libwww ssl esd oggvorbis gnome gtk opengl ldap 3dnow acl acpi alsa -apm -arts bonobo cdr dvd -foomaticdb -gdbm -gpm gtk2 gtkhtml jikes -kde -libg++ maildir -mozilla mpi mmx oav odbc -oss pcmcia pda -perl -python -qt samba -slang sse -svga -xmms"
I managed to repair the dependency cache by deleting the whole dep/ directory and running emerge --regen (which took ages...), as well as the world file (with regenworld). Unfortunately, there seems to be no easy way to regenerate the truncated virtuals file. Anything I can do about that?
/usr/lib/portage/bin/fixvirtuals would repair your virtual file.
I don't have this file. Is it part of any additional package?
It's in portage-2.0.49-r21.
Ok, thanks. BTW, is there any chance that this issue will be (at least) resolved, or should I set the bug resolution to NEEDINFO?
As far as this bug goes... you were using a non-official portage... You could ask genone, as it's his patchset, but I'm not going to attempt anything. Genone's call.
Hmm, none of the patches touch the world or virtuals files. Please upgrade to a current portage version as I stopped working on gpp for now. Unless you can figure out what exactly created your problem I can't help you.
A portage upgrade with emerge --regen and regenvirtuals fixed the thing. Might have been a file system issue. I'll close the bug.