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@pogatzki.net>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Volkmar W. Pogatzki
2025-03-03 09:50:46 +01:00
committed by Sam James
parent 03196c9df7
commit dd8da3bad7

View File

@@ -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"
DEPEND=">=virtual/jdk-11:*"
# 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"
# 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 )