Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Strange automagic installation of non-matching patch features
Strange automagic installation of non-matching patch features [message #797406] Mon, 13 February 2012 12:57
Carsten Reckord is currently offline Carsten ReckordFriend
Messages: 139
Registered: July 2009
Senior Member

We are using the P2 Director app in our headless build to create and
configure our Eclipse product. After updating the build environment that
provides the Director from Eclipse 3.6.2 to 3.7.1, I see some strange
effects in the Director behavior: It automagically installs patch features
from our site, which are completely unrelated to the operation at hand, and
- even more astonishing - for which the prerequisites are violated...

Our feature structure is a bit complicated:

* org.example.patches is a parent feature that we use to bundle patches for
various features. It exists in two versions:
- v1.0.0 for Eclipse 3.6 releases, with <import feature="org.eclipse.rcp"
version="3.6.0" match="equivalent"/>
- v1.0.100 for Eclipse 3.7 releases, with <import feature="org.eclipse.rcp"
version="3.7.0" match="equivalent"/>

* org.example.rcp.patch is a patch feature for the org.eclipse.rcp feature.
It contains a patch for the org.eclipse.core.commands bundle and is only
included in the v1.0.0 version of the parent feature. It patches
<import feature="org.eclipse.rcp"
version="3.6.2.r362_v20101104-9SAxFMKFkSAqi8axkv1ZjegmiBLY" patch="true"/>.

After installing org.example.patches into an Eclipse 3.7, I see the expected
- the installed version of org.example.patches is 1.0.100
- All included patch features are installed
- org.example.rcp.patch is not installed
- org.eclipse.core.commands is installed in its original, unpatched version

Now, after installing _anything_ else using Director, and including our site
in the repositories list, the following changes occur:
- the installed version of org.example.patches is still 1.0.100
- suddenly org.example.rcp.patch is installed, even though the installed
version of the org.eclipse.rcp feature does not match the base version in
the patch (it is 3.7.1.r37x_v20110729-9DB5FmNFnFLSFCtLxnRfMqt15A4A)
- org.eclipse.core.commands is replaced by the patched version

Any idea what's going on here and how I can avoid this?

Best regards,
Previous Topic:FTP Update Site Authentication
Next Topic:org.eclipse.ui.intro.universal exception during update
Goto Forum:

Current Time: Sat Jun 23 18:16:15 GMT 2018

Powered by FUDForum. Page generated in 0.01505 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top