When cleaning up my system, I (or emerge -v depclean) want to delete php-core-4.3.4, but it complains about missing php-2.eclass. Reproducible: Always Steps to Reproduce: 1. emerge -C php-core 2. 3. Actual Results: # emerge -C php-core dev-php/php-core selected: 4.3.4 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 dev-php/php-core-4.3.4... No package files given... Grabbing a set. /usr/sbin/ebuild.sh: line 1101: /usr/portage/eclass/php-2.eclass: No such file or directory !!! ERROR: dev-php/php-core-4.3.4 failed. !!! Function inherit, Line 1102, Exitcode 1 !!! died sourcing /usr/portage/eclass/php-2.eclass in inherit() !!! FAILED prerm: 1 Expected Results: cleaning out php-core # emerge info Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040619-r1, 2.6.7-gentoo) ================================================================= System uname: 2.6.7-gentoo i686 AMD Athlon(tm) XP 1800+ Gentoo Base System version 1.5.2 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fforce-addr" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fforce-addr" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc nostrip sandbox" GENTOO_MIRRORS="ftp://ftp.linux.ee/pub/gentoo/distfiles/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://194.83.57.15/sites/www.ibiblio.org/gentoo/ http://ftp.du.se/pub/os/gentoo " MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage" USE="3dnow X aalib acpi alsa apache2 apm arts avi berkdb bonobo cdr crypt cups curl dga directfb dvd encode esd evo fbcon flash foomaticdb gb gd gdbm gif gnome gnomedb gpm gtk gtk2 gtkhtml guile imap imlib imlib2 java jpeg kde ldap libg++ libgda libwww mad maildir mbox mcal mikmod mmx motif mozilla mpeg mysql nas ncurses nls oggvorbis opengl oss pam pdflib perl plotutils png postgres ppds python qt quicktime readline ruby samba scanner sdl slang slp spell sse ssl svga tcltk tcpd tiff truetype usb wmf x86 xface xml xml2 xmms xv zlib"
php-core has been depreciated for a long time. The php ebuilds have stated that you need to emerge unmerge php-core since php-4.3.5 has been released because of the eclass being depreicated as well as the php-core setup being depreciated. We can possibly temporaily pull the php-2.eclass out of the CVS attic so you can unmerge it.
http://www.gentoo.org/cgi-bin/viewcvs.cgi/eclass/php-2.eclass Go grab that file from CVS (click the download button) and save it as /usr/portage/eclass/php-2.eclass and then unmerge php-core then run emerge sync and then re-emerge all your php stuff.
Thanks, getting the php-2.eclass from CVS solved the unmerging problem for me.