#25326 [Opn]: When Upgrading PEAR modules, Mail::Mail needed Net_SMTP.

From: Date: Sun, 31 Aug 2003 06:39:17 +0000
Subject: #25326 [Opn]: When Upgrading PEAR modules, Mail::Mail needed Net_SMTP.
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-20919@lists.php.net to get a copy of this message
ID: 25326 User updated by: ler at lerctr dot org Reported By: ler at lerctr dot org Status: Open Bug Type: PEAR related Operating System: UnixWare 7.1.3UP2 PHP Version: 4.3.3 New Comment: Given my stuff is already updated, I can't test real easily. I wish I could. LER Previous Comments: ------------------------------------------------------------------------ [2003-08-31 01:23:07] cellog@php.net 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())); ------------------------------------------------------------------------ [2003-08-31 00:42:18] cellog@php.net Perhaps the install script could utilize the new --onlyreqdeps option added in CVS, so that installed packages will always have their required dependencies installed/upgraded? That should fix this issue nicely. Greg ------------------------------------------------------------------------ [2003-08-30 16:16:20] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25326&edit=1

« previous php.pear.dev (#20919) next »