Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 2024 16:39:18 +0100
From:      Norbert Grundmann <ngrundmann@gmx.de>
To:        ports@FreeBSD.org
Subject:   Re: FreeBSD Port: java/eclipse
Message-ID:  <8a405812-b886-4618-879b-621f10373478@gmx.de>
In-Reply-To: <1933441589.1620.1706020359483@localhost>
References:  <cfe2cb02-90d3-4753-8a8a-e4be794e8120@gmx.de> <1933441589.1620.1706020359483@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------mDEIBGdj5FcnC2H8zkYhlNgj
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Hallo Ronald,

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 ha=
ve
to add a "-Dnative" parameter like:

# mvn clean verify -DskipTests=3Dtrue -Dnative=3Dgtk.linux.x86_64

it did not compile and stopped with an error.

...
[INFO] [bundle] Standard Widget Toolkit for GTK 3.125.0-SNAPSHOT FAILURE
[=C2=A0 9.977 s]
...
[INFO]
=2D-----------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
=2D-----------------------------------------------------------------------
[INFO] Total time:=C2=A0 51.214 s
[INFO] Finished at: 2024-01-23T16:04:50+01:00
[INFO]
=2D-----------------------------------------------------------------------
[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=3D"true" dir=3D"${build_dir}"
executable=3D"sh">... @ 26:73 in
/home/ng/appl/eclipse/git/eclipse.platform.releng.aggregator/eclipse.platf=
orm.swt/binaries/org.eclipse.swt.gtk.linux.x86_64/target/antrun/build-main=
.xml
[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]=C2=A0=C2=A0 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>
> *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.=C2=A0 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 :-)=C2=A0 But I did not
>     understand his details.=C2=A0 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 --recursivehttps://github.com/eclipse-platform=
/eclipse.platform.releng.aggregator.git  <https://github.com/eclipse-platf=
orm/eclipse.platform.releng.aggregator.git>
>     # cd eclipse.platform.releng.aggregator
>     # mvn clean verify -DskipTests=3Dtrue
>
>     and it finished with:
>
>     ...
>     [INFO] [feature] Eclipse Product Configuration 1.1.2200-SNAPSHOT SUC=
CESS [  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...=C2=A0 I think this is a goo=
d
>     step.=C2=A0 But now the question - is this okay? 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 gi=
ve
>     me help and I could take over the eclipse portage...
>
>     Cheers and many greetings from Germany :-)=C2=A0 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.


=2D-
I love penguins at the south pole, windows in my house and apples on my tr=
ee, but not in my computer :)

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

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF-=
8">
  </head>
  <body>
    <div class=3D"moz-cite-prefix">
      <div class=3D"moz-cite-prefix">Hallo Ronald,</div>
      <div class=3D"moz-cite-prefix"><br>
      </div>
      <div class=3D"moz-cite-prefix">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
        "-Dnative" parameter like:<br>
      </div>
      <pre># mvn clean verify -DskipTests=3Dtrue -Dnative=3Dgtk.linux.x86_=
64
</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"true"
        dir=3D"${build_dir}" executable=3D"sh"&gt;... @ 26:73 in
/home/ng/appl/eclipse/git/eclipse.platform.releng.aggregator/eclipse.platf=
orm.swt/binaries/org.eclipse.swt.gtk.linux.x86_64/target/antrun/build-main=
.xml<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 class=3D"moz-txt-link-freetext"
href=3D"http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionExce=
ption">http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionExcep=
tion</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.linu=
x.x86_64<br>
      </p>
      <p>it means, the software may need changes / patches to add these
        specific settings...<br>
      </p>
      Cheers, Norbert</div>
    <div class=3D"moz-cite-prefix"><br>
    </div>
    <div class=3D"moz-cite-prefix">On 1/23/24 15:32, Ronald Klop wrote:<br=
>
    </div>
    <blockquote type=3D"cite"
      cite=3D"mid:1933441589.1620.1706020359483@localhost">
      <meta http-equiv=3D"content-type" content=3D"text/html; charset=3DUT=
F-8">
      <br>
      <p><strong>Van:</strong> Norbert Grundmann
        <a class=3D"moz-txt-link-rfc2396E" href=3D"mailto:ngrundmann@gmx.d=
e">&lt;ngrundmann@gmx.de&gt;</a><br>
        <strong>Datum:</strong> dinsdag, 23 januari 2024 14:29<br>
        <strong>Aan:</strong> <a class=3D"moz-txt-link-abbreviated" href=
=3D"mailto:ports@FreeBSD.org">ports@FreeBSD.org</a><br>
        <strong>Onderwerp:</strong> FreeBSD Port: java/eclipse</p>
      <blockquote
style=3D"padding-right: 0px; padding-left: 5px; margin-left: 5px; border-l=
eft: #000000 2px solid; margin-right: 0px">
        <div class=3D"MessageRFC822Viewer" id=3D"P">
          <div class=3D"MultipartAlternativeViewer">
            <div class=3D"TextHTMLViewer" id=3D"P.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 Actual=
ly
                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
                  class=3D"moz-txt-link-abbreviated moz-txt-link-freetext"
                  href=3D"mailto:jonc@chen.org.nz" moz-do-not-send=3D"true=
">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 "compile" an eclipse ide as
                described here:</p>
              <p><a class=3D"moz-txt-link-freetext"
href=3D"https://wiki.eclipse.org/Platform-releng/Platform_Build"
                  moz-do-not-send=3D"true">https://wiki.eclipse.org/Platfo=
rm-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
              class=3D"external free moz-txt-link-freetext"
href=3D"https://github.com/eclipse-platform/eclipse.platform.releng.aggreg=
ator.git"
              moz-do-not-send=3D"true">https://github.com/eclipse-platform=
/eclipse.platform.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.=
732 s]
[INFO] equinox-sdk 4.31.0-SNAPSHOT ........................ SUCCESS [ 12.7=
65 s]
[INFO] eclipse-junit-tests 4.31.0-SNAPSHOT ................ SUCCESS [ 28.3=
56 s]
[INFO] eclipse.platform.repository 4.31.0-SNAPSHOT ........ SUCCESS [08:08=
 min]
[INFO] platform-aggregator 4.31.0-SNAPSHOT ................ SUCCESS [  0.2=
28 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 th=
is
                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 class=3D"moz-signature"
              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 tr=
ee, 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 "instead of creating a linux binary"? 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 class=3D"moz-signature" cols=3D"72">--
I love penguins at the south pole, windows in my house and apples on my tr=
ee, but not in my computer :)</pre>
  </body>
</html>

--------------mDEIBGdj5FcnC2H8zkYhlNgj--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8a405812-b886-4618-879b-621f10373478>