Re: Why is building poudirere-devel several openjdks when I ask for openjdk21?

From: Derek Schrock <dereks_at_lifeofadishwasher.com>
Date: Sat, 18 Nov 2023 01:01:49 UTC
On Thu, Nov 16, 2023 at 03:06:47AM EST, Alexander Leidinger wrote:
> Am 2023-11-15 22:42, schrieb Derek Schrock:
> > On Wed, Nov 15, 2023 at 09:01:28AM EST, Alexander Leidinger wrote:
> > > Hi,
> > > 
> > > I have stuff which depends upon openjdk17 -> pkg exists in my local
> > > repo.
> > > Now I want to use something which needs openjdk21. So I did a
> > > poudriere bulk
> > > -j ... java/openjdk21 and now it builds openjdk18, openjdk19 and
> > > openjdk20
> > > serially before openjdk21.
> > > 
> > > I can understand if we need ot build 1 bootstrap, but why do we need
> > > to
> > > build multiple jdks sequencially to get the one I want?
> > > 
> > > Bye,
> > > Alexander.
> > > 
> > 
> > This appears to be a recommendation (requirement) from the project. N-1
> > to bootstrap.
> > 
> > https://github.com/openjdk/jdk/blob/master/doc/building.md#boot-jdk-requirements
> 
> I assumed something like that, that's the reason why I wrote "1 bootstrap"
> above. If we look into the java category, we have some bootstrap ports
> there, but not for all jdk versions. Can we add more bootstraps please, and
> make use of them? It took about double the time to build openjdk21 than it
> would really need to. Typically if you want to check out some new software,
> you want to do it "now", and if it depends upon other stuff, such a long
> chain of bootstrapping 4 JDKs to get the one you want is ... pulling a tooth
> or two.

It seems only LTS were bootstraps are created? [1] If so given that 21
is LTS there should at least be a java/bootstrap-openjdk21.  Like 241087
I would create a PR requesting that new port.

[1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241087