* meta-java configuration
@ 2018-10-24 21:15 Kyle Russell
2018-10-25 13:09 ` Richard Leitner
2018-11-07 11:18 ` André Draszik
0 siblings, 2 replies; 4+ messages in thread
From: Kyle Russell @ 2018-10-24 21:15 UTC (permalink / raw)
To: openembedded-devel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: meta-java configuration
2018-10-24 21:15 meta-java configuration Kyle Russell
@ 2018-10-25 13:09 ` Richard Leitner
2018-10-25 13:46 ` Kyle Russell
2018-11-07 11:18 ` André Draszik
1 sibling, 1 reply; 4+ messages in thread
From: Richard Leitner @ 2018-10-25 13:09 UTC (permalink / raw)
To: openembedded-devel
Hi Kyle,
On 10/24/18 11:15 PM, Kyle Russell wrote:
> It looks like the only javac that meta-java exposes through its bbclasses
> comes from libecj-bootstrap-native 3.6.2.
That's definitely true.
> 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.
As I'm not into the meta-java stuff that long I do not know anything
about it... Do you have any pointers to ML discussions?
>
> 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?
Yeah, ecj is needed for bootstrapping the jdk. For more details please
take a look at docs/bootstrap-flow.txt.
AFAIK currently using openjdk-8-native seems like the only solution.
Nonetheless I'm open for any patches to enhance this behaviour ;-)
>
> Maybe this is planned future work, but I wanted to make sure I was
> configuring the layer correctly and using it as intended.
Currently (at least) I'm not having any future plans in this direction,
but as mentioned above I'm open for discussions and/or patches!
>
> Thanks!
>
> Kyle
>
hope that helps...
regards;Richard.L
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: meta-java configuration
2018-10-25 13:09 ` Richard Leitner
@ 2018-10-25 13:46 ` Kyle Russell
0 siblings, 0 replies; 4+ messages in thread
From: Kyle Russell @ 2018-10-25 13:46 UTC (permalink / raw)
To: richard.leitner; +Cc: openembedded-devel
Hi Richard,
Thanks for your reply.
On Thu, Oct 25, 2018 at 9:09 AM Richard Leitner <richard.leitner@skidata.com>
wrote:
> > 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.
>
> As I'm not into the meta-java stuff that long I do not know anything
> about it... Do you have any pointers to ML discussions?
>
Yes, I was specifically referring to
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/commit/?id=dfb21b449dd652b99bc4725796d143e8c9779cd6
.
> Yeah, ecj is needed for bootstrapping the jdk. For more details please
> take a look at docs/bootstrap-flow.txt.
Thanks! I actually had missed that doc and was just looking at the README.
> AFAIK currently using openjdk-8-native seems like the only solution.
>
Nonetheless I'm open for any patches to enhance this behaviour ;-)
>
Ok, I will try to keep my eyes open for possibilities. I didn't see any
documentation that described how to compile java code from other layers
using recent JDKs provided by meta-java, so I was looking for validation
that I was on the right track. :) If I come up something I think would be
an enhancement, I'll send out a proposal.
Thanks again!
Kyle
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: meta-java configuration
2018-10-24 21:15 meta-java configuration Kyle Russell
2018-10-25 13:09 ` Richard Leitner
@ 2018-11-07 11:18 ` André Draszik
1 sibling, 0 replies; 4+ messages in thread
From: André Draszik @ 2018-11-07 11:18 UTC (permalink / raw)
To: openembedded-devel
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'
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-11-07 11:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-24 21:15 meta-java configuration Kyle Russell
2018-10-25 13:09 ` Richard Leitner
2018-10-25 13:46 ` Kyle Russell
2018-11-07 11:18 ` André Draszik
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.