Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » [p2] no SDKProfile generated when building eclipse from source
[p2] no SDKProfile generated when building eclipse from source [message #112058] Fri, 13 June 2008 16:28 Go to next message
Tim Myer is currently offline Tim MyerFriend
Messages: 81
Registered: July 2009
Member
I am trying to build eclipse from source, but the result does not have
any SDKProfile or generated p2 metadata. The way I understand it, the
build script should be generating the p2 metadata. Is this a correct
assumption? If so, where in the eclipse build scripts is the call to
generate the metadata or where is the configuration set for generating
this metadata? I see the generate.p2.metadata targets in the
assemble.org.eclipse.sdk.os.win.arch.xml and
package.org.eclipse.sdk.os.win.arch.xml files but I do not see how the
if="generate.p2.metadata" conditional is ever set.
Thanks for any help.
-----Tim------
Re: [p2] no SDKProfile generated when building eclipse from source [message #115497 is a reply to message #112058] Mon, 28 July 2008 23:38 Go to previous messageGo to next message
James Le Cuirot is currently offline James Le CuirotFriend
Messages: 4
Registered: July 2009
Junior Member
On Fri, 13 Jun 2008 09:28:30 -0700
Tim Myer <timezra@gmail.com> wrote:

> I am trying to build eclipse from source, but the result does not
> have any SDKProfile or generated p2 metadata. The way I understand
> it, the build script should be generating the p2 metadata. Is this a
> correct assumption? If so, where in the eclipse build scripts is the
> call to generate the metadata or where is the configuration set for
> generating this metadata? I see the generate.p2.metadata targets in
> the assemble.org.eclipse.sdk.os.win.arch.xml and
> package.org.eclipse.sdk.os.win.arch.xml files but I do not see how
> the if="generate.p2.metadata" conditional is ever set.
> Thanks for any help.
> -----Tim------

This never received a reply and I would also like to know the answer. I
know that Tim hasn't found the answer yet. I can generate the
metadata but I'm still missing an SDKProfile.

I noticed that the generated content.xml is very much like an
SDKProfile so I tried taking the <units> element from that but some
stuff was missing. In particular, any references to org.eclipse.sdk.ide
and so nothing appeared under Installed Software. Obviously this isn't
the right way to do it anyway.

Taking the SDKProfile from the official tarball kinda works but it
doesn't quite match my build so that isn't really the answer either.
What is the correct way to generate it?

Regards,
James
[P2] no per-user bundles/source.info created when starting multi-user Eclipse [message #115710 is a reply to message #115497] Wed, 06 August 2008 11:26 Go to previous messageGo to next message
James Le Cuirot is currently offline James Le CuirotFriend
Messages: 4
Registered: July 2009
Junior Member
On Fri, 13 Jun 2008 09:28:30 -0700
Tim Myer <timezra@gmail.com> wrote:

> I am trying to build eclipse from source, but the result does not
> have any SDKProfile or generated p2 metadata.

So I eventually realised that you have to use the P2 director
application to install as well as generating the metadata. The
SDKProfile stuff is now present.

However, there is still a problem. I run P2 director as root as it is a
multi-user installation. When each user runs Eclipse, their own copies
of bundles.info and source.info do not get created. The missing
source.info is a problem because unless I copy it manually, Eclipse
does not see any of the source plugins and tries to install them the
first time I use the Update Manager. If I use the Classic Update
Manager, I see lots of red Xs with messages about plugins not being
available at runtime.

I could copy these files manually in a wrapper script but a proper
solution would be nice. Aren't the files supposed to be copied
automatically?

Regards,
James
Re: [P2] no per-user bundles/source.info created when starting multi-user Eclipse [message #115749 is a reply to message #115710] Wed, 06 August 2008 13:24 Go to previous messageGo to next message
Tim Myer is currently offline Tim MyerFriend
Messages: 81
Registered: July 2009
Member
Hi James,
Someone left a great comment on my blog yesterday with instructions for
generating the SDKProfile (2 java commands). I have since tested the
instructions (substituting different names for Gentoo) and am now
happily using p2 for my solaris-gtk-x86 distribution. The blog entry is
here; just look for Chewi's comments at the bottom:

http://timezra.blogspot.com/2008/06/solipse-for-building-ecl ipse-on-solaris.html

I hope this helps!
-----Tim------




James Le Cuirot wrote:
> On Fri, 13 Jun 2008 09:28:30 -0700
> Tim Myer <timezra@gmail.com> wrote:
>
>> I am trying to build eclipse from source, but the result does not
>> have any SDKProfile or generated p2 metadata.
>
> So I eventually realised that you have to use the P2 director
> application to install as well as generating the metadata. The
> SDKProfile stuff is now present.
>
> However, there is still a problem. I run P2 director as root as it is a
> multi-user installation. When each user runs Eclipse, their own copies
> of bundles.info and source.info do not get created. The missing
> source.info is a problem because unless I copy it manually, Eclipse
> does not see any of the source plugins and tries to install them the
> first time I use the Update Manager. If I use the Classic Update
> Manager, I see lots of red Xs with messages about plugins not being
> available at runtime.
>
> I could copy these files manually in a wrapper script but a proper
> solution would be nice. Aren't the files supposed to be copied
> automatically?
>
> Regards,
> James
Re: [P2] no per-user bundles/source.info created when starting multi-user Eclipse [message #115762 is a reply to message #115749] Wed, 06 August 2008 13:39 Go to previous messageGo to next message
James Le Cuirot is currently offline James Le CuirotFriend
Messages: 4
Registered: July 2009
Junior Member
On Wed, 06 Aug 2008 06:24:35 -0700
Tim Myer <timezra@gmail.com> wrote:

> Someone left a great comment on my blog yesterday...

Haha. If you look at my e-mail address, you'll notice that was me. (-;
I didn't notice this other problem till after I posted the comment.
Maybe you ran the P2 director application as the same user that you're
running Eclipse as? It would probably work okay in that case.

Regards,
James
Re: [P2] no per-user bundles/source.info created when starting multi-user Eclipse [message #115790 is a reply to message #115762] Wed, 06 August 2008 17:41 Go to previous messageGo to next message
James Le Cuirot is currently offline James Le CuirotFriend
Messages: 4
Registered: July 2009
Junior Member
James Le Cuirot <chewi@aura-online.co.uk> wrote:
>
> However, there is still a problem. I run P2 director as root as it is
> a multi-user installation. When each user runs Eclipse, their own
> copies of bundles.info and source.info do not get created.

Hmm I've noticed something interesting. If I use the prebuilt tarball
of Eclipse (in this case, linux-gtk-x86_64), as long as the
installation is not writable by the user running Eclipse, the exact
same problem occurs. So it's not a problem with the way we're building
Eclipse. Maybe I should file a bug?

James
Re: [P2] no per-user bundles/source.info created when starting multi-user Eclipse [message #115829 is a reply to message #115762] Wed, 06 August 2008 22:52 Go to previous message
Tim Myer is currently offline Tim MyerFriend
Messages: 81
Registered: July 2009
Member
Hi James,
Good to put a name with a handle. I had not noticed your email address....
Anyway, this is an interesting use case, and you are quite right that I
was running eclipse and the p2 director as the same user. I will keep
an eye out for this.
Thanks again.
----Tim-----

James Le Cuirot wrote:
> On Wed, 06 Aug 2008 06:24:35 -0700
> Tim Myer <timezra@gmail.com> wrote:
>
>> Someone left a great comment on my blog yesterday...
>
> Haha. If you look at my e-mail address, you'll notice that was me. (-;
> I didn't notice this other problem till after I posted the comment.
> Maybe you ran the P2 director application as the same user that you're
> running Eclipse as? It would probably work okay in that case.
>
> Regards,
> James
Previous Topic:org.eclipse.equinox.security.storage suitable for Preference storage in apps
Next Topic:IU destination folder is wrong on my configuration
Goto Forum:
  


Current Time: Tue May 07 17:22:58 GMT 2024

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

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

Back to the top