Skip to content

RFC: Support building Java recipes with openjdk-8-native

Kyle Russell openembedded-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Add support for building Java recipes using java-nativeREADME classes/java-native.bbclass recipes-core/ant-contrib/ant-contrib-native_1.0b3.bb +2 more+21 -90 replies
2/2ant-native: only use classpath tools if no JDKrecipes-core/ant/ant-native_1.8.1.bb recipes-core/ant/files/ant+10 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] RFC: Support building Java recipes with openjdk-8-native

This series spun out of a request on the mailing list last October on configuring meta-java for using openjdk-8-native to compile other Java recipes that might require modern API features not provided by the bootstrap VM classes.

http://lists.openembedded.org/pipermail/openembedded-devel/2018-October/197186.html
[oe] meta-java configuration

I've been running with this series on sumo, but I wanted to send it out to get other thoughts on the approach.

It seems like there's already precedent for this format with perlnative and pythonnative. That was more or less how I expected java-native to behave initially until I understood more about the bootstrap process.

If I've missed a valid use case of java-native and this change would cause breakage to someone else's layer, I'd be fine with introducing javanative.bbclass as a new class that provides the same functionality as the following patch to java-native.bbclass. (Its name would be more closely aligned to perlnative and pythonnative without the dash.) However, it appeared that java-native was essentially unused, and I thought having both a java-native and javanative class would be confusing.

Kyle Russell (2):
Add support for building Java recipes using java-native
ant-native: only use classpath tools if no JDK

 README                                          |  7 +++++++
 classes/java-native.bbclass                     | 17 ++++++++++-------
 .../ant-contrib/ant-contrib-native_1.0b3.bb     |  2 +-
 recipes-core/ant/ant-native_1.8.1.bb            |  4 ++--
 recipes-core/ant/files/ant                      |  9 +++++++++
 recipes-core/openjdk/openjdk-8-native.inc       |  2 ++
 6 files changed, 31 insertions(+), 10 deletions(-)
Signature · 1 line
2.20.1