]> git.pld-linux.org Git - packages/libreoffice.git/commitdiff
fix jre detection when using single jvm path
authorJan Palus <atler@pld-linux.org>
Sat, 11 Mar 2023 21:43:37 +0000 (22:43 +0100)
committerJan Palus <atler@pld-linux.org>
Sat, 11 Mar 2023 21:43:37 +0000 (22:43 +0100)
jvm-path.patch [new file with mode: 0644]
libreoffice.spec

diff --git a/jvm-path.patch b/jvm-path.patch
new file mode 100644 (file)
index 0000000..a4c1d26
--- /dev/null
@@ -0,0 +1,14 @@
+--- libreoffice-7.5.1.2/jvmfwk/plugins/sunmajor/pluginlib/util.cxx.orig        2023-02-22 20:52:27.000000000 +0100
++++ libreoffice-7.5.1.2/jvmfwk/plugins/sunmajor/pluginlib/util.cxx     2023-03-11 21:48:38.572214374 +0100
+@@ -460,6 +460,11 @@
+         if(sHomeProperty.equals(sKey))
+         {
+             sVal = homePath + "/jre";
++            DirectoryItem jreDirItem;
++            if (DirectoryItem::get(homePath + "/jre", jreDirItem) == File::E_None)
++                sVal = homePath + "/jre";
++            else
++                sVal = homePath;
+         }
+ #endif
index 694a3a38c0dc126a66e698b4fd12a53db217182e..260d54e0621288b90ee0e6f9262ecd2a881bbfea 100644 (file)
@@ -109,6 +109,7 @@ Source32:   https://dev-www.libreoffice.org/src/skia-m103-b301ff025004c9cd82816c86
 Source33:      https://dev-www.libreoffice.org/src/libcmis-0.5.2.tar.xz
 # Source33-md5:        3653bc54e1bcd17ae09a1a7086daa38b
 Patch0:                disable-failing-test.patch
+Patch1:                jvm-path.patch
 URL:           https://www.documentfoundation.org/
 BuildRequires: /usr/bin/getopt
 %{?with_firebird:BuildRequires:        Firebird-devel >= 3.0.0.0}
@@ -2941,6 +2942,7 @@ oraz narzędzie ui-previewer do sprawdzania wyglądu okien dialogowych.
 %prep
 %setup -q -a1 -a2 -a3
 %patch0 -p1
+%patch1 -p1
 
 for dir in *-%{version}; do
        [ -f $dir/ChangeLog ] && %{__mv} $dir/ChangeLog ChangeLog-$dir
This page took 0.197956 seconds and 4 git commands to generate.