Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #9258 > unrolled thread

Need for help: Eclipse Neon

Started byLuca Vercelli <luca.vercelli.to@gmail.com>
First post2016-07-22 18:10 +0200
Last post2017-07-22 21:20 +0200
Articles 7 — 4 participants

Back to article view | Back to linux.debian.maint.java


Contents

  Need for help: Eclipse Neon Luca Vercelli <luca.vercelli.to@gmail.com> - 2016-07-22 18:10 +0200
    Re: Need for help: Eclipse Neon Emmanuel Bourg <ebourg@apache.org> - 2016-07-29 15:30 +0200
      Re: Need for help: Eclipse Neon Luca Vercelli <luca.vercelli.to@gmail.com> - 2016-08-21 22:00 +0200
        Re: Need for help: Eclipse Neon Christopher Hoskin <christopher.hoskin@gmail.com> - 2017-07-18 23:30 +0200
          Re: Need for help: Eclipse Neon Christopher Hoskin <christopher.hoskin@gmail.com> - 2017-07-20 08:30 +0200
            Re: Need for help: Eclipse Neon Christopher Hoskin <christopher.hoskin@gmail.com> - 2017-07-22 21:10 +0200
              Re: Need for help: Eclipse Neon Markus Koschany <apo@debian.org> - 2017-07-22 21:20 +0200

#9258 — Need for help: Eclipse Neon

FromLuca Vercelli <luca.vercelli.to@gmail.com>
Date2016-07-22 18:10 +0200
SubjectNeed for help: Eclipse Neon
Message-ID<rXLbr-80C-11@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Dear Java Team,
I am trying to build a recent version of Eclipse.

Eclipse requires Tycho Maven Plugin to build, and I have packaged it
using suggestions from Fedora packagers:
https://mentors.debian.net/package/tycho
(currently, we don't use Fedora scripts to build Tycho, we just use
patches, maven, and maven-repo-helper)

Then, I have tried to build Eclipse.
I have uploaded my trials here:

https://anonscm.debian.org/cgit/pkg-java/eclipse.git/tree/debian?h=experimental

During the build, Tycho fails with tons of errors. They are attached.
Can anyone try to help me?

As a minor issue, Tycho requires a recent version of sat4j. I have
packaged it here:
https://mentors.debian.net/package/sat4j
I have already tried to contact the maintainer, however I didn't get any
feedback.

Regards.

Luca

[toc] | [next] | [standalone]


#9264

FromEmmanuel Bourg <ebourg@apache.org>
Date2016-07-29 15:30 +0200
Message-ID<s0g1s-5aW-9@gated-at.bofh.it>
In reply to#9258
Hi Luca,

Le 22/07/2016 à 18:05, Luca Vercelli a écrit :

> Eclipse requires Tycho Maven Plugin to build, and I have packaged it
> using suggestions from Fedora packagers:
> https://mentors.debian.net/package/tycho
> (currently, we don't use Fedora scripts to build Tycho, we just use
> patches, maven, and maven-repo-helper)

Well done! I think you can push the packaging repository to alioth now.
I see some potential minor improvements, we can help you.


> Then, I have tried to build Eclipse.
> I have uploaded my trials here:
> 
> https://anonscm.debian.org/cgit/pkg-java/eclipse.git/tree/debian?h=experimental
> 
> During the build, Tycho fails with tons of errors. They are attached.
> Can anyone try to help me?

I see two issues:
- something that looks like a tycho error. Did you try switching the
tycho jar you built with the official one? Maybe you forgot something in
the tycho package (some classes or resource files).
- org.eclipse.osgi.storagemanager.ManagedOutputStream is not found. This
class comes from eclipse, maybe the modules aren't compiled in the right
order?


> As a minor issue, Tycho requires a recent version of sat4j. I have
> packaged it here:
> https://mentors.debian.net/package/sat4j
> I have already tried to contact the maintainer, however I didn't get any
> feedback.

I think we should ask Michael Tautschnig to move the package under the
pkg-java umbrella so it can be team maintained. sat4j is only used by
eclipse so that would make sense.

Emmanuel Bourg

[toc] | [prev] | [next] | [standalone]


#9323

FromLuca Vercelli <luca.vercelli.to@gmail.com>
Date2016-08-21 22:00 +0200
Message-ID<s8H4u-4F3-17@gated-at.bofh.it>
In reply to#9264
Thank you Emmanuel.

I'm sorry for the delay, I'm not at home this month.


