The documentation is a bit inconsistent on this: https://www.elastic.co/guide/en/elasticsearch/reference/current/_installation.html "Elasticsearch requires Java 7. Specifically as of this writing, it is recommended that you use the Oracle JDK version 1.8.0_25." I've tested with JRE 8 and it works fine.
Created attachment 405122 [details] elasticsearch-1.6.0.ebuild Accept virtual/jre:1.8 as RDEPEND. Let me know if this also requires a revision bump.
It looks like upstream uses slightly different wording in various places, e.g. this section of the setup docs has a more detailed description of the Java requirements: https://www.elastic.co/guide/en/elasticsearch/reference/current/setup.html#jvm-version So I also opened a GitHub pull request to help upstream clarifying the docs: https://github.com/elastic/elasticsearch/pull/11649
Any update on pushing this change into the main portage tree? I'd like to add that Oracle JDK7 has been EOLed, so it doesn't seem to make much sense to constrain ourselves to a 1.7 JRE. Upstream has to (and does) support Java8.
(In reply to Ferenc Erki from comment #1) > Let me know if this also requires a revision bump. I would only bump the revision if what is installed on disk changes. For this RDEPEND variable change, it will not. Could you please submit a unified diff in future as it makes it easier for me to see what has changed? + 29 Jun 2015; Tony Vroon <chainsaw@gentoo.org> elasticsearch-1.6.0.ebuild: + Also accept version 8 Java Runtime Environment, as per Ferenc Erki in bug + #551880.
(In reply to Tony Vroon from comment #4) > Could you please submit a unified diff in future as it makes it easier for me to see what has changed? Sure, no problem. Thanks for the feedback!
Thanks. Maybe later we can prioritize jre8 over jre7.