|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-08-30 16:16 UTC] ler at lerctr dot org
Description: ------------ When I ran the make install for 4.3.3 of PHP, it tried to upgrade all my Installed PEAR modules (Good!), but it does them in Alphabetical order, which is a problem for Mail::Mail, as Mail::Mail needs the upgraded Net_SMTP, which hadn't been installed yet. On the 2nd make install (compile issues), it worked fine. Can the install script be made smarter to deal with this issue? Thanks, LER PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 18:00:02 2025 UTC |
This patch, when used with the CVS version of PEAR (1.3b1) should fix the problem, but as simple as it looks, some serious testing is required. The patch will download and install all required dependencies, or upgrade them if they are already installed. There are some possible side effects from this that result from the increased dependence on downloading. I can't think of anything too serious offhand, but I don't have much experience installing PEAR using the compile --with-pear method. In any case, try out this patch, with the CVS version of PEAR (checkout php-src/pear, and pear upgrade package-PEAR.xml). Let us know if it fixes the problem. Regards, Greg Index: pear/install-pear.php =================================================================== RCS file: /repository/php-src/pear/install-pear.php,v retrieving revision 1.15 diff -u -r1.15 install-pear.php --- pear/install-pear.php 14 Aug 2003 20:14:33 -0000 1.15 +++ pear/install-pear.php 31 Aug 2003 06:19:05 -0000 @@ -86,6 +86,7 @@ $old_ver = $reg->packageInfo($package, 'version'); if (version_compare($new_ver, $old_ver, 'gt')) { $options['upgrade'] = true; + $options['onlyreqdeps'] = true; $err = $installer->install($instfile, $options); if (PEAR::isError($err)) { $ui->outputData(sprintf("[PEAR] %s: %s", $package, $err->getMessage()));