Re: All Known Bugs Fixed [TM]
| From: | Greg Beaver | Date: | Tue, 22 Feb 2005 16:34:50 +0000 |
| Subject: | Re: All Known Bugs Fixed [TM] | ||
| References: | 1 2 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-2520@lists.php.net to get a copy of this message | ||
bertrand Gugger wrote:
Greg Beaver wrote:Here's details: PEAR 1.4.0 uses a dependency database in addition to the registry. The only way to conserve memory is to drop the dependency database, which will then destroy all of the dependency validation built into 1.4.0, rendering it completely useless. It should be noted that PEAR 1.3.5 and earlier have some hidden and quite serious flaws in dependencies, particularly on uninstall, that cannot be fixed without the dependency database. The dependency database itself is quite compact (something like 16k for my 100 or so installed packages), but generation requires reading in each package's registry, converting to package.xml 2.0 format and extracting the dependencies from them. I may be able to write a system that only converts the dependencies, but I would classify this as an optimization for 1.4.0a2, not a critical bug for 1.4.0a1. Besides, users with an 8M limit can't install packages like phpDocumentor either, this is not a new problem with 1.4.0a1, memory usage is simply growing with the complexity of packages. I am happy - no, excited - to do everything possible to make PEAR more efficient, but my first concern at this point is making it robust. Optimization is always secondary to functionality.In the mean time there are some questions I have about how we should go about things.Memory usage ? 8M should stay a limit. Not everybody may come around.
No, fortunately I thought of this :). External channels are fully allowed to provide their own validation packages if they dislike the default validator. In addition, most of the version validation is warnings, instead of errors. In fact, external packages can provide their own rules for naming packages, or even make requirements for the structure of notes (god help their users though :) - all of this is provided by PEAR_Validate.Is there any PEAR usage outside of the handling of package uploads I should know about?How is it with external projects as Horde or Savant using pear ? (I don't know the other :) Will they need to conform the versioning scheme from pear ?
Will ever the old and new formats of package.xml coexist ? Should a new pacg deliver both to stay reachable by only 1.3 people ?Yes! I also thought of this :). If you are interested, open up http://pear.chiaraquartet.net/PEAR-1.4.0a1-test.tgz or gunzip tar -xvf it. You'll notice right away that the root contents are: PEAR-1.4.0a1/ package.xml package2.xml package2.xml is the contents of package2.xml from pear-core/ package.xml is the contents of package-PEAR.xml from pear-core/ PEAR 1.4.0a1 is the first package to take advantage of the possibility of packaging with an older package.xml and a newer package.xml 2.0 format. This means you can maintain BC for lazy adopters, while providing full forward compatibility for early adopters. Greg