Be careful of packages installed with PEAR 1.4.4 or older when uninstalling
| From: | Gregory Beaver | Date: | Mon, 18 Dec 2006 21:08:41 +0000 |
| Subject: | Be careful of packages installed with PEAR 1.4.4 or older when uninstalling | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-26151@lists.php.net to get a copy of this message | ||
Hi all,
Recently, a curious bug was opened at pear.php.net for the PEAR package
(http://pear.php.net/bugs/bug.php?id=9639
<http://pear.php.net/bugs/bug.php?id=9639>).
In it, a user was able to
uninstall the Structures_DataGrid
<http://pear.php.net/Structures_DataGrid>
package, even though all of
its subpackages were installed, which should have prevented
uninstallation. As you can see in the comments, a test of installation
followed by uninstallation using the latest PEAR worked with flying
colors. Unfortunately, the package was installed with an older PEAR version.
This commit to PEAR/DependencyDB.php[1]
<http://cvs.php.net/viewvc.cgi/pear-core/PEAR/DependencyDB.php?r1=1.28&r2=1.29>
contains a subtle fix that allows successful registering all of a
package's dependencies for uninstallation, something that was not
available until PEAR 1.4.5. If you have installed any complex packages
using PEAR 1.4.4 or earlier, I highly recommend that you re-install them
using PEAR 1.5.0RC2, or the 1.5.0 stable which will be released shortly
after the new year (barring any new bugs in 1.5.0RC2). To do this, you
need not re-download all of the packages, simply run:
pear install --register-only --force <Packagename>
Where <Packagename> is the name of every package you installed with an
older PEAR, or if you're not sure, the packages shown in when running
"pear list"
This could be a huge pain in the rear end for some, and is why one of
the must-have features I plan for PEAR 2.0 is a more robust registry
that will allow reconstruction and repair without any of this monkey
business. Stay tuned for details on this and other enhancements planned.
Thanks,
Greg
P.S. I posted a copy of this message on my blog at
http://greg.chiaraquartet.net
[1]
http://cvs.php.net/viewvc.cgi/pear-core/PEAR/DependencyDB.php?r1=1.28&r2=1.29