octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #60054] feature request: package install with


From: Ernst Reissner
Subject: [Octave-bug-tracker] [bug #60054] feature request: package install with dependency on java.
Date: Mon, 15 Feb 2021 08:05:42 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36

Follow-up Comment #2, bug #60054 (project octave):

I can understand your concerns on third party software. 
In report 60058 I suggest a function versionjava(), or versionJVM(). 

It is possible to check version of java in PKG_ADD 
and to issue error if not fits. 

v = javaMethod("version", "java.lang.Runtime");
printf("Found JVM version %d.%d.%d-%d.\n",
              v.feature(), v.interim(), v.update(), v.patch());
vMin = javaMethod("parse", "java.lang.Runtime$Version", "${versionJavaMin}");
vMax = javaMethod("parse", "java.lang.Runtime$Version", "${versionJavaMax}");
if (v.compareTo(vMax) > 0 || v.compareTo(vMin) < 0)
   error("JVM version is not in range [${versionJavaMin},
${versionJavaMax}]");
end


On the other hand, I think, dependencies are better in the description. 

I think there is a small number third party software 
octave really depends on. 
There are a lot of functions in octave depending on java, 
see the manual. javaclasspath, javaObject, javaArray, javaMethod... isJava
maybe also. 
And there is even a data type for java object. 
So thus octave really relies on java. 

I would also say, the math libs octave directly depends on shall be among the
dependencies which shall be possible to add on the dependency line. 



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60054>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]