After following the php upgrade guide and installing dev-lang/php I try to emerge pear. This failes for some reason: These are the packages that I would merge, in order: Calculating world dependencies ...done! [ebuild N ] dev-php/PEAR-PEAR-1.3.6 26 kB [ebuild N ] dev-php/PEAR-Archive_Tar-1.3.1-r1 0 kB [ebuild N ] dev-php/PEAR-XML_RPC-1.4.4 23 kB [ebuild N ] dev-php/PEAR-Console_Getopt-1.2-r1 0 kB [ebuild N ] dev-php/PEAR-DB-1.7.6-r1 121 kB Total size of downloads: 172 kB Do you want me to merge these packages? [Yes/No] y >>> emerge (1 of 5) dev-php/PEAR-PEAR-1.3.6 to / >>> Downloading ftp://ftp.nluug.nl/pub/os/Linux/distr/gentoo/distfiles/XML_RPC- 1.4.1.tgz --10:57:25-- ftp://ftp.nluug.nl/pub/os/Linux/distr/gentoo/distfiles/XML_RPC- 1.4.1.tgz => `/usr/portage/distfiles/XML_RPC-1.4.1.tgz' Resolving ftp.nluug.nl... 192.87.102.36 Connecting to ftp.nluug.nl|192.87.102.36|:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD /pub/os/Linux/distr/gentoo/distfiles ... done. ==> PASV ... done. ==> RETR XML_RPC-1.4.1.tgz ... done. Length: 26,941 (26K) (unauthoritative) 100% [=============================================================================== ===>] 26,941 145.95K/s 10:57:26 (145.79 KB/s) - `/usr/portage/distfiles/XML_RPC-1.4.1.tgz' saved [26941] >>> md5 files ;-) PEAR-PEAR-1.3.6-r1.ebuild >>> md5 files ;-) PEAR-PEAR-1.3.6.ebuild >>> md5 files ;-) PEAR-PEAR-1.3.5-r1.ebuild >>> md5 files ;-) PEAR-PEAR-1.3.5.ebuild >>> md5 files ;-) files/digest-PEAR-PEAR-1.3.5 >>> md5 files ;-) files/digest-PEAR-PEAR-1.3.6 >>> md5 files ;-) files/digest-PEAR-PEAR-1.3.5-r1 >>> md5 files ;-) files/digest-PEAR-PEAR-1.3.6-r1 >>> md5 src_uri ;-) Archive_Tar-1.3.1.tgz >>> md5 src_uri ;-) Console_Getopt-1.2.tgz >>> md5 src_uri ;-) XML_RPC-1.4.1.tgz >>> md5 src_uri ;-) PEAR-1.3.6.tgz * * Using dev-lang/php-4.4.1-r2 * * Checking for required PHP feature(s): >>> Unpacking source... >>> Unpacking Archive_Tar-1.3.1.tgz to /var/tmp/portage/PEAR-PEAR-1.3.6/work tar: A lone zero block at 168 >>> Unpacking Console_Getopt-1.2.tgz to /var/tmp/portage/PEAR-PEAR-1.3.6/work tar: A lone zero block at 27 >>> Unpacking XML_RPC-1.4.1.tgz to /var/tmp/portage/PEAR-PEAR-1.3.6/work tar: A lone zero block at 254 >>> Unpacking PEAR-1.3.6.tgz to /var/tmp/portage/PEAR-PEAR-1.3.6/work tar: A lone zero block at 1089 >>> Source unpacked. >>> Test phase [not enabled]: dev-php/PEAR-PEAR-1.3.6 >>> Install PEAR-PEAR-1.3.6 into /var/tmp/portage/PEAR-PEAR-1.3.6/image/ category dev-php >>> dobin: making pear executable... WARNING: running in safe mode requires that all files created be the same uid as the current script. PHP reports this script is uid: 0, and current user is: root could not create directory: /var/tmp/portage/homedir !!! ERROR: dev-php/PEAR-PEAR-1.3.6 failed. !!! Function install_pear_after_bootstrap, Line 107, Exitcode 1 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Help me :)
doing # rm -rf /var/tmp/portage and retrying doesn't help. After the failing emerge, this is the content of /var/tmp/portage: # ll /var/tmp/portage total 0 drwxr-xr-x 6 portage portage 240 Nov 10 11:28 PEAR-PEAR-1.3.6 drwxrws--- 2 portage portage 48 Nov 10 11:23 homedir
Same using apache mpm-worker dev-lang/php-5.0.0.5-r4 hardenedphp
Solution: USE="-hardenedphp" emerge dev-lang/php
Bug is duplicate of http://bugs.gentoo.org/show_bug.cgi?id=116867
*** Bug 116867 has been marked as a duplicate of this bug. ***
The new revisions of dev-lang/php are in the tree, wich should fix this by using the updated Hardened-PHP patch (0.4.8). Best regards, CHTEKK.