I installed psi-thems a while ago, the emerge was succesfull. But since then when I try to unmerge it I get an awful error. As there is no update for that package, I can't upgrade it either. Even when I try to re-install it, the emerge crash. As it is masked now (I can understand why) I can't do an emerge --deep , which annoys me a lot. Reproducible: Always Steps to Reproduce: 1.emerge -C psi-themes 2. 3. Actual Results: emerge -C psi-themes x11-themes/psi-themes selected: 0.8.7 protected: none omitted: none >>> Packages in red are slated for removal. >>> Packages in green will not be removed. >>> Waiting 5 seconds before starting... >>> (Control-C to abort)... >>> Unmerging in: 5 4 3 2 1 >>> Unmerging x11-themes/psi-themes-0.8.7... No package files given... Grabbing a set. Traceback (most recent call last): File "/usr/bin/emerge", line 1879, in ? if 1==unmerge(myaction, myfiles): File "/usr/bin/emerge", line 1531, in unmerge retval=portage.unmerge(mysplit[0],mysplit[1],portage.root,unmerge_action no in ["clean","prune"]) File "/usr/lib/python2.2/site-packages/portage.py", line 1920, in unmerge mylink.unmerge(trimworld=mytrimworld) File "/usr/lib/python2.2/site-packages/portage.py", line 4176, in unmerge pkgfiles=self.getcontents() File "/usr/lib/python2.2/site-packages/portage.py", line 4103, in getcontents mylines=myc.readlines() IOError: [Errno 21] Is a directory Expected Results: unmerge successful Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-ck6) ================================================================= System uname: 2.4.20-ck6 i686 AMD Athlon(tm) Processor ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-tbird -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=athlon-tbird -O2 -pipe" DISTDIR="/home/bservais/temp/gentoo" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="ftp.snt.utwente.nl/pub/linux/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/bservais/.portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 apm foomaticdb mad mikmod nls quicktime xv zlib gdbm berkdb slang readline guile sdl tcpd esd ldap snmp cdr X opengl gtk gtk2 gnome -alsa -kde -arts qt qtmt matrox mmx 3dnow sse.3dnow cups bonobo gb gtkhtml motif tcltk aalib imlib imlib2 ncurses svga lcms gif png jpeg tiff avi mpeg oss dvd xmms oggvorbis flash encode pam ssl crypt mozilla spell truetype xml xml2 pdflib tetex java perl python libwww libg++ samba gpm acpi4linux"
Well... Either /var/db/pkg/x11-themes/psi-themes-0.8.7/CONTENTS is a directory, or you have some FS corruption. I'd guess the latter.
as the fs as been checked a lot of times since I first encountered this problem, the FS corruption was not the right guess... I remove the directory /var/db/pkg/x11-themes/psi-themes/CONTENTS and was finaly able to get rid of the package... Thanks for your help