| Summary: | [planner] Need a way to express "expensiveness" of a solution | ||
|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Gunnar Wagenknecht <gunnar> |
| Component: | p2 | Assignee: | P2 Inbox <equinox.p2-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | aniefer, david_williams, leberre, pascal, tjwatson |
| Version: | 3.6 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Gunnar Wagenknecht
p2 already minimizes the number of IUs to install, so if there are solutions with: 1) just org.apache.commons.logging 2) org.slf4j.jcl + one implementation then 1) should always be selected. According to the feedback I suspect "org.slf4j.api" was already installed on the systems. Otherwise, there is no logical explanation of why p2 picked "org.slf4j.jcl" to resolve the import package requirement. Therefore, "numbers of IUs to install" would not help anymore and we really need a way to express that _this_ particular bundle should not be used if another solutions ranks higher. Particularly, we must be able to express that one particular bundle is not as well tested as another particular bundle when installing things in the IDE. It's an option for target platforms but not for a runtime IDE because the IDE team never tested this combination. The other explanation is that org.slf4j.api is required at some point by an IU, in which case the solver will provide it, no matter you prefer commons.logging to it. In practice, it is not a big deal to express in the solver that some IUs are preferred to others (this is already what we do to retrieve the latest version of an IU). The main issue here is to decide how to let the user express this in the metadata or the API. 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. |