Port details |
- openjdk21 Java Development Kit 21
- 21.0.6+7.1 java
=5 21.0.5+11.1Version of this port present on the latest quarterly branch. - Maintainer: java@FreeBSD.org
 - Port Added: 2023-10-23 04:27:08
- Last Update: 2025-02-15 04:10:06
- Commit Hash: 822b68e
- People watching this port, also watch:: pkg, tmux, dnsdist, qbittorrent, sudo
- Also Listed In: devel
- License: GPLv2
- WWW:
- https://openjdk.java.net/projects/jdk/21/
- Description:
- An open-source implementation of the Java Platform, Standard Edition,
¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- openjdk21>0:java/openjdk21
- To install the port:
- cd /usr/ports/java/openjdk21/ && make install clean
- To add the package, run one of these commands:
- pkg install java/openjdk21
- pkg install openjdk21
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: openjdk21
- Flavors: there is no flavor information for this port.
- ONLY_FOR_ARCHS: aarch64 amd64 i386 powerpc64 powerpc64le
- distinfo:
- TIMESTAMP = 1739588203
SHA256 (battleblow-jdk21u-jdk-21.0.6+7-1_GH0.tar.gz) = cacd3df6889360d63d0cbfbfe289dcdbce5085b4dd67bf3b902b8199f6f84d80
SIZE (battleblow-jdk21u-jdk-21.0.6+7-1_GH0.tar.gz) = 113321436
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- zip : archivers/zip
- autoconf>0 : devel/autoconf
- cups.h : print/cups
- bash : shells/bash
- gsed : textproc/gsed
- gmake>=4.4.1 : devel/gmake
- pkgconf>=1.3.0_1 : devel/pkgconf
- javac : java/openjdk20
- gcc13 : lang/gcc13
- as : devel/binutils
- x11.pc : x11/libX11
- xext.pc : x11/libXext
- xi.pc : x11/libXi
- xrandr.pc : x11/libXrandr
- xrender.pc : x11/libXrender
- xt.pc : x11-toolkits/libXt
- xtst.pc : x11/libXtst
- Runtime dependencies:
-
- javavm : java/javavmwrapper
- xorg-fonts-truetype>0 : x11-fonts/xorg-fonts-truetype
- gcc13 : lang/gcc13
- x11.pc : x11/libX11
- xext.pc : x11/libXext
- xi.pc : x11/libXi
- xrandr.pc : x11/libXrandr
- xrender.pc : x11/libXrender
- xt.pc : x11-toolkits/libXt
- xtst.pc : x11/libXtst
- Library dependencies:
-
- libasound.so : audio/alsa-lib
- libfontconfig.so : x11-fonts/fontconfig
- libfreetype.so : print/freetype2
- libgif.so : graphics/giflib
- libharfbuzz.so : print/harfbuzz
- liblcms2.so : graphics/lcms2
- libpng.so : graphics/png
- libjpeg.so : graphics/jpeg-turbo
- This port is required by:
- for Build
-
- databases/rocksdb-jni
- java/openjdk22
- for Patch
-
- sysutils/graylog
- for Run
-
- databases/rocksdb-jni
- games/minecraft-server
- games/prismlauncher
- java/dbvis
- net/keycloak
- net/serviio
- net-mgmt/riemann
Configuration Options:
- No options to configure
- Options name:
- java_openjdk21
- USES:
- compiler:features cpe gmake iconv jpeg pkgconfig xorg
- pkg-message:
- For install:
- This OpenJDK implementation may require fdescfs(5) mounted on /dev/fd
and procfs(5) mounted on /proc for some applications.
If you have not done it yet, please do the following:
mount -t fdescfs fdesc /dev/fd
mount -t procfs proc /proc
To make it permanent, you need the following lines in /etc/fstab:
fdesc /dev/fd fdescfs rw 0 0
proc /proc procfs rw 0 0
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
21.0.6+7.1 15 Feb 2025 04:10:06
    |
Greg Lewis (glewis)  |
java/openjdk21: Update to 21.0.6 |
21.0.5+11.1 06 Jan 2025 14:16:58
    |
Xavier Beaudouin (kiwi)  |
java/openjdk*: Update pkg-message information about fdescfs and procfs
OpenJDK installation inform that fdescfs(5) and procfs(5) should be
mounted when using OpenJDK.
After doing some test and some traces, it seems that this should be
no so usefull, some applications will require it, but most of java
applications doesn't seems to suffer to work or performance when
such pseudo FS is not mounted.
So this change request permit to let local administrator to decide if
it is really needed or not.
Sponsored by: Entersekt (previously Modirum MDpay)
Sponsored by: Klara Inc.
Approved by: 0mp (mentor)
PR: 283364 |
21.0.5+11.1 12 Nov 2024 01:10:53
    |
Greg Lewis (glewis)  |
java/openjdk21: Update to 21.0.5 |
21.0.4+7.1 15 Sep 2024 11:36:13
    |
Dimitry Andric (dim)  |
java/openjdk8 java/openjdk11 java/openjdk17 java/openjdk18 java/openjdk19
java/openjdk20 java/openjdk21 java/openjdk22: disable warnings as errors
Generally disable warnings-as-errors for all openjdk ports, removing all
the conditionals we have now for particular architectures and/or
compilers. It does not make sense to have this on by default, unless you
are an upstream maintainer.
PR: 281188
Approved by: maintainer timeout (2 weeks)
MFH: 2024Q3 |
21.0.4+7.1 28 Jul 2024 06:08:32
    |
