Re: channels information
| From: | Derick Rethans | Date: | Wed, 17 Dec 2003 21:33:08 +0000 |
| Subject: | Re: channels information | ||
| References: | 1 | Groups: | php.pear.core |
| Request: | Send a blank email to pear-core+get-10@lists.php.net to get a copy of this message | ||
On Mon, 15 Dec 2003, Greg Beaver wrote:
> This also defines a namespace for packages: every package within a
> channel can be automatically installed into a separate location from the
> primary PEAR php directory. For certain cases this will not be
> necessary, such as the PECL channel, which will be devoted to PHP
> extensions that must go into the same directory.
PECL packages are actually just standard PHP extensions which do not go
into the 'PEAR' directory, but the idea is somewhat right :)
> A channel has associated with it:
>
> - A name (PEAR, PECL, Horde)
>
> - A summary, or brief description of what the channel provides
>
> - A master server (http://pear.php.net, http://pecl.php.net,
> http://www.horde.org)
>
> - A possible default installroot ('', '', 'Horde') defining the
> subdirectory that files will be installed in (the Horde Log package will
> be installed in Horde/Log.php, PEAR?s Log package will be installed in
> Log.php. If installroot were 'Grob' the Horde Log package would be
> installed in Grob/Log.php).
I would just make all the current settings also settable for all the
different channels. For example I can think of reasons why I want the
default 'state' of the Horde channel to be set to 'beta' and the PEAR
channel to 'stable'.
> Manual channel registrations must include the server name in the channel
> name, and be in the format ChannelNickName-server.name.com to allow
> differentiation from possible global channels with the same name. Note
> that locally registered channel nicknames are the full
> "ChannelNickName-server.name.com"
Why not name channels like Java 'packages', something like:
org.horde
and for pear/pecl:
net.php.pear
and
net.php.pecl
you solve the collisions in channel names with this without inventing
something new.
> <package>
>
> <name>PEAR::Log</name>
>
> For Backwards Compatibility, if no channel is specified, the PEAR
> channel will be assumed for all dependencies.
Hmm, why exactly does the channel name to be specified here?
> Sub-Channels
>
> ------------
>
> A sub-channel is a separate collection of packages that share the same
> namespace as a channel. In other words, if PEAR has a sub-channel named
> QA, this sequence is possible:
>
> $ pear install PEAR::Log
>
> install to 1.10 OK
>
> $ pear upgrade PEAR::QA::Log
You could make this:
net.php.pear.qa then...
regards,
Derick