Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342266 - P2 director does not install fragments if bundle already present
Summary: P2 director does not install fragments if bundle already present
Status: CLOSED WONTFIX
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.6.2   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-08 07:19 EDT by Alex Blewitt CLA
Modified: 2019-09-24 13:56 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Blewitt CLA 2011-04-08 07:19:36 EDT
On Windows, I run:

eclipsec.exe -nosplash -consoleLog -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/releases/helios -installIU org.eclipse.sdk.ide -destination c:\temp\eclipse  -bundlepool -roaming -profile SDKProfile -profileProperties org.eclipse.update.install.features=true c:\temp\eclipse -p2.os win32 -p2.ws win32 -p2.arch x86_64 

This materialises an Eclipse runtime in c:\temp\eclipse, with the configuration set up to run against a 64 bit windows.

If I try to overlay a new version, based on win32, it doesn't work:

eclipsec.exe -nosplash -consoleLog -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/releases/helios -installIU org.eclipse.sdk.ide -destination c:\temp\eclipse  -bundlepool -roaming -profile SDKProfile -profileProperties org.eclipse.update.install.features=true c:\temp\eclipse -p2.os win32 -p2.ws win32 -p2.arch x86 

Note that the first command downloads org.eclipse.swt_3.6.2.v3659c.jar and org.eclipse.swt.win32.win32.x86_64_3.6.2.v3659c.jar, but the second does not download the org.eclipse.swt.win32.win32.x86.3.6.2.v3659c.jar. In other words, it looks like it's seeing that the bundle org.eclipse.swt._3.6.2.v3659c.jar is already installed, and so doesn't bother trying to resolve any fragments. In this case, it kills SWT.

If I run with another profile, it works:

eclipsec.exe -nosplash -consoleLog -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/releases/helios -installIU org.eclipse.sdk.ide -destination c:\temp\eclipse  -bundlepool -roaming -profile SDKProfile -profileProperties org.eclipse.update.install.features=true c:\temp\eclipse -p2.os win32 -p2.ws win32 -p2.arch x86 

However, there seems to be no reason why they cannot share the same profile, since although multiple profiles are supported, the config.ini only supports a single proflie (And Eclipse only supports a single relative configuration directory)
Comment 1 Alex Blewitt CLA 2011-04-08 08:45:44 EDT
Even if you install into two different profiles into the same place (e.g. -profile 32BitSDK and -profile 64BitSDK) the configuration\org.eclipse.equinox.simpleconfigurator\bundles.info does not get updated properly and only stores the 'first' set of bundles seen.
Comment 2 Eclipse Genie CLA 2019-02-10 12:02:15 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 3 Lars Vogel CLA 2019-09-24 13:56:31 EDT
This bug was marked as stalebug a while ago. Marking as worksforme.

If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard tag.