[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [p2-dev] can platform be updated via p2?
|
Indeed. I obviously did not think that through very well. I can't just
update the platform in the SDK. I can update the platform in a platform
installation. So that's what I'm focusing on now.
Unfortunately, I'm still not on the same page as you. Zips such as
eclipse-platform-3.6.1-macosx-cocoa-x86_64.tar.gz and
eclipse-platform-3.6.1-win32.zip (I'm on windows) are not p2
repos, right? My understanding is there's only one platform p2 repo zip:
org.eclipse.platform-3.6.1.zip. Those other zips are
"unzip-and-run" distributions of the platform.
If I'm right so far, then I can say with near certainty that there is no
"org.eclipse.platform.ide" IU in the p2 archive
(org.eclipse.platform-3.6.1.zip)
Nonetheless, I've tried what you suggested. I unzipped
eclipse-platform-3.6.1-win32.zip, then tried the following cmdline
to update it to platform 3.6.1
"C:\eclipse_3.7\eclipsec" ^
-application org.eclipse.equinox.p2.director ^
-nosplash ^
-consoleLog ^
-profile PlatformProfile ^
-installIU org.eclipse.platform.ide ^
-repository
file:/f:/temp/testp2/plat361p2 ^
-destination f:\temp\testp2\plat36\eclipse
where
f:/temp/testp2/plat361p2 <== org.eclipse.platform-3.6.1.zip
f:\temp\testp2\plat36\eclipse <==
eclipse-platform-3.6.1-win32.zip
What I get in stdout is
Installing
org.eclipse.platform.ide 3.6.0.I20100608-0911
Operation
completed in 5688 ms.
Might sound good, but it's not. Note that it said it installed 3.6.0 of
org.eclipse.platform.ide...not
3.6.1. The resulting platform
installation has no change in it that I can see. It still has 3.6.0 of
the platform.
I've been racking my brains trying to make sense of what you've suggested
and trying everything under the sun. There's a big disconnect between
what you're saying and what I'm doing/seeing.
John
At 03:32 PM 10/27/2011, DJ Houghton wrote:
If I'm reading what you're
describing correctly, you are starting with a 3.6.0 SDK zip. You can't
take a 3.6 SDK and replace the platform that it contains. What the error
message you posted says is that the SDK 3.6.0 requires the Platform 3.6.0
and if you install Platform 3.6.1 then you will break it.
Coincidentally enough, the p2 team has been working on a new feature so
if you run into the problem described above, we will recommend that you
also update the SDK to 3.6.1 (if available) and then your install will
complete. The feature is almost implemented and will appear in the 3.8
integration builds soon.
If you use the Platform zip (e.g.
eclipse-platform-3.6.1-macosx-cocoa-x86_64.tar.gz) you will see the
platform.ide IU:
<unit id='org.eclipse.platform.ide'
version='3.6.1.M20100909-0800'>
So to fix your problem you either need to use a Platform zip (and update
the org.eclipse.platform.ide IU) or change your command-line to update
the org.eclipse.sdk.ide IU.
John Cortell ---2011/10/27 04:01:17 PM---There is
no IU called org.eclipse.platform.ide in the p2 zip
(org.eclipse.platform-3.6.1.zip). The
![[]](jpgQMokXVTnQd.jpg)
From:
John Cortell <rat042@xxxxxxxxxxxxx>
![[]](jpgQMokXVTnQd.jpg)
To:
P2 developer discussions <p2-dev@xxxxxxxxxxx>, P2
developer discussions <p2-dev@xxxxxxxxxxx>
![[]](jpgQMokXVTnQd.jpg)
Date:
2011/10/27 04:01 PM
![[]](jpgQMokXVTnQd.jpg)
Subject:
Re: [p2-dev] can platform be updated via p2?
![[]](jpgQMokXVTnQd.jpg)
Sent by:
p2-dev-bounces@xxxxxxxxxxx
There is no IU called org.eclipse.platform.ide in the
p2 zip (org.eclipse.platform-3.6.1.zip). The only IUs in that p2 with
'platform' in the name are:
org.eclipse.platform
org.eclipse.platform.doc.user
org.eclipse.platform.feature.group
org.eclipse.platform.feature.jar
org.eclipse.platform_root
Here's what I get (cleaned up) when I try to update the platform in
the 3.6 SDK with the one from the 3.6.1 p2 zip
Cannot complete the install because of a conflicting
dependency.
Software being installed: Eclipse Platform
3.6.1.r361_v20100909-9gF78GrkFqw7GrsZnvz0JWNTeb6fue6896L
(org.eclipse.platform.feature.group
3.6.1.r361_v20100909-9gF78GrkFqw7GrsZnvz0JWNTeb6fue6896L)
Software currently installed: Eclipse SDK
3.6.0.I20100608-0911 (org.eclipse.sdk.ide 3.6.0.I20100608-0911)
Only one of the following can be installed at once:
Eclipse Platform 3.6.0.v201006080911 (org.eclipse.platform
3.6.0.v201006080911)
Eclipse Platform 3.6.1.v201009090800 (org.eclipse.platform
3.6.1.v201009090800)
[snip]
I've tried specifying each of the IUs listed above. None of them
work.
Finally, here's the cmdline I'm using:
"C:\eclipse_3.7\eclipsec" ^
-application org.eclipse.equinox.p2.director ^
-nosplash ^
-consoleLog ^
-profile SDKProfile ^
-installIU "org.eclipse.platform.feature.group" ^
-repository
file:/f:/temp/testp2/plat361p2
^
-destination f:\temp\testp2\sdk36\eclipse
John
At 11:46 AM 10/27/2011, DJ Houghton wrote:
Yes, you should be able to update the platform via p2. If you have the
platform zip, the platform.feature.group may be blocked by the
org.eclipse.platform.ide InstallableUnit. Try updating that instead.
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev