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.hos...@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.hos...@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...@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
>>>>
>>>

Reply via email to