When php (cli) and mod_php4 are both emerged (because the ebuild said php (cli) could not be used with a webserver), unmerging mod_php4 (and probably vice versa) leads to removal of the files shared between both (Them sharing the same files could be an actualy problem maybe? As you could have different versions of the 2 types of php). /usr/include/php and things like that were fully removed. Reproducible: Always Steps to Reproduce: 1. Emerge php and mod_php 2. Unemerge mod_php (or probably php) Actual Results: After 1. php and mod_php shared files that could be different After 2. shared files got deleted (ie. /usr/include/php/*) Expected Results: Fix for 1 and 2. Different locations for the include files and other of mod_php and php. Fix for 2. Leave the shared files there if one is still "merged". Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) ================================================================= System uname: 2.4.21-rc3 i586 Pentium 75 - 200 GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss apm arts avi encode gpm gtk libg++ mad mikmod motif mpeg nls oggvorbis opengl quicktime sdl spell svga xmms xv gdbm berkdb slang readline pam python -X -gnome -kde -java -mmx -3dnow -qt -apache2 crypt cups gif innodb imlib jpeg libwww maildir memlimit mysql ncurses oav pdflib portage php png plotutils perl samba ssl tcpd tiff truetype xml xml2 zlib gd" COMPILER="gcc3" CHOST="i586-pc-linux-gnu" CFLAGS="-march=pentium -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=pentium -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
We need a php-common ebuild, that provides this stuff.
actually i'd mark this as a duplicate of a portage bug ... portage doesnt properly detect when you emerge something new and then emerge the older version ... happens with CD installs and with empty directories ... for now i'd suggest kludging it with a `touch <files>` in pkg_postinst and mark this as a dup of portage
fixed as of the 4.3.4-r1 series.