Following upgrade to orbit-2.14.16, orbit-2.14.13 fails to unmerge. emerge -uavDN world slotted orbit-2.14.16 alongside 2.14.13. emerge --depclean attempted to remove 2.14.13, but failed with error below. Reproducible: Always Actual Results: monsoon ~ # emerge --unmerge =gnome-base/orbit-2.14.13 gnome-base/orbit selected: 2.14.13 protected: none 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 gnome-base/orbit-2.14.13... Traceback (most recent call last): File "/usr/bin/emerge", line 40, in <module> retval = _emerge.emerge_main() File "//usr/lib/portage/pym/_emerge/__init__.py", line 14621, in emerge_main mtimedb["ldpath"], ordered=ordered): File "//usr/lib/portage/pym/_emerge/__init__.py", line 11498, in unmerge scheduler=scheduler) File "//usr/lib/portage/pym/portage/__init__.py", line 6241, in unmerge mylink.delete() File "//usr/lib/portage/pym/portage/dbapi/vartree.py", line 1138, in delete shutil.rmtree(self.dbdir) File "/usr/lib/python2.5/shutil.py", line 174, in rmtree onerror(os.remove, fullname, sys.exc_info()) File "/usr/lib/python2.5/shutil.py", line 172, in rmtree os.remove(fullname) OSError: [Errno 2] No such file or directory: '/var/db/pkg/gnome-base/orbit-2.14.13/DEPMND' Expected Results: gnome-base/orbit-2.14.13 should have been cleanly removed from the system ~ # emerge --info Portage 2.1.6.7 (default/linux/powerpc/ppc32/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r7 ppc) ================================================================= System uname: Linux-2.6.27-gentoo-r7-ppc-7400,_altivec_supported-with-glibc2.0 Timestamp of tree: Fri, 06 Mar 2009 17:15:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7-r1, 2.1.6-r1 dev-lang/python: 2.5.2-r7 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="ppc" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -mtune=7400 -mcpu=7400 -maltivec -mabi=altivec -pipe" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -mtune=7400 -mcpu=7400 -maltivec -mabi=altivec -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://ftp.gtlib.gatech.edu/pub/gentoo http://open-systems.ufl.edu/mirrors/gentoo" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1,--hash-style=gnu" LINGUAS="en_US en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X a52 acl alsa altivec berkdb bzip2 cairo caps cdr cli cracklib crypt dbus dri dvd dvdr dvdread encode esd exif ffmpeg flac fortran gdbm gif gnome gnome-keyring gpm gstreamer gtk hal iconv imagemagick java jpeg libnotify logrotate mad midi mp3 mpeg mudflap nautilus ncurses nls nptl nptlonly nsplugin ogg opengl pam pcre pdf perl png ppc python quicktime readline reflection reiserfs samba sdl session spell spl ssl startup-notification svg sysfs threads tiff truetype unicode usb userlocales vorbis xattr xcb xml xorg xulrunner xv zlib" ALSA_CARDS="powermac" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="en_US en" USERLAND="GNU" VIDEO_CARDS="r128" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
emerge --regen followed by emerge --depclean resolved the problem.