Il 29/07/2016 15:29, Emmanuel Bourg ha scritto:
> Hi Luca,
>
> Le 22/07/2016 à 18:05, Luca Vercelli a écrit :
>
>> Eclipse requires Tycho Maven Plugin to build, and I have packaged it
>> using suggestions from Fedora packagers:
>> https://mentors.debian.net/package/tycho
>> (currently, we don't use Fedora scripts to build Tycho, we just use
>> patches, maven, and maven-repo-helper)
> Well done! I think you can push the packaging repository to alioth now.
> I see some potential minor improvements, we can help you.
That's ok. I suppose I cannot create a repository in Alioth, somebody
should create it for me, am I right? Something like
https://git.debian.org/git/pkg-java/tycho.git ?

>
>> Then, I have tried to build Eclipse.
>> I have uploaded my trials here:
>>
>> https://anonscm.debian.org/cgit/pkg-java/eclipse.git/tree/debian?h=experimental
>>
>> During the build, Tycho fails with tons of errors. They are attached.
>> Can anyone try to help me?
> I see two issues:
> - something that looks like a tycho error. Did you try switching the
> tycho jar you built with the official one? Maybe you forgot something in
> the tycho package (some classes or resource files).
Yes, and no. This package creates 15-20 jars... I have tried to replace
some of them, however these jars are not "patched", so I get many more
errors.

> - org.eclipse.osgi.storagemanager.ManagedOutputStream is not found. This
> class comes from eclipse, maybe the modules aren't compiled in the right
> order?
That class exists. It is in the org.eclipse.osgi jar. I cannot
understand why it is not found at runtime.

Luca
>
>> As a minor issue, Tycho requires a recent version of sat4j. I have
>> packaged it here:
>> https://mentors.debian.net/package/sat4j
>> I have already tried to contact the maintainer, however I didn't get any
>> feedback.
> I think we should ask Michael Tautschnig to move the package under the
> pkg-java umbrella so it can be team maintained. sat4j is only used by
> eclipse so that would make sense.
>
> Emmanuel Bourg
>

[toc] | [prev] | [next] | [standalone]


#9810

FromChristopher Hoskin <christopher.hoskin@gmail.com>
Date2017-07-18 23:30 +0200
Message-ID<u4Ie6-7Cc-13@gated-at.bofh.it>
In reply to#9323
My line of enquiry has been to look at what's happening in
eclipse-bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java.

In the startup function,
context.getServiceReference(FrameworkLog.class); and
context.getServiceReference(EnvironmentInfo.class) are returning null.
context is a BundleContext
(eclipse-bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/BundleContext.java)
object.

So I conclude that FrameworkLog and EnvironmentInfo are service
objects which haven't been registered with the Framework service
registry. The question is, what needs to be in place for them to be
registered?

Christopher



On 21 August 2016 at 20:54, Luca Vercelli <luca.vercelli.to@gmail.com> wrote:
> Thank you Emmanuel.
>
> I'm sorry for the delay, I'm not at home this month.
>
>
> Il 29/07/2016 15:29, Emmanuel Bourg ha scritto:
>> Hi Luca,
>>
>> Le 22/07/2016 à 18:05, Luca Vercelli a écrit :
>>
>>> Eclipse requires Tycho Maven Plugin to build, and I have packaged it
>>> using suggestions from Fedora packagers:
>>> https://mentors.debian.net/package/tycho
>>> (currently, we don't use Fedora scripts to build Tycho, we just use
>>> patches, maven, and maven-repo-helper)
>> Well done! I think you can push the packaging repository to alioth now.
>> I see some potential minor improvements, we can help you.
> That's ok. I suppose I cannot create a repository in Alioth, somebody
> should create it for me, am I right? Something like
> https://git.debian.org/git/pkg-java/tycho.git ?
>
>>
>>> Then, I have tried to build Eclipse.
>>> I have uploaded my trials here:
>>>
>>> https://anonscm.debian.org/cgit/pkg-java/eclipse.git/tree/debian?h=experimental
>>>
>>> During the build, Tycho fails with tons of errors. They are attached.
>>> Can anyone try to help me?
>> I see two issues:
>> - something that looks like a tycho error. Did you try switching the
>> tycho jar you built with the official one? Maybe you forgot something in
>> the tycho package (some classes or resource files).
> Yes, and no. This package creates 15-20 jars... I have tried to replace
> some of them, however these jars are not "patched", so I get many more
> errors.
>
>> - org.eclipse.osgi.storagemanager.ManagedOutputStream is not found. This
>> class comes from eclipse, maybe the modules aren't compiled in the right
>> order?
> That class exists. It is in the org.eclipse.osgi jar. I cannot
> understand why it is not found at runtime.
>
> Luca
>>
>>> As a minor issue, Tycho requires a recent version of sat4j. I have
>>> packaged it here:
>>> https://mentors.debian.net/package/sat4j
>>> I have already tried to contact the maintainer, however I didn't get any
>>> feedback.
>> I think we should ask Michael Tautschnig to move the package under the
>> pkg-java umbrella so it can be team maintained. sat4j is only used by
>> eclipse so that would make sense.
>>
>> Emmanuel Bourg
>>
>

