Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 218890 - [prov] [solver] resolver not filtering fragments providing a capability
Summary: [prov] [solver] resolver not filtering fragments providing a capability
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M6   Edit
Assignee: Pascal Rapicault CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 219023
  Show dependency tree
 
Reported: 2008-02-13 17:36 EST by Andrew Niefer CLA
Modified: 2008-03-28 20:39 EDT (History)
1 user (show)

See Also:


Attachments
content.xml (140.70 KB, text/xml)
2008-02-13 17:36 EST, Andrew Niefer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Niefer CLA 2008-02-13 17:36:02 EST
Created attachment 89690 [details]
content.xml

The goal is to have platform specific IUs & fragments all providing the same capability.  Requiring the capability gets those IUS & fragments whose platform filter is satisfied.


I have a main product IU "mrcp.product" that requires a capability mrcp.product.launcher.

I have the following IUs/CUs, which all provide that capability and all have appropriate platform filters.
IU: mrcp.product.launcher.win32.win32.x86
IU: mrcp.product.launcher.gtk.linux.x86
CU: toolingmrcp.product.launcher.win32.win32.x86
CU: toolingmrcp.product.launcher.gtk.linux.x86

The "tooling" CUs are fragments of the corresponding IUs.

Trying to install the mrcp.product results in the error
Problems occurred while installing.
  Unsatisfied dependency: [toolingmrcp.product.launcher.gtk.linux.x86 1.0.0] requiredCapability: org.eclipse.equinox.p2.iunamespace/mrcp.product.launcher.gtk.linux.x86/[1.0.0,1.0.0]


It appears the "toolingmrcp.product.launcher.gtk.linux.x86" fragment is being included in the install despite its filter and it is trying to pull in its host which it requires.
Comment 1 Andrew Niefer CLA 2008-02-13 17:38:53 EST
Note that the installation succeeded when the IUs provided the capability and the CU fragments did not. (Although the CU fragments weren't included in the installed result).
Comment 2 Pascal Rapicault CLA 2008-02-24 21:38:31 EST
Andrew, do you have a way around this problem until we put the new resolver in?
Comment 3 Andrew Niefer CLA 2008-02-25 11:11:59 EST
The workaround is to not have the fragments specify the product capability and to have the product IU list the fragments directly.
Comment 4 Pascal Rapicault CLA 2008-03-10 22:44:52 EDT
Problem fixed in HEAD. Please verify as I have done other changes.
Comment 5 Pascal Rapicault CLA 2008-03-10 22:45:36 EDT
closed the wrong bug. This has not been verified.
Comment 6 Pascal Rapicault CLA 2008-03-28 20:39:17 EDT
.