- Add opa-fmgui-force-loading-java.xml.bind-for-JDK9.patch to allow

opa-fmgui to run with JDK9+ (bsc#1090589)

OBS-URL: https://build.opensuse.org/package/show/science:HPC/opa-fmgui?expand=0&rev=41
This commit is contained in:
Nicolas Morey-Chaisemartin 2018-04-27 13:29:29 +00:00 committed by Git OBS Bridge
parent e10f03d9e4
commit 7845decf16
3 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,22 @@
commit 3ed6b221531f961706f15ec7582eb0716addd94b
Author: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
Date: Fri Apr 27 15:15:57 2018 +0200
opa-fmgui: force loading java.xml.bind for JDK9
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
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

View File

@ -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

View File

@ -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)