Re: conflict with PEAR2 standards and PEAR 1
| From: | Greg Beaver | Date: | Mon, 25 May 2009 23:35:35 +0000 |
| Subject: | Re: conflict with PEAR2 standards and PEAR 1 | ||
| References: | 1 2 | Groups: | php.pear.core |
| Request: | Send a blank email to pear-core+get-8438@lists.php.net to get a copy of this message | ||
Christian Weiske wrote:
> Hi Greg,
>
>
>
>> I'm finding it nearly impossible to reconcile a difference between
>> PEAR2 and PEAR. As you know, the name of the source directory for
>> role="php" in PEAR is "php", and in PEAR is "src."
>>
>> What this means is that it is actually impossible to install PEAR 1.x
>> packages alongside PEAR packages, as Pyrus will use the hard-coded
>> src/ directory for role=php, and this is not editable by design, as
>> we need to be able to rely upon this for role="www" files to be able
>> to locate the role="php" and role="data" files.
>>
>
> I don't see the problem here; could you elaborate it a bit further?
Yes.
If you install PEAR with the PEAR installer, PEAR.php goes into
/usr/local/lib/php/PEAR.php. Install it with Pyrus, it goes in
/usr/local/lib/src/PEAR.php. So, if you install a package with Pyrus,
the behavior is different. Any attempts to make the behavior the same
result in much more complex code, similar to the cruft that the PEAR
installer has dealing with package.xml 1.0. Frankly, I don't see any
benefit in making the change to src/ aside from cosmetics, and it
introduces much more complexity into the installer and thus much higher
potential for bugs and wtf errors.
It also means that we can't simply create a mapper script for Pyrus so
that a "pear" script can call pyrus.phar, because installation will
suddenly start ignoring the php_dir configuration variable and putting
everything into src/. Literally 100% of existing PEAR installations
install into php/, so we will be breaking BC in a rather large way for
the sake of cosmetics.
Does this clarify?
Greg