[toc] | [prev] | [next] | [standalone]


#9815

FromChristopher Hoskin <christopher.hoskin@gmail.com>
Date2017-07-20 08:30 +0200
Message-ID<u5d8d-3nk-1@gated-at.bofh.it>
In reply to#9810
My current hunch is that we might need to add
org.eclipse.osgi.services_3.5.0.v20150714-1510.jar to
tycho-bundles-external-0.25.0.zip to provide EnvironmentInfo.

Christopher

On 18 July 2017 at 22:21, Christopher Hoskin
<christopher.hoskin@gmail.com> wrote:
> My line of enquiry has been to look at what's happening in
> eclipse-bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java.
>
> In the startup function,
> context.getServiceReference(FrameworkLog.class); and
> context.getServiceReference(EnvironmentInfo.class) are returning null.
> context is a BundleContext
> (eclipse-bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/BundleContext.java)
> object.
>
> So I conclude that FrameworkLog and EnvironmentInfo are service
> objects which haven't been registered with the Framework service
> registry. The question is, what needs to be in place for them to be
> registered?
>
> Christopher
>
>
>
> On 21 August 2016 at 20:54, Luca Vercelli <luca.vercelli.to@gmail.com> wrote:
>> Thank you Emmanuel.
>>
>> I'm sorry for the delay, I'm not at home this month.
>>
>>
>> Il 29/07/2016 15:29, Emmanuel Bourg ha scritto:
>>> Hi Luca,
>>>
>>> Le 22/07/2016 à 18:05, Luca Vercelli a écrit :
>>>
>>>> Eclipse requires Tycho Maven Plugin to build, and I have packaged it
>>>> using suggestions from Fedora packagers:
>>>> https://mentors.debian.net/package/tycho
>>>> (currently, we don't use Fedora scripts to build Tycho, we just use
>>>> patches, maven, and maven-repo-helper)
>>> Well done! I think you can push the packaging repository to alioth now.
>>> I see some potential minor improvements, we can help you.
>> That's ok. I suppose I cannot create a repository in Alioth, somebody
>> should create it for me, am I right? Something like
>> https://git.debian.org/git/pkg-java/tycho.git ?
>>
>>>
>>>> Then, I have tried to build Eclipse.
>>>> I have uploaded my trials here:
>>>>
>>>> https://anonscm.debian.org/cgit/pkg-java/eclipse.git/tree/debian?h=experimental
>>>>
>>>> During the build, Tycho fails with tons of errors. They are attached.
>>>> Can anyone try to help me?
>>> I see two issues:
>>> - something that looks like a tycho error. Did you try switching the
>>> tycho jar you built with the official one? Maybe you forgot something in
>>> the tycho package (some classes or resource files).
>> Yes, and no. This package creates 15-20 jars... I have tried to replace
>> some of them, however these jars are not "patched", so I get many more
>> errors.
>>
>>> - org.eclipse.osgi.storagemanager.ManagedOutputStream is not found. This
>>> class comes from eclipse, maybe the modules aren't compiled in the right
>>> order?
>> That class exists. It is in the org.eclipse.osgi jar. I cannot
>> understand why it is not found at runtime.
>>
>> Luca
>>>
>>>> As a minor issue, Tycho requires a recent version of sat4j. I have
>>>> packaged it here:
>>>> https://mentors.debian.net/package/sat4j
>>>> I have already tried to contact the maintainer, however I didn't get any
>>>> feedback.
>>> I think we should ask Michael Tautschnig to move the package under the
>>> pkg-java umbrella so it can be team maintained. sat4j is only used by
>>> eclipse so that would make sense.
>>>
>>> Emmanuel Bourg
>>>
>>

[toc] | [prev] | [next] | [standalone]


#9825

FromChristopher Hoskin <christopher.hoskin@gmail.com>
Date2017-07-22 21:10 +0200
Message-ID<u67WN-5Nu-13@gated-at.bofh.it>
In reply to#9815
I've spent the whole day looking at tycho and am going to have to put
it to one side for the time being.

I'm not clear what, if any, relevance
tycho-bundles-external-0.25.0.zip has to the build?

My guess is that in order to build eclipse, various OSGi bundles like
org.eclipse.osgi.services need to be pulled in from a P2 repository,
but it's beyond my current level of understanding to see how to do
this. (I'm not a Java programmer - and I've no prior knowledge of
OSGi).

Perhaps someone more experienced in this area might be able to take a look?

Christopher

