Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jan 2024 07:53:57 +0300
From:      Michael Zhilin <mizhka@gmail.com>
To:        Norbert Grundmann <ngrundmann@gmx.de>
Cc:        ports@freebsd.org
Subject:   Re: FreeBSD Port: java/eclipse
Message-ID:  <CAF19XBJdpZg%2B4uvufj71yxxXd0o2EB5Ayjfoq6ZiE3X1My%2BOoA@mail.gmail.com>
In-Reply-To: <8a405812-b886-4618-879b-621f10373478@gmx.de>
References:  <cfe2cb02-90d3-4753-8a8a-e4be794e8120@gmx.de> <1933441589.1620.1706020359483@localhost> <8a405812-b886-4618-879b-621f10373478@gmx.de>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000521823060fbdf8b3
Content-Type: text/plain; charset="UTF-8"

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 :)
>
>

--000000000000521823060fbdf8b3
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">Hi,=C2=A0<div dir=3D"auto"><br></div><div dir=3D"auto">It=
 is nice to hear that I&#39;m not only user of Eclipse and somebody still l=
oves it.=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"auto">I&#39;ll =
prepare patch soon and come back to you for testing if possible.=C2=A0</div=
><div dir=3D"auto"><br></div><div dir=3D"auto">Thank you,=C2=A0</div><div d=
ir=3D"auto">=C2=A0Michael</div></div><br><div class=3D"gmail_quote"><div di=
r=3D"ltr" class=3D"gmail_attr">On Tue, 23 Jan 2024, 18:39 Norbert Grundmann=
, &lt;<a href=3D"mailto:ngrundmann@gmx.de">ngrundmann@gmx.de</a>&gt; wrote:=
<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bord=
er-left:1px #ccc solid;padding-left:1ex"><u></u>

 =20
   =20
 =20
  <div>
    <div>
      <div>Hallo Ronald,</div>
      <div><br>
      </div>
      <div>I figured out, that the compilation
        without specifying a target was okay - but there was no *BSD
        specific target created.=C2=A0 To create it you have to add a
        &quot;-Dnative&quot; parameter like:<br>
      </div>
      <pre># mvn clean verify -DskipTests=3Dtrue -Dnative=3Dgtk.linux.x86_6=
4
</pre>
      <p>it did not compile and stopped with an error.</p>
      <p>...<br>
        [INFO] [bundle] Standard Widget Toolkit for GTK 3.125.0-SNAPSHOT
        FAILURE [=C2=A0 9.977 s]<br>
        ...<br>
        [INFO]
        -------------------------------------------------------------------=
-----<br>
        [INFO] BUILD FAILURE<br>
        [INFO]
        -------------------------------------------------------------------=
-----<br>
        [INFO] Total time:=C2=A0 51.214 s<br>
        [INFO] Finished at: 2024-01-23T16:04:50+01:00<br>
        [INFO]
        -------------------------------------------------------------------=
-----<br>
        [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<br>
        [ERROR] around Ant part ...&lt;exec failonerror=3D&quot;true&quot;
        dir=3D&quot;${build_dir}&quot; executable=3D&quot;sh&quot;&gt;... @=
 26:73 in
/home/ng/appl/eclipse/git/eclipse.platform.releng.aggregator/eclipse.platfo=
rm.swt/binaries/org.eclipse.swt.gtk.linux.x86_64/target/antrun/build-mainxm=
l<br>
        [ERROR] -&gt; [Help 1]<br>
        [ERROR] <br>
        [ERROR] To see the full stack trace of the errors, re-run Maven
        with the -e switch.<br>
        [ERROR] Re-run Maven using the -X switch to enable full debug
        logging.<br>
        [ERROR] <br>
        [ERROR] For more information about the errors and possible
        solutions, please read the following articles:<br>
        [ERROR] [Help 1] <a href=3D"http://cwiki.apache.org/confluence/disp=
lay/MAVEN/MojoExecutionException" target=3D"_blank" rel=3D"noreferrer">http=
://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException</a><br>
        [ERROR] <br>
        [ERROR] After correcting the problems, you can resume the build
        with the command<br>
        [ERROR]=C2=A0=C2=A0 mvn &lt;args&gt; -rf :org.eclipse.swt.gtk.linux=
.x86_64<br>
      </p>
      <p>it means, the software may need changes / patches to add these
        specific settings...<br>
      </p>
      Cheers, Norbert</div>
    <div><br>
    </div>
    <div>On 1/23/24 15:32, Ronald Klop wrote:<br>
    </div>
    <blockquote type=3D"cite">
     =20
      <br>
      <p><strong>Van:</strong> Norbert Grundmann
        <a href=3D"mailto:ngrundmann@gmx.de" target=3D"_blank" rel=3D"noref=
errer">&lt;ngrundmann@gmx.de&gt;</a><br>
        <strong>Datum:</strong> dinsdag, 23 januari 2024 14:29<br>
        <strong>Aan:</strong> <a href=3D"mailto:ports@FreeBSD.org" target=
=3D"_blank" rel=3D"noreferrer">ports@FreeBSD.org</a><br>
        <strong>Onderwerp:</strong> FreeBSD Port: java/eclipse</p>
      <blockquote style=3D"padding-right:0px;padding-left:5px;margin-left:5=
px;border-left:#000000 2px solid;margin-right:0px">
        <div id=3D"m_6114893288168679085P">
          <div>
            <div id=3D"m_6114893288168679085P.P.P">
              <p>Hello :-)</p>
              <p>I am still using eclipse as my development environment
                and try to figure out how to make a new port.=C2=A0 Actuall=
