Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 82841

Summary: php-5.0.3 drops pear when libxml isn't installed
Product: Gentoo Linux Reporter: Aron Griffis (RETIRED) <agriffis>
Component: Current packagesAssignee: PHP Bugs <php-bugs>
Status: RESOLVED INVALID    
Severity: normal CC: spam
Priority: High    
Version: unspecified   
Hardware: IA64   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 60438    

Description Aron Griffis (RETIRED) gentoo-dev 2005-02-21 10:04:16 UTC
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.
Comment 1 Aron Griffis (RETIRED) gentoo-dev 2005-02-21 10:08:54 UTC
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.
Comment 2 Stuart Herbert (RETIRED) gentoo-dev 2005-05-31 15:08:59 UTC
Hi,

/usr/bin/pear is now supplied by the dev-php/PEAR-PEAR package, instead of the
php packages.

Best regards,
Stu
Comment 3 Roman Karshiev 2005-06-13 00:02:43 UTC
> /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: &#1053;&#1091;&#1083;&#1077;&#1074;&#1086;&#1081; &#1073;&#1083;&#1086;&#1082; &#1074; 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.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-06-29 14:31:33 UTC
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. 
Comment 5 Stuart Herbert (RETIRED) gentoo-dev 2005-08-25 00:45:30 UTC
Closing bug.  This package doesn't provide /usr/bin/pear.