Re: FreeBSD Port: java/eclipse

From: Michael Zhilin <mizhka_at_gmail.com>
Date: Thu, 25 Jan 2024 04:53:57 UTC
Hi,

It is nice to hear that I'm not only user of Eclipse and somebody still
loves it.

I'll prepare patch soon and come back to you for testing if possible.

Thank you,
 Michael

On Tue, 23 Jan 2024, 18:39 Norbert Grundmann, <ngrundmann@gmx.de> wrote:

> Hallo Ronald,
>
> I figured out, that the compilation without specifying a target was okay -
> but there was no *BSD specific target created.  To create it you have to
> add a "-Dnative" parameter like:
>
> # mvn clean verify -DskipTests=true -Dnative=gtk.linux.x86_64
>
> it did not compile and stopped with an error.
>
> ...
> [INFO] [bundle] Standard Widget Toolkit for GTK 3.125.0-SNAPSHOT FAILURE
> [  9.977 s]
> ...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time:  51.214 s
> [INFO] Finished at: 2024-01-23T16:04:50+01:00
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-antrun-plugin:3.1.0:run
> (build-native-binaries) on project org.eclipse.swt.gtk.linux.x86_64: An Ant
> BuildException has occured: exec returned: 1
> [ERROR] around Ant part ...<exec failonerror="true" dir="${build_dir}"
> executable="sh">... @ 26:73 in
> /home/ng/appl/eclipse/git/eclipse.platform.releng.aggregator/eclipse.platform.swt/binaries/org.eclipse.swt.gtk.linux.x86_64/target/antrun/build-mainxml
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <args> -rf :org.eclipse.swt.gtk.linux.x86_64
>
> it means, the software may need changes / patches to add these specific
> settings...
> Cheers, Norbert
>
> On 1/23/24 15:32, Ronald Klop wrote:
>
>
> *Van:* Norbert Grundmann <ngrundmann@gmx.de> <ngrundmann@gmx.de>
> *Datum:* dinsdag, 23 januari 2024 14:29
> *Aan:* ports@FreeBSD.org
> *Onderwerp:* FreeBSD Port: java/eclipse
>
> Hello :-)
>
> I am still using eclipse as my development environment and try to figure
> out how to make a new port.  Actually there is a 4.24 version in the
> packages - it works, but...
>
> So I already (months ago) tried to understand the port by Jonathan Chen (
> jonc@chen.org.nz) - he did a good job :-)  But I did not understand his
> details.  So I tried to "compile" an eclipse ide as described here:
>
> https://wiki.eclipse.org/Platform-releng/Platform_Build
>
> I installed maven3.9, openjdk17 and set
>
> # setenv JAVA_HOME /usr/local/openjdk17
>
> then I did:
>
> # git clone -b master --recursive https://github.com/eclipse-platform/eclipse.platform.releng.aggregator.git
> # cd eclipse.platform.releng.aggregator
> # mvn clean verify -DskipTests=true
>
> and it finished with:
>
> ...
> [INFO] [feature] Eclipse Product Configuration 1.1.2200-SNAPSHOT SUCCESS [  1.517 s]
> [INFO] org.eclipse.rt.osgistarterkit.product 4.31.0-SNAPSHOT SUCCESS [ 17.732 s]
> [INFO] equinox-sdk 4.31.0-SNAPSHOT ........................ SUCCESS [ 12.765 s]
> [INFO] eclipse-junit-tests 4.31.0-SNAPSHOT ................ SUCCESS [ 28.356 s]
> [INFO] eclipse.platform.repository 4.31.0-SNAPSHOT ........ SUCCESS [08:08 min]
> [INFO] platform-aggregator 4.31.0-SNAPSHOT ................ SUCCESS [  0.228 s]
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  39:58 min
> [INFO] Finished at: 2024-01-23T13:59:57+01:00
> [INFO] ------------------------------------------------------------------------
>
> everything compiled fine till the end...  I think this is a good step.
> But now the question - is this okay?  Do I have to change code instead of
> creating a linux binary?  And how to integrate as a eclipse port?  Sorry
> for the questions - maybe someone can give me help and I could take over
> the eclipse portage...
> Cheers and many greetings from Germany :-)  Norbert
>
>
>
> --
> I love penguins at the south pole, windows in my house and apples on my tree, but not in my computer :)
>
>
>
>
> Well, what happens if you try to run the freshly build Eclipse?
>
> BTW: what do you mean by "instead of creating a linux binary"? Why would
> it build a Linux binary on your (unassumingly) FreeBSD machine?
>
> Regards,
> Ronald.
>
>
>
> --
> I love penguins at the south pole, windows in my house and apples on my tree, but not in my computer :)
>
>