commit:     dd8da3bad7e4c149502cb8cda2e472d4c133fbf4
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Mon Mar  3 08:50:46 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar  3 11:09:23 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd8da3ba

dev-java/rhino: sort variables, explain dependency changes in 1.8.0

For rhino-1.8.0, dependencies had to be lifted to >=virtual/jdk-11:*
and >=virtual/jre-11:*. Using jre-11:* now produces class file version
55.0 instead of 52.0 which leads to bug #950479 and others.

This commit adds comments explaining why the higher java version is
needed.

Bug: https://bugs.gentoo.org/950479
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-java/rhino/rhino-1.8.0.ebuild | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/dev-java/rhino/rhino-1.8.0.ebuild 
b/dev-java/rhino/rhino-1.8.0.ebuild
index 1e73235ca11c..b4f7f9266e63 100644
--- a/dev-java/rhino/rhino-1.8.0.ebuild
+++ b/dev-java/rhino/rhino-1.8.0.ebuild
@@ -15,10 +15,18 @@ 
SRC_URI="https://github.com/mozilla/rhino/archive/Rhino${PV//./_}_Release.tar.gz
 S="${WORKDIR}/rhino-Rhino${PV//./_}_Release"
 
 LICENSE="MPL-1.1 GPL-2"
-KEYWORDS="~amd64 ~arm64 ~ppc64"
 SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64"
+
+# error: package jdk.dynalink does not exist
+# error: package jdk.dynalink.linker does not exist
+# error: package jdk.dynalink.linker.support does not exist
+DEPEND=">=virtual/jdk-11"
 
-DEPEND=">=virtual/jdk-11:*"
+# rhino/src/main/java/org/mozilla/javascript/Slot.java:29: error: cannot find 
symbol
+#         var newSlot = new Slot(this);
+#         ^
+#   symbol:   class var
 RDEPEND=">=virtual/jre-11:*"
 
 DOCS=( {CODE_OF_CONDUCT,README,RELEASE-NOTES,RELEASE-STEPS}.md 
{NOTICE-tools,NOTICE}.txt )

Reply via email to