[oe] [meta-java] openjdk vs openjre recipe history

André Draszik git at andred.net
Sat Aug 4 10:01:14 UTC 2018


Hi,

Does anybody know why there are openjdk & openjre recipes, rather than just
one recipe creating mulitple runtime packages?

With the current approach, we get
* a JRE from the openjdk recipe
* a (separately compiled) JRE from the openjre recipe
even though they are compiled from the same sources

And you also have to constantly modify your PREFERRED_PROVIDER java2-vm /
java2-runtime based on the image you want to build, e.g. building an image
that wants to install openjdk, but your preferred provider is openjre, gives
you lots of warnings from bitbake, meaning you have to update your preferred
provider.

This isn't very intuitive to say the least.

Other distros (or debian at least), just create multiple packages from the
same recipe, i.e. there is one openjdk source, which creates both the
runtime only package, and the compiler in a separate package, amongst other
things.


Cheers,
Andre'




More information about the Openembedded-devel mailing list