[oe] meta-java configuration

André Draszik git at andred.net
Wed Nov 7 11:18:26 UTC 2018


On Wed, 2018-10-24 at 17:15 -0400, Kyle Russell wrote:
> It looks like the only javac that meta-java exposes through its bbclasses
> comes from libecj-bootstrap-native 3.6.2.  A few years ago, it looked like
> there was an attempt to allow openjdk-8-native to provide
> virtual/javac-native, but it has since been reverted.
> 
> I think I understand libecj is needed as part of the bootstrap process to
> build openjdk, but if other layers want to build newer java code using
> javac from openjdk 8 once available after bootstrap, does meta-java
> provide
> support for using javac from openjdk-8-native, or is the expectation that
> other layers would depend directly on openjdk-8-native and setup
> EXTRANATIVEPATH as needed to reach its tools?
> 
> Maybe this is planned future work, but I wanted to make sure I was
> configuring the layer correctly and using it as intended.
> 
> Thanks!
> 
> Kyle

I've tried something here

http://lists.openembedded.org/pipermail/openembedded-devel/2018-July/119590.html
http://lists.openembedded.org/pipermail/openembedded-devel/2018-July/119591.html
http://lists.openembedded.org/pipermail/openembedded-devel/2018-July/119592.html
http://lists.openembedded.org/pipermail/openembedded-devel/2018-July/119593.html
http://lists.openembedded.org/pipermail/openembedded-devel/2018-July/119594.html
http://lists.openembedded.org/pipermail/openembedded-devel/2018-July/119595.html
http://lists.openembedded.org/pipermail/openembedded-devel/2018-July/119596.html

[oe] [meta-java][RFC][PATCH 1/7] openjdk-8-native: add meaningful (R)PROVIDES
[oe] [meta-java][RFC][PATCH 2/7] layer.conf: allow multiple Java SDKs & runtimes to co-exist
[oe] [meta-java][RFC][PATCH 3/7] openjdk-8: add meaningful (R)PROVIDES
[oe] [meta-java][RFC][PATCH 4/7] openjre-8: add meaningful (R)PROVIDES
[oe] [meta-java][RFC][PATCH 5/7] layer.conf: set defaults for Java JRE (R)PROVIDERS
[oe] [meta-java][RFC][PATCH 6/7] openjdk-7: (R)PROVIDE virtual Java [567] packages
[oe] [meta-java][RFC][PATCH 7/7] ca-certificates-java: switch to more generic / more correct JAVA (R)DEPENDS


the idea is to add virtual (R)PROVIDES that other recipes can depends on,
similar to e.g. Debian.

I'm using this locally, but I think there are some corner cases that aren't handled.


Cheers,
Andre'





More information about the Openembedded-devel mailing list