diff options
| author | Olivier Certner <olce@freebsd.org> | 2025-12-04 23:16:31 +0000 |
|---|---|---|
| committer | Ronald Klop <ronald@FreeBSD.org> | 2025-12-04 23:22:05 +0000 |
| commit | 5705d2babc06cf4766088f92837bed790f548b43 (patch) | |
| tree | b3f01813b911345676467cf2c76884841644206c | |
| parent | b0c3cea12dba669ae4ebadf171d6e7bf5cf9fbc5 (diff) | |
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
| -rw-r--r-- | java/bouncycastle/Makefile | 2 | ||||
| -rw-r--r-- | java/bouncycastle/files/patch-ant_bc+-build.xml | 26 |
2 files changed, 27 insertions, 1 deletions
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" |
