Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: for the plan.

Jump to: navigation, search

Equinox p2 Shared Install Plan

Scenario: read-only de-compressed upstream download

Eclipse installed read-only in <location> (say, /opt/eclipse or C:\Program Files\Eclipse)


  • check for <user.home>/.eclipse/p2/bundles.txt
  • NO:
    • load shared bundles.txt
  • YES:
    • is the user bundles.txt newer than the shared one?
      • YES (when we enter this, the end goal is for the framework to be running at least all the bundles from the shared bundles.txt)
        • attempt to load it
          • SUCCESS:
            • run, yay
          • FAIL:
            • run shared bundles.txt
            • present some sort of notice to user (upon startup?)
      • NO:
        • reconcile

Provisioning Operation

  • materialize profile from running bundles.txt (and metadata repositories on disk for root IU inference)
  • Notes:
    • no manipulation allowed for shared IUs

Open Issues

  • how do we make shared IUs immutable?

Interesting stuff

The user bundles.txt lists all the bundles to run.

Scenario: install from Linux distribution packages

Note 1: I'm going to say "rpm" here but I really mean any distribution package Note 2: actual paths are negotiable; I just wanted to get some potentials down

Disk layout

See below under startup.

Interesting stuff

  • both "products" (ex. Eclipse SDK, RSSOwl) and "add-on" RPMs (ex. CDT, Mylyn, RSSOwl extension) will include their own metadata repository

"product" startup

  • only difference from above is that shared bundles.txt is split among base product and any add-ons


Eclipse SDK (a "product"):

/usr/share/eclipse/bundlepool/(lots of stuff)

CDT (an IDE "add-on"):


RSSOwl (a "product"):

/usr/share/rssowl/p2/bundles/rssowl.txt (points to Eclipse bundles for dependencies)

CoolThingy (an RSSOwl "add-on"):

  • aggregate "product"'s /usr/share/<product>/p2/bundles/*.txt
  • do <user.home> stuff as above

provisioning operation

  • same as in above situation

Open Issues

  • as above, how do we mark shared IUs as immutable?
  • can we split the install into /usr/lib, /usr/share, /usr/bin, etc.
  • will we need a custom configurator that deals with the split bundles.txt or should we have a variable like osgi.bundles.path where it looks for bundles.txt files and aggregates them?
  • is the profile materialization (for provisioning operations an UI presentation) acceptable?
  • will this still allow distributions to split up SDK by feature? I think so ... maybe we'll have a bundles.txt per feature


  • no %post fragility
  • always correct, always starts up (well, unless base bundles.txt gets corrupted somehow)


  • startup cost?
  • complexity?
  • diverge from downloads?

Back to the top