Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95521 - php-5.0.4 ebuild breaks pear
Summary: php-5.0.4 ebuild breaks pear
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-08 18:34 UTC by Jean-Francois Ostiguy
Modified: 2005-06-10 00:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Francois Ostiguy 2005-06-08 18:34:26 UTC
php-5.0.4 ebuild no longer installs pear. After emerging  php-5.0.4 (upgrading
from 5.0.2-r1), base pear installation is removed. A subsequent attempt at
emerging the standalone dev-php/PEAR-PEAR fails because /usr/bin/pear (part of
the base pear installation)  is needed ! 

Reproducible: Always
Steps to Reproduce:
1.emerge =dev-php/php-5.04
2.emerge =dev/PEAR-PEAR
3.

Actual Results:  
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-php/PEAR-PEAR-1.3.5 to /
>>> 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.5-r1
>>> md5 src_uri ;-) PEAR-1.3.5.tgz
>>> Unpacking source...
>>> Unpacking PEAR-1.3.5.tgz to /var/tmp/portage/PEAR-PEAR-1.3.5/work
tar: A lone zero block at 1088
>>> Source unpacked.
>>> Test phase [not enabled]: dev-php/PEAR-PEAR-1.3.5

>>> Install PEAR-PEAR-1.3.5 into /var/tmp/portage/PEAR-PEAR-1.3.5/image/
category dev-php
/usr/portage/eclass/php-pear.eclass: line 49: pear: command not found

!!! ERROR: dev-php/PEAR-PEAR-1.3.5 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.


Expected Results:  
Existing pear installation should remain functional after php update.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-06-08 23:43:53 UTC
Should be fixed, emerge sync and try again.

*** This bug has been marked as a duplicate of 95431 ***
Comment 2 Jean-Francois Ostiguy 2005-06-09 17:43:07 UTC
Sorry but php-5.0.4-r1 does not resolve this issue at all. 

From the last lines of php5-sapi-r2.eclass:

.... 

# PEAR-Installer and phpconfig install the following, so we
        # don't have to
        rm -rf ${D}/usr/bin/{php,phpextdist,phpize,php-config,pear}
        rm -rf ${D}/usr/lib/php/build
        rm -rf ${D}/usr/include/php
...

Once php5-5.0.4-r1 php5-5.0.4-r1 is emerged, /usr/bin/pear is gone. It cannot be
rebuild by emerging the base PEAR package (PEAR-PEAR) because this package also
depends on the presence of /usr/bin/pear

It looks like the new PEAR-PEAR-1.3.5-r1.ebuild is ***required*** to restore
pear, but at the moment this package is masked. php5-5.0.4-r1 cannot be unmasked
if PEAR-PEAR-1.3.5-r1 is masked !


   
PEAR-PEAR 
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-06-10 00:45:15 UTC
(In reply to comment #2)
> Sorry but php-5.0.4-r1 does not resolve this issue at all. 

That
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-06-10 00:45:15 UTC
(In reply to comment #2)
> Sorry but php-5.0.4-r1 does not resolve this issue at all. 

That´s another (already fixed) bug. See Bug 95575.