I merged php-5.0.3 without libxml being installed (version 1 not 2). The merge went through fine, no complaints, but /usr/bin/pear was missing. Next I emerged libxml then php. This time it complained left and right about my USE flags, which I proceeded to fix up in /etc/portage/package.use. When I had them right, the merge went through fine. This seems like a trap for the unwary... Merging php without libxml on the system results in pure brokenness.
i.e. there is an environmental dependency in php that isn't called out in the ebuild, so you can get different things depending on the system where you install php.
Hi, /usr/bin/pear is now supplied by the dev-php/PEAR-PEAR package, instead of the php packages. Best regards, Stu
> /usr/bin/pear is now supplied by the dev-php/PEAR-PEAR package, instead of the > php packages. When I try install PEAR-PEAR, I got error '/usr/portage/eclass/php-pear.eclass: line 49: pear: command not found': # emerge -pv PEAR-PEAR These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] dev-php/PEAR-XML_RPC-1.1.0 12 kB [ebuild N ] dev-php/PEAR-Archive_Tar-1.3.1 14 kB [ebuild N ] dev-php/PEAR-Console_Getopt-1.2 3 kB [ebuild N ] dev-php/PEAR-PEAR-1.3.5 105 kB Total size of downloads: 136 kB ... # emerge PEAR-PEAR Calculating dependencies ...done! >>> emerge (1 of 4) dev-php/PEAR-XML_RPC-1.1.0 to / ... ... 10:37:59 (26.50 KB/s) - `XML_RPC-1.1.0.tgz' saved [12,596/12,596] >>> md5 files ;-) PEAR-XML_RPC-1.1.0.ebuild >>> md5 files ;-) PEAR-XML_RPC-1.2.2.ebuild >>> md5 files ;-) ChangeLog >>> md5 files ;-) metadata.xml >>> md5 files ;-) files/digest-PEAR-XML_RPC-1.1.0 >>> md5 files ;-) files/digest-PEAR-XML_RPC-1.2.2 >>> md5 src_uri ;-) XML_RPC-1.1.0.tgz >>> Unpacking source... >>> Unpacking XML_RPC-1.1.0.tgz to /var/tmp/portage/PEAR-XML_RPC-1.1.0/work tar: Нулевой блок в 102 >>> Source unpacked. >>> Test phase [not enabled]: dev-php/PEAR-XML_RPC-1.1.0 >>> Install PEAR-XML_RPC-1.1.0 into /var/tmp/portage/PEAR-XML_RPC-1.1.0/image/ category dev-php /usr/portage/eclass/php-pear.eclass: line 49: pear: command not found !!! ERROR: dev-php/PEAR-XML_RPC-1.1.0 failed. !!! Function php-pear_src_install, Line 49, Exitcode 127 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message.
This bug is probably pointless now, the ebuild is not even in portage any more... Problems with PEAR-PEAR are being dealt with in Bug 95931.
Closing bug. This package doesn't provide /usr/bin/pear.