From nobody Thu Jan 25 04:53:57 2024 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TL7lS4zylz57jcS for ; Thu, 25 Jan 2024 04:54:12 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TL7lR6jMdz4V9D for ; Thu, 25 Jan 2024 04:54:11 +0000 (UTC) (envelope-from mizhka@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=QzsGLBR3; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mizhka@gmail.com designates 2a00:1450:4864:20::530 as permitted sender) smtp.mailfrom=mizhka@gmail.com Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-55cca88b6a5so1077053a12.1 for ; Wed, 24 Jan 2024 20:54:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706158450; x=1706763250; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=2scqvtfv6c+Kn9pMtkpaF1v976MjB/aY1e4Uz11oV9M=; b=QzsGLBR3gIxrvo/ecGvUi41UFocUkfT3emMfgdHZ07q4lTcW0dF7zwH7ZZGvBQNDUI su3coA6UnS3GTb9Es5eFITUTR5J9vF47GLIKjcQ0BL0eninhkBuos5R8cpr3ysT4rBru 9xCt9WCTUEM9OzVh6yP5nTh06Kcc28RObA2lT9YUYCpupJQji+HLUUNYZIhgYQvlsPp9 UXmxLgvzHcPCUOCCcbRcTS6Fotc7mS9GasJNyi7tteC/V7tXpbvyVGJNQVIn9D2or2CR XmsZlARJeSe05EBWr7KUzI4u9om64QBPrxpvW6NUEHucGY5sPwOBXNZqargB7ujahgOy aMcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706158450; x=1706763250; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2scqvtfv6c+Kn9pMtkpaF1v976MjB/aY1e4Uz11oV9M=; b=FvTR2ED8KZWOayyVQoIUOGQb/eN1U7Nf7Wsk/Rz3t94iy2jHz7EUXeDL5pkBt2jgdE kdF/zk6hM6cYHiN8MhsMkUmG/l0VIwcKpFEOgeCyQtkCdQ7sMNzocPDFJ4bxjOMMpBni Y7rpLqOZqvsqGnkDtSRnRNrQzb00a3nLa8C3mOZ/oBKdTFHjppJ+EjG/IfnSH+gBAb6o tnOTBGJFJ8PrU/52ZdbRVLvOkFpAxJLy4uWdZQdufB2D8HKWkXQp4Mu5JIjII+cqal/7 tWI5z814VDML1x/ZVeZcRr7B64MloD8VMyCNE9qTansJSgwCkxnSTxnHp3CPzgsqX2Am Km+g== X-Gm-Message-State: AOJu0Yx+bGhDR1TDyWeNjjAllbsRQl1xl1DtSHKh7CGoToJK7TKFtZaI VeCn59C9aLr1xnRWQwfzslA0jKMnYH10xioBqX4mN6RaelJLAwiZ1GNDApp2EgsMMg/9ujKBKiQ 0u9HxWq55ZY26FJ2aAiZLddFs6zuuWDPv X-Google-Smtp-Source: AGHT+IHu1HB/p9/YjS0h+I2ZKmBYGqrSQWvqELe7v0dBtzgH7zp/t+zVWsEO9mvWuobwMS6hbTrgP8JJttG2cKDCt7s= X-Received: by 2002:a05:6402:783:b0:55d:360:8217 with SMTP id d3-20020a056402078300b0055d03608217mr78585edy.3.1706158449628; Wed, 24 Jan 2024 20:54:09 -0800 (PST) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 References: <1933441589.1620.1706020359483@localhost> <8a405812-b886-4618-879b-621f10373478@gmx.de> In-Reply-To: <8a405812-b886-4618-879b-621f10373478@gmx.de> From: Michael Zhilin Date: Thu, 25 Jan 2024 07:53:57 +0300 Message-ID: Subject: Re: FreeBSD Port: java/eclipse To: Norbert Grundmann Cc: ports@freebsd.org Content-Type: multipart/alternative; boundary="000000000000521823060fbdf8b3" X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_TO(0.00)[gmx.de]; RCPT_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_FROM(0.00)[gmail.com]; FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::530:from]; PREVIOUSLY_DELIVERED(0.00)[ports@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MLMMJ_DEST(0.00)[ports@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; FREEFALL_USER(0.00)[mizhka]; FREEMAIL_ENVFROM(0.00)[gmail.com] X-Rspamd-Queue-Id: 4TL7lR6jMdz4V9D --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, 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 ... 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 -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 > *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
Hi,=C2=A0

It= is nice to hear that I'm not only user of Eclipse and somebody still l= oves it.=C2=A0

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

Thank you,=C2=A0
=C2=A0Michael

On Tue, 23 Jan 2024, 18:39 Norbert Grundmann= , <ngrundmann@gmx.de> wrote:=
=20 =20 =20
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 have to add a "-Dnative" parameter like:
# mvn clean verify -DskipTests=3Dtrue -Dnative=3Dgtk.linux.x86_6=
4

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] -------------------------------------------------------------------= -----
[INFO] BUILD FAILURE
[INFO] -------------------------------------------------------------------= -----
[INFO] Total time:=C2=A0 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=3D"true" dir=3D"${build_dir}" executable=3D"sh">... @= 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
[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:
=20

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 Actuall= y 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/Pla= tform-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.plat=
form.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 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] --------------------------------------------------------------------=
----

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

Cheers and many greetings from Germany :-)=C2=A0 Norbert

=C2=A0

--
I love penguins at the south pole, windows in my house and apples on my tre=
e, 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&quo= t;? Why would it build a Linux binary on your (unassumingly) FreeBSD machine?

Regards,
Ronald.
=C2=A0


--
I love penguins at the south pole, windows in my house and apples on my tre=
e, but not in my computer :)
--000000000000521823060fbdf8b3--