After updating to openoffice-2.0.2-r1, openoffice-2.0.1,r1 should get unmerged. But this does not work. If I try to unmerge it by hand, I get the same (following) failure: laptop2 ~ # emerge -Ca =app-office/openoffice-2.0.1-r1 >>> These are the packages that I would unmerge: app-office/openoffice selected: 2.0.1-r1 protected: none omitted: 2.0.2-r1 >>> 'Selected' packages are slated for removal. >>> 'Protected' and 'omitted' packages will not be removed. Do you want me to unmerge these packages? [Yes/No] Y >>> Waiting 5 seconds before starting... >>> (Control-C to abort)... >>> Unmerging in: 5 4 3 2 1 >>> Unmerging app-office/openoffice-2.0.1-r1... No package files given... Grabbing a set. Traceback (most recent call last): File "/usr/bin/emerge", line 2965, in ? if 1==unmerge(myaction, myfiles): File "/usr/bin/emerge", line 2233, in unmerge retval=portage.unmerge(mysplit[0],mysplit[1],portage.root,mysettings,unmerge_action not in ["clean","prune"]) File "/usr/lib/portage/pym/portage.py", line 2951, in unmerge mylink.unmerge(trimworld=mytrimworld,cleanup=1) File "/usr/lib/portage/pym/portage.py", line 6221, in unmerge a=doebuild(myebuildpath,"prerm",self.myroot,self.settings,cleanup=cleanup,use_cache=0,tree=self.treetype) File "/usr/lib/portage/pym/portage.py", line 2507, in doebuild os.makedirs(mysettings["T"]) File "/usr/lib/python2.4/os.py", line 156, in makedirs makedirs(head, mode) File "/usr/lib/python2.4/os.py", line 159, in makedirs mkdir(name, mode) OSError: [Errno 17] File exists: '/var/tmp/portage/openoffice-2.0.1-r1' ******************** ***EMERGE INFO****** ******************** laptop2 ~ # emerge info Portage 2.0.54-r2 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16.16 i686) ================================================================= System uname: 2.6.16.16 i686 Pentium III (Coppermine) Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5-r2, 2.4.2 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts audiofile avi berkdb bitmap-fonts browserplugin bzip2 cdb cli crypt cups curl dri dvd eds emboss encode esd evo exif expat fam foomaticdb fortran gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml hal icq idn imagemagick imlib isdnlog java jpeg lcms libg++ libwww mad mikmod mng motif mozilla mp3 mpeg ncurses ogg oggvorbis opengl oss pam pcre pdflib perl png pppd python quicktime readline reflection sdl session spell spl ssl tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis win32codecs wmf xml2 xmms xorg xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
This is/was the failure: Cause of my tiny /var patition, I set a symbolic link to /tmp: laptop2 portage # pwd /var/tmp/portage laptop2 portage # ls -l openoffice-2.0.* lrwxrwxrwx 1 root root 25 May 24 14:02 openoffice-2.0.1-r1 -> /tmp/openoffice-2.0.1-r1/ In the past I deleted /tmp/openoffice-2.0.1-r1/ and since then merge was not able to delete all openoffice files. After deleting the symbolic link /var/tmp/openoffice-2.0.1-r1 emerge unmerged OOo without any kind of problems.
Bug fixed.
Never use symlinks to work around lack of disk space... mount -o bind is way better.