[Buildroot] [PATCH 0/2] OpenJDK: new package.

Thomas De Schampheleire patrickdepinguin at gmail.com
Tue Jan 29 12:13:13 UTC 2019


El lun., 28 ene. 2019 a las 23:31, Adam Duskett (<aduskett at gmail.com>) escribió:
>
> Hello;
>
> On Mon, Jan 28, 2019 at 2:36 PM Thomas De Schampheleire
> <patrickdepinguin at gmail.com> wrote:
> >
> > Hello,
> > El lun., 28 ene. 2019 a las 17:31, <aduskett at gmail.com> escribió:
> > >
> > > From: Adam Duskett <Aduskett at gmail.com>
> > >
> > > This patch series introduces BuildRoot to OpenJDK.
> > >
> > > A previous patch series for OpenJDK8 used the JDK Muricle page to download a
> > > tarball. Instead, what I have chosen to do is use the AdoptOpenJDK GitHub
> > > repository. This repository allows us to use the GitHub macro instead of trying
> > > to provide a nasty workaround when grabbing the source code.
> > >
> > > With this patch series, there are some quirks that I would like to detail:
> > >
> > > - The openjdk-bin package:
> > > From http://hg.openjdk.java.net/jdk10/jdk10/raw-file/tip/common/doc/building.html#boot-jdk-requirements
> > > "Paradoxically, building OpenJDK requires a pre-existing JDK. This is called
> > > the "boot JDK." The boot JDK does not have to be OpenJDK, though. If you are
> > > porting OpenJDK to a new platform, the chances are that there already exists
> > > another JDK for that platform that is usable as boot JDK.
> > >
> > > The rule of thumb is that the boot JDK for building JDK major version N should
> > > be a JDK of major version N-1, so for building JDK 9, a JDK 8 would be suitable
> > > as boot JDK."
> > >
> > > This paradox causes an issue because every distribution I have used comes with
> > > JDK8 by default. So there are two solutions that I could come up with:
> > > 1) Require the host-system to have JDK N-1
> > > 2) Grab the convenient and easy to install binaries from the AdoptOpenJDK
> > >    repository, and use those binaries as the boot-jdk.
> > >
> > > - JDK >= 10 requires X11, even if building a headless version.
> > >   It's unfortunate, but there isn't anything I cared to do about it.
> >
> > It should be possible to build without X11, with some changes.
> > See also the openjdk package I sent last year as reference:
> > http://lists.busybox.net/pipermail/buildroot/2018-February/213282.html
> >
> > Best regards,
> > Thomas
> Thank's Thomas!
> I did see those patches and came to the conclusion that while it's
> probably possible, for the initial
> release I don't really want to go through the effort of
> forward-porting those patches to JDK11.
>
> I am always welcome to patch-donations though!


Thanks for your response to my comments.
I have no particular interest myself either in using/improving
openjdk. Our use case has vanished.
So as long as you are aware of the previous patches, I'm good :-)

Best regards,
Thomas



More information about the buildroot mailing list