Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Dec 2025 17:22:03 +0100 (CET)
From:      Ronald Klop <ronald-lists@klop.ws>
To:        ports@freebsd.org, java@freebsd.org
Subject:   make it possible to compile bouncycastle with jdk21
Message-ID:  <991224173.9384.1764865323241@localhost>

index | next in thread | raw e-mail

[-- Attachment #1 --]
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.
 
[-- Attachment #2 --]
<html><head></head><body>Hi,<br>
<br>
I made a patch to make it possible to compile java/bouncycastle with jdk21.
<pre>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 &lt;bsd.port.options.mk&gt;</pre>
-----<br>
<br>
Any suggestions or objections for me to commit this in the next few days.<br>
<br>
I tested this with poudriere on aarch64.<br>
<br>
NB: port does not have a maintainer. I have a commit bit so can handle this.<br>
<br>
Regards,<br>
Ronald.<br>
&nbsp;</body></html>
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?991224173.9384.1764865323241>