From nobody Thu Oct 6 09:38:40 2022 X-Original-To: ports-bugs@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 4MjmbQ6lYMz4fRFm for ; Thu, 6 Oct 2022 09:38:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MjmbQ4BT9z40PH for ; Thu, 6 Oct 2022 09:38:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MjmbQ31wmz1CL3 for ; Thu, 6 Oct 2022 09:38:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2969cgRG019351 for ; Thu, 6 Oct 2022 09:38:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2969cgJi019350 for ports-bugs@FreeBSD.org; Thu, 6 Oct 2022 09:38:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 266864] java/eclipse: R4_25 update with interim diff Date: Thu, 06 Oct 2022 09:38:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: lab+bsd@thinkum.space X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665049122; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cjmj6wD3baQyI6EMYKkmLfQj9Oa7CHme92bt+LdaIRY=; b=EbJnusKZoNXXEd08G2nisGIfpMaMQ0GpECvMNMTXJE2lL8sL34RFmtCJL+RyvJVoujMuBH paDBDPcxwpA5QwssicWTt07jm403t/ZP5z6yhUO/F+e2HMeuBv3APrN2LZUTfXLbv6DdJH v+ZN4hCzICL9CGbmRln01V4k9olZRYxhlEsScCXfD11JrZp1SjO4JQpx+M/SAAdZiMpCkg ez2hfpa6uVvbqd6t4QIToLujbDpDJtKN4RIisHrJrIl9XXsocuhjel5tYaoFdBbueZkbAC DBJAgGehaxUixVjMRslikZ9naxxDffRyuKBQKhcqXB9Mdpeg8BAfW/X/i5ZWsA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665049122; a=rsa-sha256; cv=none; b=LQRnFVd7DenScgQbGC7mwBokyaKiAxY96Ecnk3cHVf7gP/7cRgLqkq7btd4qYtyw7JWvL2 8oHxDFk5nzzOu0YXKGRwhlpnpFxijFGpjtpdBIrDoDLEKLG3RFBWncNfaqWd1AxXNkSKbV GnJhHIZNbLDJGpzvtcUL92E21zsrkT6p8qN2YOFs8jRjMNWoBzGlg4PZsd2Zsr+HgQKadb On//ku/8lMNP/EYLEZ3sIfrU/sZM4Dg71/i7o70+UxAcTRphpGriuN5z2SApQgxaRl0kRz u86HC0jLeIBixjHcK9PYkKh4zqeWTkifAdk4cxBPeVcOzGP03OddT2Bb8Vq02Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266864 Bug ID: 266864 Summary: java/eclipse: R4_25 update with interim diff Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: lab+bsd@thinkum.space CC: jonc@chen.org.nz Flags: maintainer-feedback?(jonc@chen.org.nz) CC: jonc@chen.org.nz Created attachment 237117 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D237117&action= =3Dedit Interim update for R4_24 =3D> R4_25 (needs network for maven dependencies) There's a new release of the Eclipse IDE and dependent components, R4_25. I= 've developed a patch for R4_25 on amd64, attached. Albeit, this patch may not be immediately usable for some builds with Poudriere. For the update from R4_24 to R4_25, and until a pull request can= be forwarded to eclipse-maven-repo[1] the patch will require network access in= the build environment, in order to complete the maven dependency resolution for= the build. I'd like to forward a pull request to eclipse-maven-repo though candidly, I= 'm not sure about the time scale for that. My own network connection is fairly limited for upstream data, and it can be fairly spotty for downstream. I'm seeing 461MB of dependencies under work/eclipse-maven-repo-4.25/ after some various builds. If I may be able to spin up a cloud image and submit a pull request from there, then once the pull request goes through, this patch cou= ld be updated for normal R4_25 release builds. As some further notes on the patch: - Some of the Eclipse repositories have been consolidated between R4_24 and R4_25. I've tried to combine patches for the consolidated repositories. -- thye eclipse.platform.team, eclipse.platform.runtime, and eclipse.platform.resources sources have been consolidated to the eclipse.platform repository - respectively, as eclipse.platform/team, eclipse.platform/runtime and eclipse.platform/resources.=20 -- Similarly: -- rt.equinox.bundles/% =3D> equinox/bundles/% -- rt.equinox.framework/bundles/% =3D> equinox/bundles/% - The patch adds a GH_TUPLE eclipse- equinox:equinox:${ECLIPSE_TAG}:v/equinox - The patched R4_25 port will require Java 17 or later. While the most of t= he Eclipse sources appear to be oriented to Java 11, I wasn't able to build wi= th Java 11. Some of the dependencies have been built with a newer Java release, and the build failed. It was built successfully with Java 17 and Java 18 on amd64 - Corresponding to the JDK 17+ requirement, the patched port will update so= urce files to ensure that everything (or nearly everything) will build with the target JDK. I'd still noticed some warnings about mismatch during the build, not many though. I've not noticed anything failing, in using the patched Eclipse with OpenJDK18 on amd64 - Corresponding to an update in the patches, everything in examples/org.eclipse.swt.examples will be skipped in the build. I wasn't ab= le to build these bundles with the newer JDK. I've not yet tried to develop a patch for the source update on these example bundles. - This diff will update the pre-patch script for the consolidated sources, = and will add some additional code in order to update individual launcher files = for the build - Eclipse may have added an infocenter bundle. afaict it's a servlet being = used under Jetty for the help interface. Some static patch code was added for th= is. This was also part of the reason for patching the *.product files and other files with reinplace in the Makefile, to correspond with the JDK version us= ed in the build. - I'm fairly certain I've got all the patching right for the differences in architecture names. This could probably use a linting however, or at least a test with each supported architecture. Candidly, I don't have a powerpc64, powerpc64le, or aarch VM immediately available for tests, have only been ab= le to test the amd64 build so far. - I wasn't certain of how the original patches were created. Due to the different ordering for the patched files and the consolidation in the upstr= eam sources, the diff may not make it very easy to track the changes in the pat= ches - The patched port will install an SVG file (scalable icon) and the 48x48 Eclipse *.ico file under the XDG desktop icons dirs. At least one of these might be used for the desktop entry, when displayed under a window manager menu. - The PORTVERSION_DEPS field was added to the Makefile at least for temporary/interm builds. It's used as a facility for reusing the existing eclipse-maven-repo for R4_24 ... for distinfo consistency. This file will n= ot actually be used for the build, however - it will need an update to the eclipse-maven-repo for R4_25. In the meanwhile, every build with this patch= ed port will need a Maven depdency:resolve during the build. (This can be facilitated partly with local scripting for keeping a cache of the Maven artifacts outside of the distifles sources tree).=20 - This patch has not been tested with mvn --offline - The patched Makefile will not add --offline to the Maven cmd until PORTVERSION_DEPS =3D=3D PORTVERSION - The patched Makefile will add -X to the Maven cmd when WITH_DEBUG. Althou= gh Maven will produce a lot of output when built with '-X', any build failures= may be more apparent as for what failed then. Adding the following to make.conf will set WITH_DEBUG of course: WITH_DEBUG_PORTS+=3D java/eclipse I wasn't able to locate any documentation about any debug support in the bu= ild itself. The debug option here would be mainly for debugging the build. If it affects CFLAGS, it might also affect the SWT build. I'm not certain of whether or how the update could affect other Eclipse por= ts, e.g eclipse-cdt. I'll try to take a look at those Although it's not a complete patch as yet - lacking a complete distfile sup= port - perhaps it could be of any help for a port upgrade, as is? [1] https://github.com/daemonblade/eclipse-maven-repo [2] https://www.eclipse.org/windowbuilder/ --=20 You are receiving this mail because: You are the assignee for the bug.=