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 21:17:59 +0200	[thread overview]
Message-ID: <20240828191759.7EC9C220B8@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: 2546 bytes --]

From 204b8b3c983235aaa5de9406bbb20dde6afe40d4 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 | 35 +++++++++++++++++++++++------------
 1 file changed, 23 insertions(+), 12 deletions(-)

diff --git a/srcpkgs/eclipse/template b/srcpkgs/eclipse/template
index 3bd6569c33585f..320cad40454c95 100644
--- a/srcpkgs/eclipse/template
+++ b/srcpkgs/eclipse/template
@@ -1,27 +1,38 @@
 # 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
+_release="2024-06"
+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/${_release}/R/eclipse-java-${_release}-R-linux-gtk-x86_64.tar.gz"
+		checksum="7d77e3d0f226c9dda73d491a1af3aeec11807881e44e870a1fde2833f55df8b5"
+		;;
+	aarch64*)
+		distfiles="https://mirror.umd.edu/eclipse/technology/epp/downloads/release/${_release}/R/eclipse-java-${_release}-R-linux-gtk-aarch64.tar.gz"
+		checksum="d046576e781722ca3c7d2f1bbd20cfc91182aded9d174fbac3295d43a1a11a6a"
+		;;
+esac
+
+# Skip JNA cross-platform binary components during dependency checks
+for _jna_arch in freebsd-x86-64 freebsd-x86 linux-aarch64 linux-armel \
+		linux-arm linux-loongarch64 linux-mips64el linux-ppc64le linux-ppc \
+		linux-riscv64 linux-s390x linux-x86-64 linux-x86 openbsd-x86-64 \
+		openbsd-x86 sunos-sparc sunos-sparcv9 sunos-x86-64 sunos-x86; do
+	skiprdeps+="/usr/lib/eclipse/plugins/com.sun.jna_5.14.0.v20231211-1200/com/sun/jna/${_jna_arch}/libjnidispatch.so "
+done
 
 do_install() {
 	vmkdir usr/lib/eclipse

  parent reply	other threads:[~2024-08-28 19:17 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
2024-08-28  6:32 ` jadynbrammer
2024-08-28 19:17 ` jadynbrammer [this message]
2024-08-28 19:29 ` [PR PATCH] [Updated] " 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=20240828191759.7EC9C220B8@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).