Tom Mueller (pkg-discuss) wrote: > Bart, > > With the new incorporation logic in place, I'm seeing some new behavior; > is this expected? > > Consider these packages: > > [EMAIL PROTECTED] has in its manifest: > depend fmri=pkg:/[EMAIL PROTECTED] type=incorporate > > [EMAIL PROTECTED] has: > depend fmri=pkg:/[EMAIL PROTECTED] type=incorporate > > [EMAIL PROTECTED] has: > depend fmri=pkg:/[EMAIL PROTECTED] type=incorporate > > The idea here is that when [EMAIL PROTECTED] is installed, an image-update > should > bring it up to the 1.1 level. And future updates along the 1.x line > will also be brought in with an image-update. If the user wants to go > to the 2.x level, they do a "pkg install [EMAIL PROTECTED]". This then > brings in > the 2.0 version, and image-updates from that point will bring in later > versions of 2.0. > > Before the recent incorporation changes, this worked as described. > > With the changes, the image-update part works as expected, but the > upgrade to the 2.0 version is producing the following error: > > $ pkg install [EMAIL PROTECTED] > Creating Plan - > pkg: the following package(s) violated constraints: > Package pkg:/[EMAIL PROTECTED],5.11 conflicts with constraint in > installed > pkg:/jsf: > Pkg jsf: Optional min_version: 1,5.11 max version: 1,5.11 > defined by: pkg:/jsf > > Is this expected? > > It would seem that the constraints that are defined by the packages that > one is explicitly trying to update should be ignored.
Before, incorporations only implemented a minimum constraint. They now correctly the fmri at the specified level.... However, we don't yet have full back tracking support, and the evaluation of complex incorporations is likely to have issues. Making the following sorts of packages: > [EMAIL PROTECTED] has: > depend fmri=pkg:/[EMAIL PROTECTED] type=incorporate is not likely to work. A package that specifies that it's own version must be a less specific version of itself makes the upgrade logic difficult, and achieves no useful purpose Don't do that. - Bart -- Bart Smaalders Solaris Kernel Performance [EMAIL PROTECTED] http://blogs.sun.com/barts "You will contribute more with mercurial than with thunderbird." _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
