From nobody Tue Jan 23 15:39:18 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 4TKB8n05PTz573lw for ; Tue, 23 Jan 2024 15:39:21 +0000 (UTC) (envelope-from ngrundmann@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TKB8m1bG7z4m1y for ; Tue, 23 Jan 2024 15:39:20 +0000 (UTC) (envelope-from ngrundmann@gmx.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.de header.s=s31663417 header.b=uc8TQiSB; dmarc=pass (policy=quarantine) header.from=gmx.de; spf=pass (mx1.freebsd.org: domain of ngrundmann@gmx.de designates 212.227.15.18 as permitted sender) smtp.mailfrom=ngrundmann@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1706024359; x=1706629159; i=ngrundmann@gmx.de; bh=WKnBRQJEe3o2GUZPbMSS60275RLd5RSgZP6yQws23q8=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=uc8TQiSBHQKBP/HVmwNIngq1aSjBOB3O0e4azLcRGNdqnCaAF3BPPwIWHJZdsl8Q SoAqSnOQM8QlcppbVAaUeYvjvpCuT8uWogsxUC6APOQgIOLkDbF6YTMf5NpeLejRA Yhk9Dvsdlomf9DG1ZIs9CC3i/uR8oQy+lsldENofF8zaHoAiRMGFJ+yRpqB8YzgcF 0cQ2K3mGYS/VJvxOExtRzqIzvOecIXmDXSmTC6ODO7/2vsnDFuQ827RP13sEHExnz zn89uAVTNmqHa8Qis2L6PEaykJmZpk7qRpK3osbwAq2SRHfHcH6dHglOfh9y/X/LQ 6d1ipGuqxGhtNzlquQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.1.1] ([88.130.49.132]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MJE2D-1rgnkb46Q7-00Ki5v for ; Tue, 23 Jan 2024 16:39:19 +0100 Content-Type: multipart/alternative; boundary="------------mDEIBGdj5FcnC2H8zkYhlNgj" Message-ID: <8a405812-b886-4618-879b-621f10373478@gmx.de> Date: Tue, 23 Jan 2024 16:39:18 +0100 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 User-Agent: Mozilla Thunderbird Subject: Re: FreeBSD Port: java/eclipse Content-Language: en-US To: ports@FreeBSD.org References: <1933441589.1620.1706020359483@localhost> From: Norbert Grundmann In-Reply-To: <1933441589.1620.1706020359483@localhost> X-Provags-ID: V03:K1:ppXJTiS9X9Lvnt90OMTNU7l3izBCW3WQBsfNcbDAQwiA+/7BDDx iPU1ARfs3kVwU6mLRWEIbUwTpBtAsgtA3C4/slS14eZjiRgj/itPwD14NhOlDBgZu/agUao NpdsI9JmzXPY9TmtCE/5UdRM5E7A5VjfInntihLKnFsHMNpzOVqIGTQAgiftfOs1Q6Pre7A CB4h5ErLcff1lOGgiNxyg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:zAxPLW9aHxQ=;TfyndNjecpoFVD+hf0EIJqgcEtL Vfr+bXWtKbVFThF/p6dLpyHfmKNk0FILgRxSW9a6v5+dyyd2PEKkW93lCDJsW/r+VmXX0Q/pY wEl5fCjLliKB4I1hhfGnD2B5tIegHdWbLIo0TtD53P9vs98EHaWNiIOqyyksDQWd66QYhwh/t ucB+fcPFcCIGjwq7xkqVifS964SLjJCUuoTWgi1clIjEjLB233eZiDYLYS9gJmdyNiT0W3L8t qNH2BTWuLZJMq+1nezio0v1ik3D2nX9yQBa5a89lKYLYyRjxrkZoBlnorhjJJZ6E+s7O1OgJ9 3ZhLf/SOH9H+nMEmNTenp+a3OEUsJa56wcCo8UPdiAa/7Pmy1abJuyxVOkSiApfRsvg4m5o6H TE4g3JHdy5wzUA0xHFmvEqUdqH/LASa9qBBZbNpYYGX6biqi1RiBmuPs2aBQpgc2cx4Yfjd0K 4+QKQnud+fPOaFx3guzy/Rs1nMOMM6TCWFMD3PI12QJWd5oYr7RtY4ImV2Vn6ROOhGNyOXzpc JoR0N9qbajEnYAqeUZ4uA2mBvMCRNM2Jx7K8YYaZKX5BpeOQfUd2Phv+WIfC2a08ubyT8Vcnm 6x5DJSxhg3fb1IpS6ZGO1B2sswyKuGVZGCiLhwvWbqsWI49PiRHxnGBAbTH7zoS01rZtTyNND 1lKsPN4Hr9rcZ3DrX++3Ko+yywa3ru8Lm4ee4/CykmFGcSWQ94B1UHx5mwjP927v6OeSLk9sg KsAeUlMqTCcZVNw+76TKtG2Lyy9XJt+kg56yIrsZ04E1Q30Z60U3awLF9qwlqBlEw1Qptui8Y IQGixl70k4KLEEZGJf/7ORwGRMXxw7p01bM0XYD7KAb+qeAl+0nijjXOvB8rGBQu8cPA7JuMY t2OLJ4RZ1Lyr9AEypLNlm6Cy7iap5mwaTaEnJfZJiu1lHQETEzgeB8ncpZ25lImkl/+tpuioq hILA6g== X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmx.de,quarantine]; R_DKIM_ALLOW(-0.20)[gmx.de:s=s31663417]; R_SPF_ALLOW(-0.20)[+a:mout.gmx.net:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; ONCE_RECEIVED(0.10)[]; RCVD_IN_DNSWL_LOW(-0.10)[212.227.15.18:from]; XM_UA_NO_VERSION(0.01)[]; DKIM_TRACE(0.00)[gmx.de:+]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; FREEMAIL_FROM(0.00)[gmx.de]; PREVIOUSLY_DELIVERED(0.00)[ports@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[ports@FreeBSD.org]; RWL_MAILSPIKE_POSSIBLE(0.00)[212.227.15.18:from]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmx.de] X-Rspamd-Queue-Id: 4TKB8m1bG7z4m1y 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 ...... @ 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 -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.=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 > # 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
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_=
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] ------------------------------------------------------------------= ------
[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.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/MojoExecutionExcep= tion
[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.linu= x.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 Actual= ly 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/Platfo= rm-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=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.=
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] -------------------------------------------------------------------=
-----

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

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 tr=
ee, 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.
=C2=A0


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