Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325666 - p2 director command line install does not match GUI install :(
Summary: p2 director command line install does not match GUI install :(
Status: CLOSED DUPLICATE of bug 323322
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-17 20:30 EDT by Misha Koshelev CLA
Modified: 2010-09-18 15:42 EDT (History)
2 users (show)

See Also:


Attachments
Command line IU profile (400.02 KB, application/x-gzip)
2010-09-17 20:35 EDT, Misha Koshelev CLA
no flags Details
GUI install IU profile (401.95 KB, application/x-gzip)
2010-09-17 20:36 EDT, Misha Koshelev CLA
no flags Details
Diff between GUI install IU profile and cmdline install IU profile (27.94 KB, text/plain)
2010-09-17 20:37 EDT, Misha Koshelev CLA
no flags Details
My installed repositories - is there a way to retrieve this with the eclipse command line executable? Thank you (69.95 KB, image/png)
2010-09-18 08:47 EDT, Misha Koshelev CLA
no flags Details
log of install with _all_ repositories included (286.41 KB, application/octet-stream)
2010-09-18 14:30 EDT, Misha Koshelev CLA
no flags Details
GUI install on nightly build - pre-install repositories and package selected (92.43 KB, image/png)
2010-09-18 15:38 EDT, Misha Koshelev CLA
no flags Details
GUI install on nightly build - successful install shown (145.77 KB, image/png)
2010-09-18 15:39 EDT, Misha Koshelev CLA
no flags Details
Log of commandline nightly install that shows install and how .ius.txt files are created from both GUI and command line versions (110.84 KB, text/plain)
2010-09-18 15:40 EDT, Misha Koshelev CLA
no flags Details
Commandline install nightly IUs (13.35 KB, text/plain)
2010-09-18 15:41 EDT, Misha Koshelev CLA
no flags Details
GUI install on nightly build IUs (13.29 KB, text/plain)
2010-09-18 15:42 EDT, Misha Koshelev CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Misha Koshelev CLA 2010-09-17 20:30:46 EDT
Build Identifier: 20100617-1415

My apologies, I am willing to provide more information about this if necessary, but to my best understanding the following command:

eclipse/eclipse -nosplash -application org.eclipse.equinox.p2.director -repository http://subclipse.tigris.org/update_1.6.x,http://download.eclipse.org/eclipse/updates/3.6 -installIU org.tigris.subversion.subclipse.feature.group -profile epp.package.jee -profileProperties org.eclipse.update.install.features=true

Is equivalent to a GUI install of the feature 

"Subclipse (Required)"

under the "Subclipse" category from

http://subclipse.tigris.org/update_1.6.x

The command line command succeeds, as does the GUI command.

However, an analysis of IUs present in the GUI system shows that certain IUs are not installed in the command line version, such as:
ch.qos.logback.classic
for example.

It seems to me, from a naive end-user perspective, that either an error should be output or the install should match a GUI install.

Perhaps I am missing something :(

Thank you
Misha

Reproducible: Always
Comment 1 Misha Koshelev CLA 2010-09-17 20:35:18 EDT
Created attachment 179157 [details]
Command line IU profile
Comment 2 Misha Koshelev CLA 2010-09-17 20:36:39 EDT
Created attachment 179158 [details]
GUI install IU profile
Comment 3 Misha Koshelev CLA 2010-09-17 20:37:17 EDT
Created attachment 179159 [details]
Diff between GUI install IU profile and cmdline install IU profile
Comment 4 Thomas Hallgren CLA 2010-09-18 05:00:00 EDT
Neither of the two repositories that you mention provides a ch.qos.logback.classic IU so I'm curious where that IU came from. Did you install into a profile that had other repositories configured?
Comment 5 Misha Koshelev CLA 2010-09-18 08:47:48 EDT
Created attachment 179168 [details]
My installed repositories - is there a way to retrieve this with the eclipse command line executable? Thank you
Comment 7 Thomas Hallgren CLA 2010-09-18 09:44:57 EDT
Seems your IDE has several more repositories then you used for the director. In the IDE you also have the 'Contact all update sites during install to find required software' checked. This means that you feed a lot more meta-data into the p2 resolver which in turn causes the install to be slightly different.
Comment 8 Pascal Rapicault CLA 2010-09-18 13:32:21 EDT
This is a known issue that results from a bug in the resolver that got fixed in 3.6.1.

*** This bug has been marked as a duplicate of bug 323322 ***
Comment 9 Misha Koshelev CLA 2010-09-18 14:30:47 EDT
Created attachment 179183 [details]
log of install with _all_ repositories included

Fyi, when installing using _all_ repositories:

eclipse/eclipse -nosplash -application org.eclipse.equinox.p2.director -repository http://subclipse.tigris.org/update_1.6.x,http://download.eclipse.org/eclipse/updates/3.6,http://download.eclipse.org/releases/helios,http://download.eclipse.org/webtools/repository/helios/,http://download.eclipse.org/tools/mylyn/update/helios -installIU org.tigris.subversion.subclipse.feature.group -profile epp.package.jee -profileProperties org.eclipse.update.install.features=true

I do get the desired (well not quite - see below) error:
Installation failed.
An error occurred while collecting items to be installed
 session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
 No repository found containing: osgi.bundle,ch.qos.logback.classic,0.9.19.v20100519-1505
 No repository found containing: osgi.bundle,ch.qos.logback.core,0.9.19.v20100419-1216
 No repository found containing: osgi.bundle,ch.qos.logback.slf4j,0.9.19.v20100519-1910
 No repository found containing: osgi.bundle,org.eclipse.net4j.jms.api,3.0.0.v20100614-1655
 No repository found containing: osgi.bundle,org.slf4j.api,1.5.11.v20100519-1910
Application failed, log file location: /tmp/eclipse/configuration/1284833860440.log

However, surprisingly, those IUs seem to be present on the exact same repos:
misha@misha-d630:/tmp/eclipse$ ./eclipse -nosplash -application org.eclipse.equinox.p2.director -repository http://subclipse.tigris.org/update_1.6.x,http://download.eclipse.org/eclipse/updates/3.6,http://download.eclipse.org/releases/helios,http://download.eclipse.org/webtools/repository/helios/,http://download.eclipse.org/tools/mylyn/update/helios -list 2>&1 | grep qos
ch.qos.logback.classic=0.9.19.v20100519-1505
ch.qos.logback.classic.source=0.9.19.v20100519-1505
ch.qos.logback.core=0.9.19.v20100419-1216
ch.qos.logback.core.source=0.9.19.v20100419-1216
ch.qos.logback.slf4j=0.9.19.v20100519-1910
ch.qos.logback.slf4j.source=0.9.19.v20100519-1910

so I am still stumped.

I am trying to download a nightly build to make sure it is indeed fixed per duplicate bug entry but the site is timing out for me :(

Thank you
Misha
Comment 10 Misha Koshelev CLA 2010-09-18 15:38:43 EDT
Created attachment 179188 [details]
GUI install on nightly build - pre-install repositories and package selected

Documenting. On nightly build mysteriously enough I get _more_ IUs with command line vs GUI install
Comment 11 Misha Koshelev CLA 2010-09-18 15:39:05 EDT
Created attachment 179189 [details]
GUI install on nightly build - successful install shown
Comment 12 Misha Koshelev CLA 2010-09-18 15:40:40 EDT
Created attachment 179190 [details]
Log of commandline nightly install that shows install and how .ius.txt files are created from both GUI and command line versions
Comment 13 Misha Koshelev CLA 2010-09-18 15:41:08 EDT
Created attachment 179191 [details]
Commandline install nightly IUs
Comment 14 Misha Koshelev CLA 2010-09-18 15:42:15 EDT
Created attachment 179192 [details]
GUI install on nightly build IUs

Diff below:

misha@misha-d630:/tmp$ diff nighly.ius.txt nighly.gui.ius.txt 
1d0
< a.jre
193d191
< org.eclipse.equinox.servletbridge.extensionbundle

Thank you
Misha

p.s. The ch.qos.* packages have gone away so I hope indeed the problem is fixed. Thank you