make it possible to compile bouncycastle with jdk21
Date: Thu, 04 Dec 2025 16:22:03 UTC
Hi,
I made a patch to make it possible to compile java/bouncycastle with jdk21.
diff --git a/java/bouncycastle/Makefile b/java/bouncycastle/Makefile
index cc8a0c788ad5..f8dc316f9f90 100644
--- a/java/bouncycastle/Makefile
+++ b/java/bouncycastle/Makefile
@@ -1,6 +1,6 @@
PORTNAME= bouncycastle
DISTVERSION= 1.71
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= java security
MASTER_SITES= http://www.bouncycastle.org/download/ \
http://polydistortion.net/bc/download/
@@ -41,9 +41,10 @@ ZIPSRC_ALL_TARGET= zip-src
ARTIFACTSDIR= ${WRKSRC}/build/artifacts/jdk${JDKMVERSION}
DVERSION= ${PORTVERSION:S/.//}
-JDKMVERSION= 1.5
-JDKNVERSION= 15
-JARSUFFIX= -jdk${JDKNVERSION}to18-${DVERSION}.jar
+JDKMVERSION= 1.8
+JDKNVERSION= 18
+# matches target.prefix property in WRKSRC/ant/jdk18+.xml
+JARSUFFIX= -jdk${JDKNVERSION}on-${DVERSION}.jar
.include <bsd.port.options.mk>
-----
Any suggestions or objections for me to commit this in the next few days.
I tested this with poudriere on aarch64.
NB: port does not have a maintainer. I have a commit bit so can handle this.
Regards,
Ronald.