Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328415 - Does org.eclipse.equinox.core.sdk need to be updated to depend on a newer org.eclipse.osgi ?
Summary: Does org.eclipse.equinox.core.sdk need to be updated to depend on a newer org...
Status: CLOSED DUPLICATE of bug 327233
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Components (show other bugs)
Version: 3.6.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.6.2   Edit
Assignee: equinox.components-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-21 16:59 EDT by Nick Boldt CLA
Modified: 2011-01-10 16:14 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Boldt CLA 2010-10-21 16:59:29 EDT
I'm trying to install a number of features from a p2 repo via a p2.director script, and it's failing due to version conflicts in required dependencies.

I'm using the latest 3.6.x maintenance build, M20101020-0925, and this script:

http://anonsvn.jboss.org/repos/jbosstools/trunk/build/target-platform/build.xml

Here's the console log

   [p2.dir] Installation failed.
   [p2.dir] Cannot complete the install because of a conflicting dependency.
   [p2.dir]  Software being installed: Equinox Core SDK 3.6.1.R36x_v20101007-7sF99FsHFTw8HQBta4g33J3F (org.eclipse.equinox.core.sdk.feature.group 3.6.1.R36x_v20101007-7sF99FsHFTw8HQBta4g33J3F)
   [p2.dir]  Software being installed: Eclipse Platform 3.6.2.r362_v20100929-9gF78GrqFrD9Uh-OltlT9H_z0p1mnhRBz-PPmGWk (org.eclipse.platform.feature.group 3.6.2.r362_v20100929-9gF78GrqFrD9Uh-OltlT9H_z0p1mnhRBz-PPmGWk)
   [p2.dir]  Only one of the following can be installed at once: 
   [p2.dir]   OSGi System Bundle 3.6.1.R36x_v20100806 (org.eclipse.osgi 3.6.1.R36x_v20100806)
   [p2.dir]   OSGi System Bundle 3.6.1.R36x_v20101015 (org.eclipse.osgi 3.6.1.R36x_v20101015)
   [p2.dir]  Cannot satisfy dependency:
   [p2.dir]   From: Equinox Core SDK 3.6.1.R36x_v20101007-7sF99FsHFTw8HQBta4g33J3F (org.eclipse.equinox.core.sdk.feature.group 3.6.1.R36x_v20101007-7sF99FsHFTw8HQBta4g33J3F)
   [p2.dir]   To: org.eclipse.osgi [3.6.1.R36x_v20100806]
   [p2.dir]  Cannot satisfy dependency:
   [p2.dir]   From: Eclipse Platform 3.6.2.r362_v20100929-9gF78GrqFrD9Uh-OltlT9H_z0p1mnhRBz-PPmGWk (org.eclipse.platform.feature.group 3.6.2.r362_v20100929-9gF78GrqFrD9Uh-OltlT9H_z0p1mnhRBz-PPmGWk)
   [p2.dir]   To: org.eclipse.rcp.feature.group [3.6.2.r362_v20100929-9OArFLtFjY-ThlnOoBv_whoMlFVj]
   [p2.dir]  Cannot satisfy dependency:
   [p2.dir]   From: Eclipse RCP 3.6.2.r362_v20100929-9OArFLtFjY-ThlnOoBv_whoMlFVj (org.eclipse.rcp.feature.group 3.6.2.r362_v20100929-9OArFLtFjY-ThlnOoBv_whoMlFVj)
   [p2.dir]   To: org.eclipse.osgi [3.6.1.R36x_v20101015]

