What are the semantics supposed to be?
I tried the following:

pkg:/[EMAIL PROTECTED] is a simple package with just a set action
pkg:/[EMAIL PROTECTED] is also a simple package with just a set action
pkg:/[EMAIL PROTECTED] depends on pkg:/[EMAIL PROTECTED] (type=require)

pkg:/[EMAIL PROTECTED] has the following:
depend fmri=pkg:/[EMAIL PROTECTED] type=incorporate
depend fmri=pkg:/[EMAIL PROTECTED] type=incorporate

I'm trying to express here that [EMAIL PROTECTED] can only run with [EMAIL 
PROTECTED] and not [EMAIL PROTECTED]

In an image, I install [EMAIL PROTECTED], [EMAIL PROTECTED] and [EMAIL 
PROTECTED]  Everything fine so far.

Then I install [EMAIL PROTECTED] and it allows me to do it. A "pkg image-update" also upgrades a to [EMAIL PROTECTED]

So it appears that a is not being frozen at version 1. Is that what is supposed to happen?

I'm also wondering about this extra package "i" that has the incorporate dependencies. Shouldn't a package that has a dependency on a specific version of another package actually express that dependency itself?

I tried putting both an incorporate and require depend action for the same fmri in a single package. The publish worked, but when I tried to install that package I got the following error message:

Creating Plan -client.py: install failed: ['Duplicate actions', [(('depend', 'pkg:/[EMAIL PROTECTED]'), set([<pkg.actions.depend.DependencyAction object at 0x84579cc>, <pkg.actions.depend.DependencyAction object at 0x845786c>]))]]

In the test cases in t_upgrade.py, the incorporate dependencies are also in a separate package which then has to be explicitly installed. How are users supposed to know that they should have this extra package?

Thanks.
Tom

P.S. We are planning for introducing updates into the Glassfish V3 repositories, some of which introduce incompatible change that require multiple packages to be updated at the same time. I was hoping that we could use incorporations to force the updates to happen in this way.


Stephen Hahn wrote:
* Shawn Walker <[EMAIL PROTECTED]> [2008-05-14 18:18]:
On Wed, May 14, 2008 at 12:31 PM, Tom Mueller (pkg-discuss)
<[EMAIL PROTECTED]> wrote:
Do incorporations work yet?
I think they do. Look at "ss-dev".

Specifically, what is the syntax for specifying a forward constraint on
a dependency?  I don't see this in the pkgsend manual page.
You can look at ss-dev as an example.

You should be able to use pkgrecv to get a copy of it from
pkg.opensolaris.org, or look at the ips source repository.

  Actually, ss-dev is just using "require" dependencies.  entire uses
  "incorporate" dependencies; these are fixed constraints in the first
  implementation.

  - Stephen


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

Reply via email to