After emerging mod_php, /usr/bin/pear is world-writeable. This has been fixed in the php ebuild, but the problem remains in the mod_php ebuild. What's needed is "chmod 755 /usr/bin/pear" in the pkg_postinst() function (see php ebuild for an example). Reproducible: Always Steps to Reproduce:
committed.
This have to be reopened: output of mod_php-4.3.1-r1 compilation says: ... Installing header files: /tmp/portage/mod_php-4.3.1-r1/image//usr/include/php/ Installing helper programs: /tmp/portage/mod_php-4.3.1-r1/image//usr/bin/ program: phpize program: php-config program: phpextdist Installing build environment: /tmp/portage/mod_php-4.3.1-r1/image//usr/lib/php/build/ mkdir: cannot create directory `/tmp/portage/mod_php-4.3.1-r1/image//usr/lib/php/build': File exists chmod: failed to get attributes of `/tmp/portage/mod_php-4.3.1-r1/image//usr/bin/php/pear': No such file or directory man: strip: ... so, conseguently, on my machine /usr/bin/pear will have permission 777 after the emerge. problem: #fix 15976 chmod 755 ${D}/usr/bin/php/pear is in the WRONG section of the ebuild (src_install instead of pkg_postinstall) solution: move it where Adam originally suggested. please fix. bye, Alessandro