Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369085 - Some pde-build failures are caused by changes to convert bree to generic requirements
Summary: Some pde-build failures are caused by changes to convert bree to generic requ...
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.7.1   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: Juno M5   Edit
Assignee: equinox.framework-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-19 09:42 EST by Thomas Watson CLA
Modified: 2012-01-19 11:32 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Watson CLA 2012-01-19 09:42:05 EST
In bug 368829 code was released to convert Bundle-RequiredExecutionEnvironment (bree) headers to generic requirements in the osgi.ee namespace.  This is causing issues in some pde-build tests.  In order to resolve the generic requirements in the osgi.ee namespace we need capabilities representing the execution environments.  These get added to the system bundle in the resolver State.  In some of the pde-build tests there is no system bundle (org.eclipse.osgi) added to the state so we have no bundle to attach these osgi.ee capabilities to and therefore the requirements on osgi.ee namespace failes.  They fail with a strange error also:

Bundle org.eclipse.equinox.launcher_1.3.0.N20120118-2000 failed to resolve.: Host plug-in OSGi/Minimum_0.0.0 has not been found.

I'm not sure why it is saying a Host plug-in could not be found.  Not sure if this message is coming from the framework resolver or from pde-build, but we should fix that also.
Comment 1 Andrew Niefer CLA 2012-01-19 11:09:47 EST
The bogus error message is probably coming from PDE/Build BuildTimeSite#getResolutionFailureMessage, this method does not recognize GenericSpecification
Comment 2 Thomas Watson CLA 2012-01-19 11:32:21 EST
I released a fix in commit:

http://git.eclipse.org/c/equinox/rt.equinox.framework.git/commit/?id=3de265620d8c370f7ca9470536e3a03f4414af19

The fix was to set the resolution type of the requirement to indicate that it was created from a Bundle-RequiredExecutionEnvironment (BREE) and if such a generic requirement cannot be resolved then don't fail resolution.