or:

   [p2.dir] Installation failed.
   [p2.dir] Cannot complete the install because of a conflicting dependency.
   [p2.dir]  Software being installed: Equinox Core SDK 3.6.1.R36x_v20101007-7sF99FsHFTw8HQBta4g33J3F (org.eclipse.equinox.core.sdk.feature.group 3.6.1.R36x_v20101007-7sF99FsHFTw8HQBta4g33J3F)
   [p2.dir]  Software being installed: Core Server Feature 1.0.1.R36x_v20101007-7K7QErDzbb9z-yqHb56L8H (org.eclipse.equinox.server.core.feature.group 1.0.1.R36x_v20101007-7K7QErDzbb9z-yqHb56L8H)
   [p2.dir]  Only one of the following can be installed at once: 
   [p2.dir]   OSGi System Bundle 3.6.1.R36x_v20100806 (org.eclipse.osgi 3.6.1.R36x_v20100806)
   [p2.dir]   OSGi System Bundle 3.6.1.R36x_v20101015 (org.eclipse.osgi 3.6.1.R36x_v20101015)
   [p2.dir]  Cannot satisfy dependency:
   [p2.dir]   From: Equinox Core SDK 3.6.1.R36x_v20101007-7sF99FsHFTw8HQBta4g33J3F (org.eclipse.equinox.core.sdk.feature.group 3.6.1.R36x_v20101007-7sF99FsHFTw8HQBta4g33J3F)
   [p2.dir]   To: org.eclipse.osgi [3.6.1.R36x_v20100806]
   [p2.dir]  Cannot satisfy dependency:
   [p2.dir]   From: Core Server Feature 1.0.1.R36x_v20101007-7K7QErDzbb9z-yqHb56L8H (org.eclipse.equinox.server.core.feature.group 1.0.1.R36x_v20101007-7K7QErDzbb9z-yqHb56L8H)
   [p2.dir]   To: org.eclipse.osgi [3.6.1.R36x_v20101015]

So should 

Equinox Core SDK 3.6.1.R36x_v20101007-7sF99FsHFTw8HQBta4g33J3F (org.eclipse.equinox.core.sdk.feature.group)

depend/require

org.eclipse.osgi [3.6.1.R36x_v20101015]

instead of 

org.eclipse.osgi [3.6.1.R36x_v20100806]

?

Or should I exclude this feature from the .target file [1], and include some other feature(s) instead?

[1]http://anonsvn.jboss.org/repos/jbosstools/trunk/build/target-platform/e361-wtp322.target
Comment 1 Thomas Watson CLA 2010-10-22 09:12:17 EDT

Kim or Andrew, can you tell us what feature group is depending on org.eclipse.osgi [3.6.1.R36x_v20100806]?  From the message below?  The M20101020-0925 builds should all be using org.eclipse.osgi [3.6.1.R36x_v20101015] but the message does not make it clear to me who is depending on the old version.  I have confirmed that org.eclipse.equinox.core.sdk.feature depends on org.eclipse.osgi [3.6.1.R36x_v20101015] from the M20101020-0925 build:

   <plugin
         id="org.eclipse.osgi"
         download-size="0"
         install-size="0"
         version="3.6.1.R36x_v20101015"
         unpack="false"/>



Note that in the next M-Build org.eclipse.osgi will be moved to version 3.6.2.
Comment 2 Andrew Niefer CLA 2010-10-22 09:52:03 EDT
In these two error messages it is org.eclipse.equinox.core.sdk depending on the old R36x_v20100806.  The other two (rcp & equinox.server.core) both depend on the new version.

The version here for equinox.core.sdk is 3.6.1.R36x_v20101007-7sF99FsHFTw8HQBta4g33J3F
And looking in M20101013-0800 I see the same version
3.6.1.R36x_v20101007-7sF99FsHFTw8HQBta4g33J3F

It looks like the version did not get incremented
Comment 3 Thomas Watson CLA 2010-10-22 10:20:30 EDT
(In reply to comment #2)
> It looks like the version did not get incremented

Does this imply I should retag the feature?  I bet the version will increase with the increase of org.eclipse.osgi version to 3.6.2 anyway.
Comment 4 Nick Boldt CLA 2010-10-27 22:43:21 EDT
(In reply to comment #3)
> (In reply to comment #2)
> > It looks like the version did not get incremented
> 
> Does this imply I should retag the feature?  I bet the version will increase
> with the increase of org.eclipse.osgi version to 3.6.2 anyway.

Yes, I think it does. Fix + retag so that everything gets incremented and I can once again install w/o this requirement conflict.
Comment 5 Thomas Watson CLA 2011-01-10 16:14:45 EST
This was fixed as part of bug327233.

*** This bug has been marked as a duplicate of bug 327233 ***