Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345242 - [eclipse] P2 update does not respect config location directory
Summary: [eclipse] P2 update does not respect config location directory
Status: CLOSED WONTFIX
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-10 06:33 EDT by Alex Blewitt CLA
Modified: 2019-08-30 13:01 EDT (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Blewitt CLA 2011-05-10 06:33:58 EDT
Build Identifier: 3.6.2

The P2 configuration does not appear to respect what the name of the configuration directory is called.

From a vanilla RCP install, with update capabilities (or in general, any Eclipse installation), rename the configuration directory to something else, say, conf.

Start Eclipse with -configuration conf

Perform an installation of a new feature with P2

The P2 update mechanism writes out configuration\config.ini, which contains the list of bundles that are installed

When Eclipse restarts, although P2 claims the features are installed, the bundles aren't listed because they're being written to a directory which P2 isn't updating

The top of the config.ini file is:
#This configuration file was written by: org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser



Reproducible: Always
Comment 1 Andrew Niefer CLA 2011-05-10 11:07:47 EDT
(In reply to comment #0)
> Start Eclipse with -configuration conf


Is this just on the command line, or is it in the eclipse.ini?
Comment 2 Alex Blewitt CLA 2011-05-10 11:12:13 EDT
This was from the eclipse.ini file - however I had renamed it (and the executable) to eclipse32.ini/exe.
Comment 3 Andrew Niefer CLA 2011-05-10 11:30:03 EDT
It is possible that the rename could be the source of the problems. Bug 299955 is an example where things go wrong on Mac when the Eclipse.app folder is renamed.  (I haven't had time yet to try things myself).
Comment 4 Alex Blewitt CLA 2011-05-10 15:19:28 EDT
If I look in Help -> About box, the startup configuration clearly shows -configuration conf, so it's visible.

I'm not sure why it would be trying to read the .ini file anyway - the (selected) updates don't change the content of that. Either way, it shouldn't be using what's in that file to find the configuration directory, because it could be overridden on the command line in any case.
Comment 5 Pascal Rapicault CLA 2011-05-10 19:36:36 EDT
Not to say that there is no bug here, but the eclipse.ini is read to figure out all sorts of information about how the installation is actually setup, so not having it means that defaults are used that do not necessarily match the running system.

If you try the same operation without changing the eclipse.ini does it fails or succeeds?
Comment 6 Alex Blewitt CLA 2011-05-10 19:54:59 EDT
I have two products installed in the same directory, which is why I need two different file names ( and two different configuration directories) so renaming is not possible.
Comment 7 Eclipse Genie CLA 2019-08-30 13:01:25 EDT
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.

--
The automated Eclipse Genie.