git: afd5eab71209 - main - devel/sabre: fix build with jdk21
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 11 Dec 2025 12:38:40 UTC
The branch main has been updated by ronald:
URL: https://cgit.FreeBSD.org/ports/commit/?id=afd5eab712099ee9462ddef930768b3525a754cd
commit afd5eab712099ee9462ddef930768b3525a754cd
Author: Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-11 12:36:52 +0000
Commit: Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-11 12:38:31 +0000
devel/sabre: fix build with jdk21
The patch for build.xml hardcoded java 5 source and target which is not available for javac in openjdk21. I removed the source and target.
[javac] Compiling 80 source files to /wrkdirs/usr/ports/devel/sabre/work/Simple API for Binary REpresentations (SABRE)/build/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 5
[javac] error: Source option 5 is no longer supported. Use 8 or later.
[javac] error: Target option 5 is no longer supported. Use 8 or later.
Later JDKs are more picky about the charset used. Also for characters in comments. I hinted the encoding for the compiler.
[javac] /wrkdirs/usr/ports/devel/sabre/work/Simple API for Binary REpresentations (SABRE)/src/java/de/tu_darmstadt/informatik/rbg/bstickler/udflib/tools/OSTAIdentifierTranslation.java:6: error: unmappable character (0xF6) for encoding UTF-8
[javac] * Bj?rn Stickler <...>
PR: 291571
---
devel/sabre/files/patch-build.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/devel/sabre/files/patch-build.xml b/devel/sabre/files/patch-build.xml
index 43466bae1c51..c407706ad1cf 100644
--- a/devel/sabre/files/patch-build.xml
+++ b/devel/sabre/files/patch-build.xml
@@ -5,7 +5,7 @@
<target name="compile" depends="prepare">
- <javac destdir="${build}/classes" classpathref="classpath.libs" debug="on">
-+ <javac destdir="${build}/classes" source="1.5" target="1.5" classpathref="classpath.libs" debug="on">
++ <javac destdir="${build}/classes" encoding="ISO-8859-1" classpathref="classpath.libs" debug="on">
<src path="${src}"/>
</javac>
</target>