On Fri, Jun 13, 2008 at 01:02:31PM -0700, Bart Smaalders wrote:
> John Levon wrote:
> >> depend type=incorporation fmri=pkg:/[EMAIL PROTECTED]
> >>
> >> means [EMAIL PROTECTED] and [EMAIL PROTECTED] are ok, but [EMAIL 
> >> PROTECTED] and [EMAIL PROTECTED] are
> >> right out...
> >>
> >> A dependency of the type
> >>
> >> depend type=require fmri=pkg:/[EMAIL PROTECTED]
> >>
> >> means that [EMAIL PROTECTED] or greater is ok.
> >>
> >> If the publisher of A decides that [EMAIL PROTECTED] will not be completely
> >> compatible w/ previous releases, s/he has several choices
> >> depending on the nature of that incompatibility.
> >>
> >> 1) if the incompatibility is with his own older packages, he can
> >> simply require a minimum optional dependency on the newer version.
> >> Eg, if [EMAIL PROTECTED] depended on [EMAIL PROTECTED], but [EMAIL 
> >> PROTECTED] doesn't satisfy [EMAIL PROTECTED]'s requirements
> >> but does satisfy [EMAIL PROTECTED]'s, he can add a optional dependency to 
> >> [EMAIL PROTECTED] on [EMAIL PROTECTED];
> >> thus if B is installed w/ [EMAIL PROTECTED], it must be at [EMAIL 
> >> PROTECTED] or higher.
> > 
> > Ah, that makes sense. What about when A's publisher has no idea what
> > "B"s exist (let's say (A)pache)? Will there be a way to say "ALL B's
> > that are dependent on [EMAIL PROTECTED] must be upgraded?
> 
> An even more pernicious problem is when A's publisher doesn't know B exists,
> and thus has no idea about compatibility problems...
> 
> We're still thinking about these aspects of the problem....

Traditionally handled by a "<=" constraint.  In this case, [EMAIL PROTECTED] 
would
depend on a version of A <= 1.  When [EMAIL PROTECTED] is published, it will not
get pulled in by consumers of package B until the maintainer of
B certifies it with [EMAIL PROTECTED] and published a new package [EMAIL 
PROTECTED] with
a constraint on A's version being <= 2.

Venky.
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to