Re: External Packages x PEAR

From: Date: Wed, 30 Jun 2004 22:53:27 +0000
Subject: Re: External Packages x PEAR
References: 1 2 3 4 5 6  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-1560@lists.php.net to get a copy of this message
Adam Gołębiowski wrote:
On Wed, Jun 30, 2004 at 12:53:54PM +0200, Tomas V.V.Cox wrote:
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.
Will be glad if you contribute the code for generating them. As well I could help you on that if you give some output samples (yes, lazy enough for trying to avoid reading RPM Maximun ;)
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.
Don't you feel like reiventing the PEAR installer in perl or bash? ;)
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.
Yes, that's true, but as we will always faster generating PEAR packages than you (you know, we code them), I see a place for a nice "living together" systems. Apart from that, our generated .spec file does not actually install any file, we leave that to rpm. Have you take a look at it?
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.
In not too far, we'll get pre/post scripts or a real dependency db, for saying some stuff that will give you more "troubles".
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) :)
I doubt that could be a problem if we get PEAR installer to register the dep in the rpm db, using --justdb rpm option or something like so. Anyway, was just trying to help you, for us would be much more easy to just drop RPM support if it tends to be useless for people like you. Tomas V.V.Cox

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