git: 190b9776a186 - main - java/eclipse: fix runtime on powerpc64
Piotr Kubaj
pkubaj at FreeBSD.org
Sun Aug 8 22:47:13 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=190b9776a18695f51ce6e509d4ea72f243699add
commit 190b9776a18695f51ce6e509d4ea72f243699add
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-08-08 22:46:59 +0000
Commit: Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-08-08 22:46:59 +0000
java/eclipse: fix runtime on powerpc64
Changing "ppc64le" to "ppc64" (or powerpc64) resolves the SIGSEGV issue on big endian but breaks little endian, so replace only on powerpc64.
Submitted by: hamiltcl at verizon.net
Approved by: jonc at chen.org.nz (maintainer timeout)
---
java/eclipse/Makefile | 1 +
java/eclipse/scripts/pre-build | 8 ++++++++
2 files changed, 9 insertions(+)
diff --git a/java/eclipse/Makefile b/java/eclipse/Makefile
index a6e50ed91f07..d564b94ae541 100644
--- a/java/eclipse/Makefile
+++ b/java/eclipse/Makefile
@@ -2,6 +2,7 @@
PORTNAME= eclipse
PORTVERSION= 4.16
+PORTREVISION= 1
CATEGORIES= java devel
# Update to eclipse.platform.releng.aggregator.git git-tag on git.eclipse.org
diff --git a/java/eclipse/scripts/pre-build b/java/eclipse/scripts/pre-build
index 4529b4089fec..8650542d8802 100644
--- a/java/eclipse/scripts/pre-build
+++ b/java/eclipse/scripts/pre-build
@@ -27,3 +27,11 @@ do
mkdir -p ${GTK_EXE}/freebsd/${A}
touch ${GTK_EXE}/freebsd/${A}/eclipse
done
+
+arch=`uname -p`
+
+if [ "$arch" == "powerpc64" ]
+then
+ sed -i '' -e 's/ppc64le/ppc64/g' eclipse.platform.swt/bundles/org.eclipse.swt/'Eclipse SWT'/gtk/org/eclipse/swt/graphics/Device.java
+ sed -i '' -e 's/ppc64le/ppc64/g' eclipse.platform.swt/bundles/org.eclipse.swt/'Eclipse SWT'/gtk/org/eclipse/swt/widgets/Control.java
+fi
More information about the dev-commits-ports-all
mailing list