git: f3a12dc72aa7 - main - java/sigar: fix compilation with jdk21
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 11 Dec 2025 13:21:59 UTC
The branch main has been updated by ronald:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f3a12dc72aa72af22212e3e37c5f29652eae0cbb
commit f3a12dc72aa72af22212e3e37c5f29652eae0cbb
Author: Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-11 13:20:47 +0000
Commit: Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-11 13:20:47 +0000
java/sigar: fix compilation with jdk21
PR: 272855
---
java/sigar/files/patch-bindings_java_build.xml | 18 ++++++++++++++++++
.../patch-bindings_java_hyperic__jni_jni-build.xml | 10 ++++++++++
2 files changed, 28 insertions(+)
diff --git a/java/sigar/files/patch-bindings_java_build.xml b/java/sigar/files/patch-bindings_java_build.xml
new file mode 100644
index 000000000000..81752c5aa7eb
--- /dev/null
+++ b/java/sigar/files/patch-bindings_java_build.xml
@@ -0,0 +1,18 @@
+--- bindings/java/build.xml.orig 2025-12-11 12:56:58 UTC
++++ bindings/java/build.xml
+@@ -94,7 +94,6 @@
+ <target name="compile">
+ <mkdir dir="${build}/classes"/>
+ <javac destdir="${build}/classes"
+- source="1.6" target="1.6"
+ sourcepath=""
+ debug="true"
+ classpathref="libjars">
+@@ -109,7 +108,6 @@
+ <target name="compile-tests">
+ <mkdir dir="${build}/classes"/>
+ <javac destdir="${build}/classes"
+- source="1.6" target="1.6"
+ sourcepath=""
+ debug="true"
+ classpathref="testjars">
diff --git a/java/sigar/files/patch-bindings_java_hyperic__jni_jni-build.xml b/java/sigar/files/patch-bindings_java_hyperic__jni_jni-build.xml
new file mode 100644
index 000000000000..935a1eb06254
--- /dev/null
+++ b/java/sigar/files/patch-bindings_java_hyperic__jni_jni-build.xml
@@ -0,0 +1,10 @@
+--- bindings/java/hyperic_jni/jni-build.xml.orig 2025-12-11 13:12:48 UTC
++++ bindings/java/hyperic_jni/jni-build.xml
+@@ -161,7 +161,6 @@ -->
+ <echo message="jni.src=${jni.src}, jni.jdk.os=${jni.jdk.os}, ${sun.arch.data.model}-bit"/>
+
+ <javac srcdir="${jni.src.java}" destdir="${build}/classes" debug="true"
+- source="1.6" target="1.6"
+ includes="org/hyperic/jni/*.java"/>
+
+ <taskdef name="libarch" classname="org.hyperic.jni.ArchNameTask">