git: 312e1810cf34 - main - games/jchessboard: fix build with jdk21
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Dec 2025 18:54:37 UTC
The branch main has been updated by ronald:
URL: https://cgit.FreeBSD.org/ports/commit/?id=312e1810cf345847eb9519fcd709a78c500a227f
commit 312e1810cf345847eb9519fcd709a78c500a227f
Author: Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-14 16:21:31 +0000
Commit: Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-29 18:54:23 +0000
games/jchessboard: fix build with jdk21
JDK21 is more strict in the encoding of source files. It does not ignore comments anymore.
[javac] VirtualBoard.java:1174: error: unmappable character (0xF6) for encoding UTF-8
[javac] // utest.pgn: Qe4 oder Q3e4? (Q5e4 ist eigentlich nicht m?glich.)
PR: 291663
Approved-By: maintainer timeout
---
games/jchessboard/files/patch-build.xml | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/games/jchessboard/files/patch-build.xml b/games/jchessboard/files/patch-build.xml
new file mode 100644
index 000000000000..4938833a073e
--- /dev/null
+++ b/games/jchessboard/files/patch-build.xml
@@ -0,0 +1,11 @@
+--- build.xml.orig 2025-12-14 16:17:27 UTC
++++ build.xml
+@@ -3,7 +3,7 @@
+ <property name="runtime.jar" value="JChessBoard.jar"/>
+
+ <target name="compile">
+- <javac srcdir="jchessboard" destdir="." includes="*.java"/>
++ <javac srcdir="jchessboard" destdir="." includes="*.java" encoding="ISO-8859-1"/>
+ </target>
+
+ <target name="jar" depends="compile">