diff --git a/games-action/prismlauncher/files/prismlauncher-10.0.3-openjdk21.patch b/games-action/prismlauncher/files/prismlauncher-10.0.3-openjdk21.patch new file mode 100644 index 0000000000000..58151c1ce0b38 --- /dev/null +++ b/games-action/prismlauncher/files/prismlauncher-10.0.3-openjdk21.patch @@ -0,0 +1,31 @@ +https://bugs.gentoo.org/917072 +--- a/libraries/launcher/CMakeLists.txt ++++ b/libraries/launcher/CMakeLists.txt +@@ -1,10 +1,10 @@ + cmake_minimum_required(VERSION 3.9.4) + project(launcher Java) +-find_package(Java 1.7 REQUIRED COMPONENTS Development) ++find_package(Java 1.8 REQUIRED COMPONENTS Development) + + include(UseJava) + set(CMAKE_JAVA_JAR_ENTRY_POINT org.prismlauncher.EntryPoint) +-set(CMAKE_JAVA_COMPILE_FLAGS -target 7 -source 7) ++set(CMAKE_JAVA_COMPILE_FLAGS -target 8 -source 8) + + set(SRC + org/prismlauncher/EntryPoint.java +--- a/libraries/javacheck/CMakeLists.txt ++++ b/libraries/javacheck/CMakeLists.txt +@@ -1,10 +1,10 @@ + cmake_minimum_required(VERSION 3.9.4) + project(launcher Java) +-find_package(Java 1.7 REQUIRED COMPONENTS Development) ++find_package(Java 1.8 REQUIRED COMPONENTS Development) + + include(UseJava) + set(CMAKE_JAVA_JAR_ENTRY_POINT JavaCheck) +-set(CMAKE_JAVA_COMPILE_FLAGS -target 7 -source 7 -Xlint:deprecation -Xlint:unchecked) ++set(CMAKE_JAVA_COMPILE_FLAGS -target 8 -source 8 -Xlint:deprecation -Xlint:unchecked) + + set(SRC + JavaCheck.java diff --git a/games-action/prismlauncher/prismlauncher-9999.ebuild b/games-action/prismlauncher/prismlauncher-9999.ebuild index 4069a0a638984..c0f0e0663d28a 100644 --- a/games-action/prismlauncher/prismlauncher-9999.ebuild +++ b/games-action/prismlauncher/prismlauncher-9999.ebuild @@ -82,7 +82,7 @@ src_prepare() { elog elog "If you experience any problems, install an older java compiler" elog "and select it with \"eselect java\", then recompile ${PN}." - eapply "${FILESDIR}/${PN}-9.1-openjdk21.patch" + eapply "${FILESDIR}/${PN}-10.0.3-openjdk21.patch" fi }