On 20 July 2017 at 07:23, Christopher Hoskin
<christopher.hoskin@gmail.com> wrote:
> My current hunch is that we might need to add
> org.eclipse.osgi.services_3.5.0.v20150714-1510.jar to
> tycho-bundles-external-0.25.0.zip to provide EnvironmentInfo.
>
> Christopher
>
> On 18 July 2017 at 22:21, Christopher Hoskin
> <christopher.hoskin@gmail.com> wrote:
>> My line of enquiry has been to look at what's happening in
>> eclipse-bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java.
>>
>> In the startup function,
>> context.getServiceReference(FrameworkLog.class); and
>> context.getServiceReference(EnvironmentInfo.class) are returning null.
>> context is a BundleContext
>> (eclipse-bundles/org.eclipse.osgi/osgi/src/org/osgi/framework/BundleContext.java)
>> object.
>>
>> So I conclude that FrameworkLog and EnvironmentInfo are service
>> objects which haven't been registered with the Framework service
>> registry. The question is, what needs to be in place for them to be
>> registered?
>>
>> Christopher
>>
>>
>>
>> On 21 August 2016 at 20:54, Luca Vercelli <luca.vercelli.to@gmail.com> wrote:
>>> Thank you Emmanuel.
>>>
>>> I'm sorry for the delay, I'm not at home this month.
>>>
>>>
>>> Il 29/07/2016 15:29, Emmanuel Bourg ha scritto:
>>>> Hi Luca,
>>>>
>>>> Le 22/07/2016 à 18:05, Luca Vercelli a écrit :
>>>>
>>>>> Eclipse requires Tycho Maven Plugin to build, and I have packaged it
>>>>> using suggestions from Fedora packagers:
>>>>> https://mentors.debian.net/package/tycho
>>>>> (currently, we don't use Fedora scripts to build Tycho, we just use
>>>>> patches, maven, and maven-repo-helper)
>>>> Well done! I think you can push the packaging repository to alioth now.
>>>> I see some potential minor improvements, we can help you.
>>> That's ok. I suppose I cannot create a repository in Alioth, somebody
>>> should create it for me, am I right? Something like
>>> https://git.debian.org/git/pkg-java/tycho.git ?
>>>
>>>>
>>>>> Then, I have tried to build Eclipse.
>>>>> I have uploaded my trials here:
>>>>>
>>>>> https://anonscm.debian.org/cgit/pkg-java/eclipse.git/tree/debian?h=experimental
>>>>>
>>>>> During the build, Tycho fails with tons of errors. They are attached.
>>>>> Can anyone try to help me?
>>>> I see two issues:
>>>> - something that looks like a tycho error. Did you try switching the
>>>> tycho jar you built with the official one? Maybe you forgot something in
>>>> the tycho package (some classes or resource files).
>>> Yes, and no. This package creates 15-20 jars... I have tried to replace
>>> some of them, however these jars are not "patched", so I get many more
>>> errors.
>>>
>>>> - org.eclipse.osgi.storagemanager.ManagedOutputStream is not found. This
>>>> class comes from eclipse, maybe the modules aren't compiled in the right
>>>> order?
>>> That class exists. It is in the org.eclipse.osgi jar. I cannot
>>> understand why it is not found at runtime.
>>>
>>> Luca
>>>>
>>>>> As a minor issue, Tycho requires a recent version of sat4j. I have
>>>>> packaged it here:
>>>>> https://mentors.debian.net/package/sat4j
>>>>> I have already tried to contact the maintainer, however I didn't get any
>>>>> feedback.
>>>> I think we should ask Michael Tautschnig to move the package under the
>>>> pkg-java umbrella so it can be team maintained. sat4j is only used by
>>>> eclipse so that would make sense.
>>>>
>>>> Emmanuel Bourg
>>>>
>>>

[toc] | [prev] | [next] | [standalone]


#9826

FromMarkus Koschany <apo@debian.org>
Date2017-07-22 21:20 +0200
Message-ID<u686t-5Qs-5@gated-at.bofh.it>
In reply to#9825

[Multipart message — attachments visible in raw view] — view raw

Am 22.07.2017 um 21:05 schrieb Christopher Hoskin:
> I've spent the whole day looking at tycho and am going to have to put
> it to one side for the time being.
> 
> I'm not clear what, if any, relevance
> tycho-bundles-external-0.25.0.zip has to the build?
> 
> My guess is that in order to build eclipse, various OSGi bundles like
> org.eclipse.osgi.services need to be pulled in from a P2 repository,
> but it's beyond my current level of understanding to see how to do
> this. (I'm not a Java programmer - and I've no prior knowledge of
> OSGi).
> 
> Perhaps someone more experienced in this area might be able to take a look?
> 
> Christopher

Hi,

updating Eclipse to the latest version is a non-trivial task and
requires a lot of time and research. I have also tried it but I never
got to the point where I felt comfortable with the result. That doesn't
mean I have given up yet but it requires some dedicated effort. In
short: I can't help you at the moment but if you are able to reproduce
Fedora's packaging of Eclipse, then you are one step closer to the final
result.

Regards,

Markus

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.java


csiph-web