Github messages for voidlinux
 help / color / mirror / Atom feed
From: jadynbrammer <jadynbrammer@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] eclipse: update to 4.32 and add aarch64 support
Date: Wed, 28 Aug 2024 08:14:35 +0200	[thread overview]
Message-ID: <20240828061435.72DC02CCD8@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-51993@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1087 bytes --]

There is an updated pull request by jadynbrammer against master on the void-packages repository

https://github.com/jadynbrammer/void-packages update-eclipse-to-4.32
https://github.com/void-linux/void-packages/pull/51993

eclipse: update to 4.32 and add aarch64 support
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64.
- I built this PR locally for other architectures: aarch64 (xbuild, untested)

EDIT: thanks @classabbyamp for the assist fixing this one :3

Eclipse is shipping libs for all supported platforms in their tarballs now, and this was causing dependency problems. Deleting the offending libraries from the build dir fixes the issue.

~~Package builds successfully but cannot be installed:~~

~~eclipse-4.32.0_1: broken, unresolvable shlib `ld-linux-riscv64-lp64d.so.1'~~
~~Transaction aborted due to unresolved shlibs.~~

~~Requesting assistance resolving.~~

A patch file from https://github.com/void-linux/void-packages/pull/51993.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-update-eclipse-to-4.32-51993.patch --]
[-- Type: text/x-diff, Size: 2789 bytes --]

From 92fc4fbc8ba24f1eeaa0337e18899e5dd4380615 Mon Sep 17 00:00:00 2001
From: Jadyn Brammer <jadyn@brammer.social>
Date: Sun, 25 Aug 2024 20:03:44 -0500
Subject: [PATCH] eclipse: update to 4.32

* added aarch64 support

* cleaned up / refactored template
---
 srcpkgs/eclipse/template | 39 +++++++++++++++++++++++++++------------
 1 file changed, 27 insertions(+), 12 deletions(-)

diff --git a/srcpkgs/eclipse/template b/srcpkgs/eclipse/template
index 3bd6569c33585f..e6a4a5fe100893 100644
--- a/srcpkgs/eclipse/template
+++ b/srcpkgs/eclipse/template
@@ -1,27 +1,29 @@
 # Template file for 'eclipse'
 pkgname=eclipse
-version=4.30.0
-revision=2
-#code name of version
-_release=2023-12
-archs="x86_64"
-depends="openjdk11 gtk+3 libwebkit2gtk41 libXtst
+version=4.32.0
+revision=1
+archs="x86_64* aarch64*"
+depends="openjdk21 gtk+3 libwebkit2gtk41 libXtst
  hicolor-icon-theme desktop-file-utils"
 short_desc="IDE for Java and other languages"
 maintainer="mobinmob <mobinmob@disroot.org>"
 license="EPL-1.0"
 homepage="https://eclipse.org"
 make_dirs="/usr/lib/eclipse/dropins 0770 root users"
-_patch=R
-_edition=java
-_mirror="http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse"
-distfiles="${_mirror}/technology/epp/downloads/release/${_release}/${_patch}/eclipse-${_edition}-${_release}-R-linux-gtk-x86_64.tar.gz"
-checksum=09fda3acd8da911b5e18efd6d7ca27784f440ccdd52f28bf94869f81f7e9ad47
 nopie=yes
 nostrip=yes
-allow_unknown_shlibs=yes # glibc sonames issue
 python_version=3
 
+case ${XBPS_TARGET_MACHINE} in
+	x86_64*)
+		distfiles="https://mirror.umd.edu/eclipse/technology/epp/downloads/release/2024-06/R/eclipse-java-2024-06-R-linux-gtk-x86_64.tar.gz"
+		checksum="7d77e3d0f226c9dda73d491a1af3aeec11807881e44e870a1fde2833f55df8b5"
+		;;
+	aarch64*)
+		distfiles="https://mirror.umd.edu/eclipse/technology/epp/downloads/release/2024-06/R/eclipse-java-2024-06-R-linux-gtk-aarch64.tar.gz"
+		checksum="d046576e781722ca3c7d2f1bbd20cfc91182aded9d174fbac3295d43a1a11a6a"
+		;;
+esac
 
 do_install() {
 	vmkdir usr/lib/eclipse
@@ -29,6 +31,19 @@ do_install() {
 	sed -i '6i-vm' ${DESTDIR}/usr/lib/eclipse/eclipse.ini
 	sed -i '7i/usr/lib/jvm/openjdk11/bin' ${DESTDIR}/usr/lib/eclipse/eclipse.ini
 
+	# remove libjnidispatch.so for platforms other than the current build
+	# (prevents false unresolved shlibs issues)
+	case ${XBPS_TARGET_MACHINE} in
+		x86_64*)
+			find "$DESTDIR"/usr/lib/eclipse/plugins/com.sun.jna*/com/sun/jna \
+				-name libjnidispatch.so -not -path '*/linux-x86-64/*' -delete
+			;;
+		aarch64*)
+			find "$DESTDIR"/usr/lib/eclipse/plugins/com.sun.jna*/com/sun/jna \
+				-name libjnidispatch.so -not -path '*/linux-aarch64/*' -delete
+			;;
+	esac
+
 	vbin ${FILESDIR}/eclipse.sh eclipse
 	vinstall ${FILESDIR}/eclipse.desktop 644 usr/share/applications
 

  parent reply	other threads:[~2024-08-28  6:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-26  1:08 [PR PATCH] eclipse: update to 4.32 [WIP] jadynbrammer
2024-08-26  2:12 ` [PR PATCH] [Updated] " jadynbrammer
2024-08-26  5:19 ` [PR REVIEW] eclipse: update to 4.32 classabbyamp
2024-08-26  5:21 ` classabbyamp
2024-08-26  5:22 ` classabbyamp
2024-08-28  5:45 ` [PR PATCH] [Updated] eclipse: update to 4.32 and add aarch64 support jadynbrammer
2024-08-28  6:14 ` jadynbrammer [this message]
2024-08-28  6:32 ` jadynbrammer
2024-08-28 19:17 ` [PR PATCH] [Updated] " jadynbrammer
2024-08-28 19:29 ` jadynbrammer
2024-08-28 20:40 ` jadynbrammer
2024-08-29 16:36 ` [PR REVIEW] " classabbyamp
2024-08-29 16:39 ` classabbyamp
2024-08-29 19:21 ` [PR PATCH] [Updated] " jadynbrammer
2024-08-29 19:22 ` [PR REVIEW] " jadynbrammer
2024-08-30 20:35 ` [PR PATCH] [Merged]: " classabbyamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240828061435.72DC02CCD8@inbox.vuxu.org \
    --to=jadynbrammer@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).