Bug 263601 - java/bouncycastle15 only builds with Java 8
Summary: java/bouncycastle15 only builds with Java 8
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-27 02:21 UTC by wcarson.bugzilla
Modified: 2022-04-27 02:21 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wcarson.bugzilla 2022-04-27 02:21:16 UTC
There is no JAVA_VERSION defined in the Makefile. I tried various values (8, 11, and 17) and the only one that worked is 8.

diff --git a/java/bouncycastle15/Makefile b/java/bouncycastle15/Makefile
index 472af5a4a0..a84bc41546 100644
--- a/java/bouncycastle15/Makefile
+++ b/java/bouncycastle15/Makefile
@@ -26,6 +26,7 @@ CPE_VENDOR=   ${PORTNAME}
 CPE_PRODUCT=   legion-of-the-bouncy-castle-java-crytography-api
 USE_ANT=       yes
 USE_JAVA=      yes
+JAVA_VERSION=  8

 MAKE_ARGS=     -f \
                ant/jdk${JDKNVERSION}+.xml