y
                there is a 4.24 version in the packages - it works,
                but...</p>
              <p>So I already (months ago) tried to understand the port
                by Jonathan Chen (<a href=3D"mailto:jonc@chen.org.nz" targe=
t=3D"_blank" rel=3D"noreferrer">jonc@chen.org.nz</a>)
                - he did a good job :-)=C2=A0 But I did not understand his
                details.=C2=A0 So I tried to &quot;compile&quot; an eclipse=
 ide as
                described here:</p>
              <p><a href=3D"https://wiki.eclipse.org/Platform-releng/Platfo=
rm_Build" target=3D"_blank" rel=3D"noreferrer">https://wiki.eclipse.org/Pla=
tform-releng/Platform_Build</a></p>
              <p>I installed maven3.9, openjdk17 and set</p>
              <p># setenv JAVA_HOME /usr/local/openjdk17</p>
              <p>then I did:</p>
              <pre># git clone -b master --recursive <a href=3D"https://git=
hub.com/eclipse-platform/eclipse.platform.releng.aggregator.git" target=3D"=
_blank" rel=3D"noreferrer">https://github.com/eclipse-platform/eclipse.plat=
form.releng.aggregator.git</a>
# cd eclipse.platform.releng.aggregator
# mvn clean verify -DskipTests=3Dtrue
</pre>
              <p>and it finished with:</p>
              <pre style=3D"white-space:pre-wrap;white-space:pre-wrap">...
[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.7=
32 s]
[INFO] equinox-sdk 4.31.0-SNAPSHOT ........................ SUCCESS [ 12.76=
5 s]
[INFO] eclipse-junit-tests 4.31.0-SNAPSHOT ................ SUCCESS [ 28.35=
6 s]
[INFO] eclipse.platform.repository 4.31.0-SNAPSHOT ........ SUCCESS [08:08 =
min]
[INFO] platform-aggregator 4.31.0-SNAPSHOT ................ SUCCESS [  0.22=
8 s]
[INFO] --------------------------------------------------------------------=
----
[INFO] BUILD SUCCESS
[INFO] --------------------------------------------------------------------=
----
[INFO] Total time:  39:58 min
[INFO] Finished at: 2024-01-23T13:59:57+01:00
[INFO] --------------------------------------------------------------------=
----
</pre>
              <p>everything compiled fine till the end...=C2=A0 I think thi=
s
                is a good step.=C2=A0 But now the question - is this okay?=
=C2=A0
                Do I have to change code instead of creating a linux
                binary?=C2=A0 And how to integrate as a eclipse port?=C2=A0=
 Sorry
                for the questions - maybe someone can give me help and I
                could take over the eclipse portage...</p>
              Cheers and many greetings from Germany :-)=C2=A0 Norbert
              <p>=C2=A0</p>
              <pre style=3D"white-space:pre-wrap;white-space:pre-wrap">--
I love penguins at the south pole, windows in my house and apples on my tre=
e, but not in my computer :)</pre>
            </div>
          </div>
        </div>
      </blockquote>
      <br>
      <br>
      <br>
      Well, what happens if you try to run the freshly build Eclipse?<br>
      <br>
      BTW: what do you mean by &quot;instead of creating a linux binary&quo=
t;? Why
      would it build a Linux binary on your (unassumingly) FreeBSD
      machine?<br>
      <br>
      Regards,<br>
      Ronald.<br>
      =C2=A0
    </blockquote>
    <p><br>
    </p>
    <pre cols=3D"72">--
I love penguins at the south pole, windows in my house and apples on my tre=
e, but not in my computer :)</pre>
  </div>

</blockquote></div>

--000000000000521823060fbdf8b3--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF19XBJdpZg%2B4uvufj71yxxXd0o2EB5Ayjfoq6ZiE3X1My%2BOoA>