diff --git a/opa-fmgui-force-loading-java.xml.bind-for-JDK9.patch b/opa-fmgui-force-loading-java.xml.bind-for-JDK9.patch new file mode 100644 index 0000000..1e460a9 --- /dev/null +++ b/opa-fmgui-force-loading-java.xml.bind-for-JDK9.patch @@ -0,0 +1,22 @@ +commit 3ed6b221531f961706f15ec7582eb0716addd94b +Author: Nicolas Morey-Chaisemartin +Date: Fri Apr 27 15:15:57 2018 +0200 + + opa-fmgui: force loading java.xml.bind for JDK9 + + Signed-off-by: Nicolas Morey-Chaisemartin + +diff --git install/opa-fmgui.sh install/opa-fmgui.sh +index c2283850c919..cc2f00995207 100644 +--- install/opa-fmgui.sh ++++ install/opa-fmgui.sh +@@ -98,6 +98,9 @@ if [ "$JAVA" == "nojava" ]; then + read -p 'Press [Enter] key to continue...' + else + if [ -a $JAR ]; then ++ # Force loading java.xml.bind for JDK9+ ++ export JDK_JAVA_OPTIONS="--add-modules java.xml.bind" ++ + # run the JVM and pass the jar name + if [ $DEBUG -eq 1 ]; then + echo diff --git a/opa-fmgui.changes b/opa-fmgui.changes index f02f427..a46964a 100644 --- a/opa-fmgui.changes +++ b/opa-fmgui.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Apr 27 13:16:49 UTC 2018 - nmoreychaisemartin@suse.com + +- Add opa-fmgui-force-loading-java.xml.bind-for-JDK9.patch to allow + opa-fmgui to run with JDK9+ (bsc#1090589) + ------------------------------------------------------------------- Wed Nov 22 15:07:26 UTC 2017 - mgorse@suse.com diff --git a/opa-fmgui.spec b/opa-fmgui.spec index 16faa13..1b1be69 100644 --- a/opa-fmgui.spec +++ b/opa-fmgui.spec @@ -1,7 +1,7 @@ # # spec file for package opa-fmgui # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2015 Intel Corporation # # All modifications and additions to the file contributed by third parties @@ -78,6 +78,7 @@ Patch3: opa-fmgui-intel-manifest-license.patch Patch5: stl-14927-jgraphx-update.patch Patch6: manifest-version.patch Patch7: opa-fmgui-fix-build-for-JDK9-Gradle-3.2.patch +Patch8: opa-fmgui-force-loading-java.xml.bind-for-JDK9.patch BuildRequires: ant BuildRequires: jre >= 1.7 @@ -103,6 +104,7 @@ script fmgui. %patch5 -p1 %patch6 -p1 %patch7 +%patch8 %build (cd %{_tmppath}; rm -Rf gradle-%{gradle_version}; unzip %{_sourcedir}/gradle-%{gradle_version}-bin.zip)