Re: PEAR channel server for applications and libraries outside PEAR
| From: | Sebastian Nohn | Date: | Fri, 01 Jun 2007 16:58:42 +0000 |
| Subject: | Re: PEAR channel server for applications and libraries outside PEAR | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-46941@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
> On 6/1/07, Sebastian Nohn <sebastian@nohn.net> wrote:
>> Greg Beaver wrote:
>> > Sebastian Nohn wrote:
>> >> Hi Christian,
>> >>
>> >> Christian Weiske wrote:
>> >>
>> >>> PEAR is the best method to distribute PHP libraries, and since it
>> also supports multiple channels, also a very convenient way to
>> distribute PHP applications.
>> >>> Some apps already have their own channel server (e.g. Geeklog,
>> http://pear.geeklog.net/ ), other apps and libs do have
>> PEAR-installable packages, but don't want to set up and maintain a
>> complete channel server (e.g. OpenID libraries,
>> http://www.openidenabled.com/openid/libraries/php ).
>> >>>
>> >>> The ideal place for those projects would be a dedicated PEAR
>> channel server that is open for everyone. pearified.com has been
>> started as such a project, but the lead, Clay Loveless, does not
>> respond to any emails.
>> >>> Suggestions, ideas, volunteers?
>> >> I think, first the pear command line tool should be able to perform
>> all
>> >> end user commands in a comfortable way on different channels.
>> >
>> > pear config-set default_channel whatever.com
>> >
>> > then all end user commands will work identically to the way they work
>> > for pear.php.net.
>> >
>> > (This has worked since PEAR 1.4.0 FYI)
>>
>> Do you call that comfortable?
>>
>
> THere's always pear upgrade channel://package as well. It is a reality
> that multiple channels can have packages names the same, hence the
> need for disambiguation via the channel name.
# pear upgrade phpunit/phpunit
Nothing to upgrade
# pear upgrade phpunit://phpunit
Cannot initialize 'phpunit://phpunit', invalid or missing package file
Package "phpunit://phpunit" is not valid
upgrade failed
# pear upgrade http://pear.phpunit.de/get/PHPUnit-3.0.6.tgz
downloading PHPUnit-3.0.6.tgz ...
Starting to download PHPUnit-3.0.6.tgz (100,140 bytes)
......................done: 100,140 bytes
WARNING: channel "pear.phpunit.de" has updated its protocols, use
"channel-update pear.phpunit.de" to update
Did not download optional dependencies: pear/Image_GraphViz, pear/Log,
pear/Testing_Selenium, use --alldeps to download automatically
phpunit/PHPUnit can optionally use package "pear/Image_GraphViz"
(version >= 1.2.1)
upgrade ok: channel://pear.phpunit.de/PHPUnit-3.0.6
That is not very intuitive. What if I want to upgrade the whole channel?
Or list all packages in a channel? Or just upgrade all packages, no
matter what channel they are in?
- Sebastian