From nobody Thu Dec 4 16:22:03 2025 X-Original-To: java@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dMfsx3JZDz6JKkd; Thu, 04 Dec 2025 16:22:13 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp-relay-int-backup.realworks.nl (smtp-relay-int-backup.realworks.nl [87.255.56.188]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4dMfsv6ZQPz3Ktg; Thu, 04 Dec 2025 16:22:11 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=rw2 header.b=wWEN3lIl; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of ronald-lists@klop.ws designates 87.255.56.188 as permitted sender) smtp.mailfrom=ronald-lists@klop.ws Received: from smtp-relay-int-backup.realworks.nl (crmpreview3.colo2.realworks.nl [10.2.52.33]) by mailrelayint1.colo2.realworks.nl (Postfix) with ESMTP id 4dMfsl5Fznz1ZD; Thu, 4 Dec 2025 17:22:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1764865323; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=Atf9Md6YT/rT7NZv2719ia7NfojvbThxZe1PONAzsI0=; b=wWEN3lIlowpUd7XqLPOlV500c+5VVnRcERgPmJKtoXlFDCA8rCiy6TzCHrYmJwqtIJMGd9 4Up4dd2sJXNHEa4ephdXlp8FDbJs9RUERmeI62Y3381+ljtaT+YUqB4a74Ah6v7/MAWoPP oDghLyUcFmM60eetrxCZqoNS7LL4cUpGxpwlfTbxrJeD+dc8zNBuP8k3S/qoVgPsV5TH3K mwUfduFugFyBrc9QRPHV+RuswDW2PONJr27i+sbBpbLNnevnyn9CG/zwAb1B1VNGCmLGTT WFb9lG28xENf28ylwLeCkR9YeV94JptDvt6DAFlz8SVtJAprc/xmuFwwHZFHpg== Received: from crmpreview3.colo2.realworks.nl (localhost [127.0.0.1]) by crmpreview3.colo2.realworks.nl (Postfix) with ESMTP id B0C701401F8; Thu, 4 Dec 2025 17:22:03 +0100 (CET) Date: Thu, 4 Dec 2025 17:22:03 +0100 (CET) From: Ronald Klop To: ports@freebsd.org, java@freebsd.org Message-ID: <991224173.9384.1764865323241@localhost> Subject: make it possible to compile bouncycastle with jdk21 List-Id: Porting Java to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-java List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-java@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9383_115034253.1764865323234" X-Mailer: Realworks (776.26) X-Originating-Host: from (83-81-212-149.cable.dynamic.v4.ziggo.nl [83.81.212.149]) by crmpreview3.colo2.realworks.nl [10.2.52.33] with HTTP; Thu, 04 Dec 2025 17:22:03 +0100 Importance: Normal X-Priority: 3 (Normal) X-Originating-User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:145.0) Gecko/20100101 Firefox/145.0 X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:87.255.56.128/26]; R_DKIM_ALLOW(-0.20)[klop.ws:s=rw2]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_X_PRIO_THREE(0.00)[3]; MLMMJ_DEST(0.00)[java@freebsd.org,ports@freebsd.org]; RCPT_COUNT_TWO(0.00)[2]; TO_DN_NONE(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DKIM_TRACE(0.00)[klop.ws:+] X-Rspamd-Queue-Id: 4dMfsv6ZQPz3Ktg ------=_Part_9383_115034253.1764865323234 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 ----- 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. ------=_Part_9383_115034253.1764865323234 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit 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.
  ------=_Part_9383_115034253.1764865323234--