I've got both PHP4 and PHP5 installed using the procedures outlined by the Gentoo PHP team. Unfortunately, Portage seems to miss any PHP4 updates or USE flag changes when running "emerge -u world" or "emerge -u --deep --newuse world". Only a manual "emerge -u =dev-lang/php-4*" updates PHP4. PHP5 is updated just fine, though. Case in point: vivaldi ~ # USE="-cgi" emerge -puv --newuse world These are the packages that I would merge, in order: Calculating world dependencies ...done! [ebuild R ] dev-lang/php-5.1.2 -adabas -apache -apache2 -bcmath +berkdb -birdstep +bzip2 -calendar -cdb -cgi* -cjk +cli +crypt +ctype -curl -curlwrappers -db2 -dbase -dbmaker -debug +discard-path -doc -empress -empress-bcs -esoob -exif +fastbuild -fdftk -filepro -firebird -flatfile +force-cgi-redirect -frontbase +ftp +gd -gd-external +gdbm -gmp +hardenedphp -hash -hyperwave-api -iconv -imap -informix -inifile -interbase -iodbc -ipv6 -java-external -kerberos -ldap -libedit -mcve +memlimit -mhash -ming -msql -mssql +mysql +mysqli +ncurses +nls -oci8 -oci8-instant-client -odbc -pcntl +pcre -pdo -pdo-external +pic +posix -postgres -qdbm +readline -recode -reflection -sapdb -sasl +session -sharedext -sharedmem +simplexml -snmp +soap +sockets -solid +spell +spl -sqlite +ssl -sybase -sybase-ct -sysvipc -threads -tidy +tokenizer +truetype -vm-goto -vm-switch -wddx +xml -xmlreader -xmlrpc -xmlwriter -xpm +xsl -yaz -zip +zlib 0 kB Total size of downloads: 0 kB vivaldi ~ # USE="-cgi" emerge -puv --newuse =dev-lang/php-4* These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] dev-lang/php-4.4.2 -adabas -apache -apache2 -bcmath +berkdb -birdstep +bzip2 -calendar -cdb -cgi* -cjk +cli +crypt +ctype -curl -db2 -dbase -dbmaker -dbx -debug +discard-path -doc -empress -empress-bcs -esoob -exif +expat +fastbuild -fdftk -filepro -firebird -flatfile +force-cgi-redirect -frontbase +ftp +gd -gd-external +gdbm -gmp +hardenedphp -hyperwave-api -iconv -imap -informix -inifile -interbase -iodbc -ipv6 -java-external -java-internal -kerberos -ldap -libedit -mcal -mcve +memlimit -mhash -ming -mnogosearch -msql -mssql +mysql +ncurses +nls -oci8 -oci8-instant-client -odbc -oracle7 -overload -ovrimos -pcntl +pcre -pfpro +pic +posix -postgres +readline -recode -sapdb +session -sharedext -sharedmem -snmp +sockets -solid +spell -sqlite +ssl -sybase -sybase-ct -sysvipc -threads +tokenizer +truetype -wddx +xml -xmlrpc -xpm +xsl -yaz -zip +zlib 0 kB Total size of downloads: 0 kB vivaldi ~ # grep php /etc/portage/package.use =dev-lang/php-4* cgi discard-path hardenedphp mysqli =dev-lang/php-5* cgi discard-path hardenedphp mysqli www-servers/lighttpd fastcgi php vivaldi ~ # grep php /var/lib/portage/world dev-lang/php I've got the same quirk on three different systems.
Sorry, known portage quirk... *** This bug has been marked as a duplicate of 4698 ***