From 5705d2babc06cf4766088f92837bed790f548b43 Mon Sep 17 00:00:00 2001 From: Olivier Certner Date: Fri, 5 Dec 2025 00:16:31 +0100 Subject: [PATCH] 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 +- .../files/patch-ant_bc+-build.xml | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 java/bouncycastle/files/patch-ant_bc+-build.xml 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 @@ + + + + + + +