Page MenuHomeFreeBSD

java/openjdk21-25: Bootstrap from prebuilt packages
ClosedPublic

Authored by haraldei on Jan 15 2026, 1:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 6, 2:49 AM
Unknown Object (File)
Wed, Feb 25, 10:10 AM
Unknown Object (File)
Tue, Feb 24, 1:28 PM
Unknown Object (File)
Mon, Feb 23, 10:23 PM
Unknown Object (File)
Sat, Feb 21, 8:56 PM
Unknown Object (File)
Sat, Feb 21, 11:54 AM
Unknown Object (File)
Fri, Feb 20, 2:07 PM
Unknown Object (File)
Tue, Feb 17, 8:12 PM
Subscribers
None

Details

Summary

Completes the transition to using prebuilt packages to bootstrap OpenJDK ports.

PR: 289731
Sponsored by: The FreeBSD Foundation

Test Plan
  • Test builds for as many platforms as possible

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

haraldei created this revision.

I'd love to get some feedback on this one.

Thanks in advance!

LGTM, sorry for the delay.
BTW, a bunch of Java ports are failing to build on armv7 due to Java crashes. How can I best let you know about them?

@haraldei, look at the diffs, nothing problematic stands out to me. I can do i386/amd64 build tests in about a day or so, if that's helpful. (I recently upgraded all my systems from 15 to 16-CURRENT, so all packages are rebuilding.)

In D54731#1254985, @fuz wrote:

LGTM, sorry for the delay.

No worries :)

BTW, a bunch of Java ports are failing to build on armv7 due to Java crashes. How can I best let you know about them?

The best is probably to report it on bugs.freebsd.org. I don't have an armv7 system to test though, but I may be able to figure out what the issue is.

In D54731#1255008, @jrm wrote:

@haraldei, look at the diffs, nothing problematic stands out to me. I can do i386/amd64 build tests in about a day or so, if that's helpful. (I recently upgraded all my systems from 15 to 16-CURRENT, so all packages are rebuilding.)

Nice, build tests on 16-CURRENT would be really useful. I have built them all on amd64 (and most of them on aarch64) on FreeBSD 15.

Harald, this doesn't apply for me.

jrm@ser /usr/src [main|✔] % git arc patch -bc D54731
Switched to a new branch 'gitarc-D54731'
Applying D54731...
 INFO  Base commit is not in local repository; trying to fetch.
Checking patch java/openjdk25/distinfo...
error: java/openjdk25/distinfo: does not exist in index
Checking patch java/openjdk25/Makefile...
error: java/openjdk25/Makefile: does not exist in index
Checking patch java/openjdk24/distinfo...
error: java/openjdk24/distinfo: does not exist in index
Checking patch java/openjdk24/Makefile...
error: java/openjdk24/Makefile: does not exist in index
Checking patch java/openjdk23/distinfo...
error: java/openjdk23/distinfo: does not exist in index
Checking patch java/openjdk23/Makefile...
error: java/openjdk23/Makefile: does not exist in index
Checking patch java/openjdk22/distinfo...
error: java/openjdk22/distinfo: does not exist in index
Checking patch java/openjdk22/Makefile...
error: java/openjdk22/Makefile: does not exist in index
Checking patch java/openjdk21/distinfo...
error: java/openjdk21/distinfo: does not exist in index
Checking patch java/openjdk21/Makefile...
error: java/openjdk21/Makefile: does not exist in index

 Patch Failed!
Usage Exception: Unable to apply patch!

@jrm Hoping it's because it's been a while, so rebased on main again and hope it works better now?

Yup.

jrm@ser /usr/ports [gitarc-D54731|✔] % git show --stat HEAD
commit 1a3ffbf76eb18ad6f1d90e9386abc4188b1e6e99 (HEAD -> gitarc-D54731)
Author:     Harald Eilertsen <haraldei@FreeBSD.org>
AuthorDate: 2026-01-28 15:03
Commit:     Joseph Mingrone <jrm@FreeBSD.org>
CommitDate: 2026-01-28 15:03

    java/openjdk21-25: Bootstrap from prebuilt packages

    Completes the transition to using prebuilt packages to bootstrap OpenJDK ports.

    PR:             289731
    Sponsored by:   The FreeBSD Foundation

    Differential Revision:  https://reviews.freebsd.org/D54731

 java/openjdk21/Makefile | 23 +++++++----------------
 java/openjdk21/distinfo | 10 ++++++++++
 java/openjdk22/Makefile | 24 +++++++-----------------
 java/openjdk22/distinfo | 10 ++++++++++
 java/openjdk23/Makefile | 24 +++++++-----------------
 java/openjdk23/distinfo |  8 ++++++++
 java/openjdk24/Makefile | 28 +++++++++-------------------
 java/openjdk24/distinfo |  8 ++++++++
 java/openjdk25/Makefile | 20 +++++---------------
 java/openjdk25/distinfo |  8 ++++++++
 10 files changed, 79 insertions(+), 84 deletions(-)

Testing now.

Is there anything else needed for this review, or could I get it accepted?

Thanks!

Rebase on main again for updated openjdk21

Hi again, it would be nice if the review could be accepted sometime before OpenJDK 20 expires in two and a half weeks.
Let me know if there's anything that should be changed.

I've already given a LGTM a month ago, but forgot to add the review action. Please land!

This revision is now accepted and ready to land.Mon, Feb 23, 12:50 PM