File: force_java_home.patch

package info (click to toggle)
scilab 2024.1.0%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 381,880 kB
  • sloc: xml: 765,066; ansic: 285,813; cpp: 264,881; java: 172,629; fortran: 91,526; ml: 23,103; tcl: 16,853; makefile: 9,722; sh: 7,027; f90: 6,437; lex: 1,656; perl: 1,566; yacc: 1,308; php: 690; cs: 613; javascript: 50
file content (17 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: force java detection in the main script
Author: Julien Puydt
Forwarded: not needed

--- a/scilab/bin/scilab
+++ b/scilab/bin/scilab
@@ -433,6 +433,10 @@
 # uname -s Power Macintosh
 # uname -m Darwin
 
+if test -z "$JAVA_HOME" ; then
+  JAVA_HOME=/usr/lib/jvm/default-java
+fi
+
 # If the user has the variable JAVA_HOME in the ENV
         if test -n "$JAVA_HOME" ; then
                 if test $SCIVERBOSE -ne 0; then