Re: PEAR Package Installer
| From: | Tomas V.V.Cox | Date: | Wed, 23 Jan 2002 17:23:25 +0000 |
| Subject: | Re: PEAR Package Installer | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-4122@lists.php.net to get a copy of this message | ||
El mié, 23-01-2002 a las 01:13, Vincent Blavet escribió:
> I notice several problems with 'pear install package-archive.tgz'
>
> When a package does not have a specified 'baseinstalldir', the files are installed in
> pear/ and not in pear/PACKAGE_PATH. So a badly formatted package.xml will give a incorrect package
> install.
>
> My question is : does a package may have missing 'baseinstalldir' information ?
Yes, some packages may need to install files in the BASE_DIR.
> [extract from a package.xml file]
> <filelist>
> <dir>/</dir>
> <file>Crypt_Rc4.php</file>
> <file>Crypt_NumberID.php</file>
> </filelist>
>
> or should it always have one (even if the value is null) :
> <filelist>
> <dir name="/" baseinstalldir="">
> <file>Crypt_Rc4.php</file>
> <file>Crypt_NumberID.php</file>
> </dir>
> </filelist>
>
> In the second case we may do a check in Install.php (somewhere near line 127) in order to
> refuse a file install when the install dir is missing.
>
> However I also saw files with :
> <FileList>
> <File>HTML/IT.php</File>
> <File>HTML/ITX.php</File>
> <File>HTML/IT_Error.php</File>
> </FileList>
>
> So is there a strick rule ? ... (i'm not very strong in reading .dtd files)
Most packages hasn't a well formated package.xml. Some because are old,
some because of the mising documentation, some because people didn't
take care on it.
Please read that document about the PEAR Installer and the package.xml
at:
http://cvs.php.net/cvs.php/pearweb/doc/pear_package_manager.txt
> BTW there is also a problem with extracting the archive while under Window, due to a bug in
> Archive_Tar. I will commit a correction in the coming days.
Great.
Tomas V.V.Cox