Re: External Packages x PEAR

From: Date: Wed, 30 Jun 2004 16:41:53 +0000
Subject: Re: External Packages x PEAR
References: 1 2 3 4 5  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-1558@lists.php.net to get a copy of this message
On Wed, Jun 30, 2004 at 12:53:54PM +0200, Tomas V.V.Cox wrote: > Adam Gołębiowski wrote: > >On Tue, Jun 29, 2004 at 08:50:03PM +0200, Tomas V.V.Cox wrote: > > > >We also have a set of two rather simple > >scripts for generating dependencies based on package.xml file. Uhm, > >actually these scripts are finished, and they work when run from command > >line, but when called while building package they are terminated with > >some strange error... still to be figured out. > > I remember long time ago a guy (maybe from PLD) doing that by "grepping" > the XML in a bash script. Yeah, we had that. Now we have as a set of two simple perl scripts... > In case you're interested on how to do that > natively, a quick example: > > $ php -r 'include "PEAR/Common.php"; $c=new PEAR_Common; > $i=$c->infoFromAny("./package.xml"); print_r($i["deps"]);' Oh, didn't now that. Thanks. I will think of replacing our dependencies generator with something native. But I don't how the rest of the team will react on such idea. We'll discuss this. > >Second, what would be the benefit? > > It's relative dangerous to install PEAR packages without the pear > installer. Mostly for: > > 1) PEAR packages do replacements in files We track these. > 2) The user may want to install the packages shipped with PLD, but > upgrade or install newer ones with the "pear installer". If you don't > register it's deps, would hardly work. Oh, the same happens if user installs libfoo by himself (by compiling from sources). There wouldn't be a clue about it in RPM database and an attempt to install anything that depends on it would fail. > 3) In general using the pear installer will make your life more easy in > the future. But it's not that easy to incorporate it into our infrastructrure. The same applies to CPAN. > I'd be glad to hear suggestions and improvements for the RPM generation, > was coded mostly for helping Linux distributions, and anyone (AFAIK) is > using it, spending a lot of efforts on home-made package converters with > IMHO not very high quality results. But... making rpm conflicts with what you wrote in point 2) :) -- http://www.mysza.eu.org/ | Everybody needs someone sure, someone true, PLD Linux developer | Everybody needs some solid rock, I know I do.

« previous php.pear.qa (#1558) next »