Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » p2 director and upgrades
p2 director and upgrades [message #373009] Wed, 29 July 2009 12:28
Daniel Jacobowitz is currently offline Daniel JacobowitzFriend
Messages: 7
Registered: July 2009
Junior Member
[Moving this here from p2-dev]

With some prodding from Ian Bull, I've been able to use the director to upgrade from Ganymede to Galileo. You have to use the new director since the old one can't cope with composite repositories. Here's how to do it, but it raises questions...

1. Download the RCP package for Ganymede.

2. If you don't want to waste a lot of time waiting while you debug
your process, spend an hour or two to mirror the Galileo update site.

3. Have a Galileo-era Eclipse handy.

4. Edit the eclipse.ini in the Ganymede package to include "-startup"
"plugins/org.eclipse.osgi_<whatever>.jar", or else apply the patch
from <https://bugs.eclipse.org/bugs/show_bug.cgi?id=284630>.

5. Run:

java -jar \
eclipse-rcp-galileo/plugins/org.eclipse.equinox.launcher_1.0 .200.v20090520.jar
\
-data $PWD/ws \
-application org.eclipse.equinox.p2.director \
-repository $PWD/updates-3.5 \
-destination $PWD/eclipse \
-profile PlatformProfile \
-uninstallIUs org.eclipse.platform.ide \
-installIUs org.eclipse.platform.ide \
-vmargs
-Declipse.p2.data.area=/space/codesourcery/eclipse/mirrors/u pgrade/eclipse/p2


OK, so now we've got an upgraded tree. But:

* The wiki page for the director runs
org.eclipse.equinox.p2.director.app.application instead of the newer
org.eclipse.equinox.p2.director. The same is true of
< http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse. platform.doc.isv/gu
ide/p2_director.html>.
Is there documentation of this somewhere I missed, besides the bug?



* Is -Declipse.p2.data.area still required with the new director?



* Just installing org.eclipse.platform.ide does not work:

Cannot complete the install because of a conflicting dependency.
Software being installed: Eclipse Platform 3.5.0.I20090611-1540
(org.eclipse.platform.ide 3.5.0.I20090611-1540)
Software currently installed: Eclipse Platform 3.4.0.I20080617-2000
(org.eclipse.platform.ide 3.4.0.I20080617-2000)
Only one of the following can be installed at once:
Eclipse Platform 3.5.0.I20090611-1540 (org.eclipse.platform.ide
3.5.0.I20090611-1540)
Eclipse Platform 3.4.0.I20080617-2000 (org.eclipse.platform.ide
3.4.0.I20080617-2000)

I guess this might be a feature - do you have to use -uninstallIU
explicitly to ugprade features using the director?



* On a related note, how do I upgrade 'everything possible'? Is there
a way to do that from the director - and if not, would it be
straightforward from a custom application? I found a lot of old
packages after upgrading this way. Numbers:

- Ganymede RCP contained 496 bundles in plugins and features.
- Galileo RCP contains 510 bundles.
- 22 bundles are the same between the Ganymede and Galileo packages.
- Upgrading this way gave me 508 bundles. 158 of those match Galileo.
370 match the old Ganymede, i.e. were not upgraded. Remove the
22 common bundles and that adds up to 506.

I believe these are from not installing the right feature. In
repeating this for our local product, I can have better control over
the root feature to avoid it, but it'd be nice to be able to say
'upgrade every feature that this repository can give you a newer
version of'.
Previous Topic:Problem with BrandingIron for MacOS
Next Topic:PDE Product Build (3.5) does not set dropins reconciler bundle to autostart
Goto Forum:
  


Current Time: Thu Apr 25 17:08:22 GMT 2024

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

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

Back to the top