git: 5705d2babc06 - main - java/bouncycastle: fix compilation with jdk11 and jdk17
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 04 Dec 2025 23:23:06 UTC
The branch main has been updated by ronald:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5705d2babc06cf4766088f92837bed790f548b43
commit 5705d2babc06cf4766088f92837bed790f548b43
Author: Olivier Certner <olce@freebsd.org>
AuthorDate: 2025-12-04 23:16:31 +0000
Commit: Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-04 23:22:05 +0000
java/bouncycastle: fix compilation with jdk11 and jdk17
Some comments in source files contain UTF-8 characters.
Jdk11 and jdk17 expected ASCII and threw an error.
Tell the compiler the charset of the source files.
PR: 263601
Reported-by: olce@
Obtained-from: https://lists.freebsd.org/archives/freebsd-java/2025-December/003388.html
---
java/bouncycastle/Makefile | 2 +-
java/bouncycastle/files/patch-ant_bc+-build.xml | 26 +++++++++++++++++++++++++
2 files changed, 27 insertions(+), 1 deletion(-)
diff --git a/java/bouncycastle/Makefile b/java/bouncycastle/Makefile
index f8dc316f9f90..c8fb3ed55a2c 100644
--- a/java/bouncycastle/Makefile
+++ b/java/bouncycastle/Makefile
@@ -1,6 +1,6 @@
PORTNAME= bouncycastle
DISTVERSION= 1.71
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= java security
MASTER_SITES= http://www.bouncycastle.org/download/ \
http://polydistortion.net/bc/download/
diff --git a/java/bouncycastle/files/patch-ant_bc+-build.xml b/java/bouncycastle/files/patch-ant_bc+-build.xml
new file mode 100644
index 000000000000..435dbab2a372
--- /dev/null
+++ b/java/bouncycastle/files/patch-ant_bc+-build.xml
@@ -0,0 +1,26 @@
+--- ant/bc+-build.xml.orig 2025-12-04 21:43:00 UTC
++++ ant/bc+-build.xml
+@@ -118,6 +118,7 @@
+ <mkdir dir="${artifacts.dir}/@{target}" />
+
+ <javac source="${bc.javac.source}" target="${bc.javac.target}"
++ encoding="UTF-8"
+ srcdir="${artifacts.dir}/@{target}/src"
+ destdir="${build.dir}/@{target}/classes"
+ memoryMaximumSize="512m"
+@@ -155,6 +156,7 @@
+ <mkdir dir="${artifacts.dir}/@{target}" />
+
+ <javac source="${bc.javac.source}" target="${bc.javac.target}"
++ encoding="UTF-8"
+ srcdir="${artifacts.dir}/@{target}/src"
+ destdir="${build.dir}/@{target}/classes"
+ memoryMaximumSize="512m"
+@@ -302,6 +304,7 @@
+ </copy>
+
+ <javac source="${bc.javac.source}" target="${bc.javac.target}"
++ encoding="UTF-8"
+ srcdir="${lcrypto.target.src.dir}"
+ destdir="${lcrypto.target.classes.dir}"
+ memoryMaximumSize="512m"