Greg Lewis (glewis)  |
java/openjdk21: Update to 21.0.4 |
21.0.3+9.1 01 Jul 2024 20:27:23
    |
Rene Ladan (rene)  |
all: drop support for FreeBSD 13.2 which reached EOL today
Thanks again to jbeich for noticing various things I overlooked.
Reviewed by: acm, ashish, eduardo, ehaupt, eugen, jbeich, martymac, mat,
nobukata, sunpoet, tagattie, yuri, arrowd, kde
Differential Revision: https://reviews.freebsd.org/D45141 |
21.0.3+9.1 03 May 2024 03:42:33
    |
Greg Lewis (glewis)  |
java/openjdk21: Update to 21.0.3 |
21.0.2+13.1_1 09 Feb 2024 19:52:07
    |
Michael Osipov (michaelo)  |
java/openjdk*: Allow users to specify an alternative cacerts file
Similar to certificate management with certctl(8) users can use custom
enterprise CAs. These need to be assembled into a custom cacerts file.
Therefore, an admin can install a custom truststore to an arbitrary
location and have the OpenJDK port symlink to it by adding
OPENJDK_SYMLINK_CACERTS to make.conf.
E.g., OPENJDK_SYMLINK_CACERTS=/usr/local/etc/ssl/cacerts.
PR: 229329
Approved by: jrm (mentor), otis (mentor), glewis
Differential Revision: https://reviews.freebsd.org/D42720 |
21.0.2+13.1 04 Feb 2024 22:51:33
    |
Greg Lewis (glewis)  |
java/openjdk21: Update to 21.0.2 |
21.0.1+12.1 26 Jan 2024 22:23:12
    |
Michael Osipov (michaelo)  Author: Dimitry Andric |
java/openjdk{19,20,21}: fix build with lld 17
Building java/openjdk{19,20,21} with lld 17 results in the following link
errors:
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZ21WB_HandshakeWalkStackE16TraceSelfClosure' failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZ24WB_HandshakeReadMonitorsE19ReadMonitorsClosure' failed: symbol not
defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZ26WB_AsyncHandshakeWalkStackE16TraceSelfClosure' failed: symbol not
defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZL20reinitialize_itablesvE18ReinitTableClosure' failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN12JvmtiEnvBase27check_for_periodic_clean_upEvE28ThreadInsideIterationClosure'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN15G1RemSetSummary6updateEvE11CollectData' failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN16SATBMarkQueueSet22set_active_all_threadsEbbE22SetThreadActiveClosure'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN16SATBMarkQueueSet23abandon_partial_markingEvE25AbandonThreadQueueClosure'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN18G1ConcurrentRefine30get_and_reset_refinement_statsEvE12CollectStats'
failed: symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN19G1DirtyCardQueueSet12abandon_logsEvE23AbandonThreadLogClosure' failed:
symbol not defined
ld: error: version script assignment of 'SUNWprivate_1.1' to symbol
'_ZTVZN19G1DirtyCardQueueSet16concatenate_logsEvE27ConcatenateThreadLogClosure'
failed: symbol not defined (Only the first 15 lines of the commit message are shown above ) |
21.0.1+12.1 05 Jan 2024 21:00:58
    |
Piotr Kubaj (pkubaj)  |
java/openjdk21: remove ELFv1 support |
21.0.1+12.1 31 Dec 2023 00:37:05
    |
Muhammad Moinur Rahman (bofh)  |
*/*: Sunset 12.4-RELEASE/12-STABLE from ports tree
- Remove all references to defunct ARCH arm
- Remove all references to defunct ARCH sparc64
- Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64
ARCH
- Remove sysutils/afbinit requires defunct sparc64 ARCH
- Remove all references to bktr driver
- Remove all references to defunct FreeBSD_12
- Remove all references to OSVERSION/OSREL corresponding to 12
- Remove conditionals in Mk/Uses/cabal.mk
- Remove sparc reference from Mk/Uses/qt-dist.mk
- Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64
- Remove BROKEN_FreeBSD_12* from:
- Remove OpenSSL patches from:
- Remove conditional flags for OSVERSION >= 1300000 to fixed flags.
Also move conditional flags for non sparc64/arm ARCH to fixed flags.
Reviewed by: brooks, jbeich, rene, salvadore
Differential Revision: https://reviews.freebsd.org/D42068 |
21.0.1+12.1 23 Oct 2023 17:04:07
    |
Piotr Kubaj (pkubaj)  |
java/openjdk21: fix build on powerpc64*
/wrkdirs/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1/src/hotspot/share/runtime/javaThread.hpp:1117:10:
fatal error: 'javaThread_bsd_ppc.hpp' file not found
^~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1/src/hotspot/share/utilities/macros.hpp:618:40:
note: expanded from macro 'OS_CPU_HEADER'
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1/src/hotspot/share/utilities/macros.hpp:35:17:
note: expanded from macro 'XSTR'
^~~~~~
/wrkdirs/usr/ports/java/openjdk21/work/jdk21u-jdk-21.0.1-12-1/src/hotspot/share/utilities/macros.hpp:32:17:
note: expanded from macro 'STR'
^~
<scratch space>:74:1: note: expanded from here
"javaThread_bsd_ppc.hpp"
^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated. |
21.0.1+12.1 23 Oct 2023 13:14:40
    |
Greg Lewis (glewis)  |
java/openjdk21: Fix bootstrap dependency specification
PR: 273979 |
21.0.1+12.1 23 Oct 2023 04:25:25
    |
Greg Lewis (glewis)  |
java/openjdk21: Add a port of JDK 21 |