[php-maint] up-to-date policy for PHP PEAR modules

Gregory Colpart reg at evolix.fr
Mon Sep 17 22:33:15 UTC 2007


On Mon, Sep 17, 2007 at 08:51:04AM +0200, sean finney wrote:
> 
> On Monday 17 September 2007 01:57:21 am Gregory Colpart wrote:
> > http://wiki.debian.org/GregoryColpart/PearPolicyDraft
> 
> a quick comment: most of the stuff on this page really isn't "policy" as much 
> as it's "recommended packaging techniques".  "policy" would be more 
> like "where should the files be placed after installation" etc.

Yes, "policy" is not the correct word. I will now say
"Developer's Reference for packaging PHP PEAR modules" (even I
keep original link PearPolicyDraft on wiki for some days).


> > Feel free to comment it and send me updates by mail or IRC.
> > The main idea is to have similar packaging for all modules to
> > make easier collaborative maintenance. I hope this could also
> > permit to "foo web application" maintainer to ask for new modules
> > instead of packaging and take the responsability to maintain it.
> 
> while you're at it, do you have any thoughts/suggestions for how we should 
> deal with having both debian-packaged pear modules and locally installed pear 
> modules (i.e. pear install foo) on the same system?  in perl they have a 
> solution for this by having multiple directories (i.e. site-perl and vendor), 
> but we currently don't have anything like that for pear, which has always 
> been a problem (and i don't believe this is.

I think /usr/share/php/ should be only for debian-packaged pear
modules and locally installed pear modules should go to
/usr/local/php/ or whatever directory (similar to perl policy).
We should probably change a few things to make easier the deal
between debian-packaged and local pear modules (create empty
/usr/local/php/ dir, set include_path to
'.:/usr/local/php:/usr/share/php' in php.ini, perhaps write a
/usr/bin/pear-local wrapper, etcetera)

Example:

$ pear list
Installed packages, channel pear.php.net:
=========================================
Package          Version State
Archive_Tar      1.3.2   stable
Console_Getopt   1.2.2   stable
Log              1.9.11  stable
PEAR             1.5.4   stable
Structures_Graph 1.0.2   stable

$ sudo pear -d php_dir=/usr/local/php/ install -n -f Config-1.10.11.tgz 
pear/Config can optionally use package "pear/XML_Parser"
pear/Config can optionally use package "pear/XML_Util"
install ok: channel://pear.php.net/Config-1.10.11

$ pear -d php_dir=/usr/local/php/ list
Installed packages, channel pear.php.net:
=========================================
Package Version State
Config  1.10.11 stable


Regards,
-- 
Gregory Colpart <reg at evolix.fr>  GnuPG:1024D/C1027A0E
Evolix - Informatique et Logiciels Libres http://www.evolix.fr/



More information about the pkg-php-maint mailing list