First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 98956
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: PHP Bugs <php-bugs@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Nikolas 'Atrus' Coukouma <otto@atrus.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 98956 depends on: Show dependency tree
Bug 98956 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-07-13 21:57 0000
After upgrading PHP, I discovered pear was no longer installed. So, I learned
that I needed to emerge 1.3.5-r1 to get it back. Minor problem: -r1 assumes PEAR
is present if it has a version number:

        if has_version "dev-php/PEAR-PEAR"; then
                install_pear_without_bootstrap
        else
                bootstrap_pear
                install_pear_after_bootstrap
        fi

This looks decent, but upgrading PHP causes /usr/bin/pear to be removed
(multiple packages owning the same file is ugly), so the when -r1 tries to
install_pear_without_bootstrap, it fails miserably. I think the safest check is
simply whether or not the pear script exists:

        if (-x /usr/bin/pear); then
                install_pear_without_bootstrap
        else
                bootstrap_pear
                install_pear_after_bootstrap
        fi

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

------- Comment #1 From Jakub Moc (RETIRED) 2005-07-14 01:10:15 0000 -------
(In reply to comment #0)
> This looks decent, but upgrading PHP causes /usr/bin/pear to be removed
> (multiple packages owning the same file is ugly), so the when -r1 tries to
> install_pear_without_bootstrap, it fails miserably. 

Please, post the error messages you get you get when _not_ boostrapping.

------- Comment #2 From Nikolas 'Atrus' Coukouma 2005-07-14 03:05:52 0000 -------
Steps to reproduce:
1. emerge =dev-php/php-5.0.3-r1
2. emerge ">dev-php/php-5.0.3-r1"
3. emerge =dev-php/PEAR-PEAR-1.3.5-r1


>>> Unpacking source...
>>> Unpacking Archive_Tar-1.2.tgz to /var/tmp/portage/PEAR-PEAR-1.3.5-r1/work
tar: A lone zero block at 163
>>> Unpacking Console_Getopt-1.2.tgz to /var/tmp/portage/PEAR-PEAR-1.3.5-r1/work
tar: A lone zero block at 27
>>> Unpacking XML_RPC-1.3.1.tgz to /var/tmp/portage/PEAR-PEAR-1.3.5-r1/work
tar: A lone zero block at 236
>>> Unpacking PEAR-1.3.5.tgz to /var/tmp/portage/PEAR-PEAR-1.3.5-r1/work
tar: A lone zero block at 1088
>>> Source unpacked.
>>> Test phase [not enabled]: dev-php/PEAR-PEAR-1.3.5-r1

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

!!! ERROR: dev-php/PEAR-PEAR-1.3.5-r1 failed.!!! Function
install_pear_without_bootstrap, Line 101, Exitcode 127


Tested fix:
-       if has_version "dev-php/PEAR-PEAR"; then
+       if -x /usr/bin/pear; then

------- Comment #3 From Jakub Moc (RETIRED) 2005-07-14 03:19:23 0000 -------
You forgot to reopen... 

------- Comment #4 From Sebastian Bergmann (RETIRED) 2005-07-14 23:00:47 0000 -------
Fixed in CVS.

First Last Prev Next    No search results available      Search page      Enter new bug