On Thu, Mar 29, 2018 at 19:09:19 +0800, Matthias Klose wrote:
> autopkgtest [10:19:33]: test ods-default: [-----------------------
> Testing default interface for ODS...
> warning:
> Java version too old - you need at least Java 6 (v. 1.6.x.x)

Upstream bug report at https://savannah.gnu.org/bugs/?53510

I am recommending that upstream drop the version check entirely. The
attached patch does just that, works for me with cursory local testing.

-- 
mike
Description: drop version number check for outdated versions of JRE
Author: Mike Miller <mtmil...@debian.org>
Bug: https://savannah.gnu.org/bugs/?53510
Bug-Debian: https://bugs.debian.org/894348
Last-Update: 2018-03-29
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/inst/private/__chk_java_sprt__.m
+++ b/inst/private/__chk_java_sprt__.m
@@ -41,18 +41,8 @@
     ## Now check for proper version (>= 1.6)
     jver = ...
       char (javaMethod ("getProperty", "java.lang.System", "java.version"));
-    cjver = strsplit (jver, ".");
-    if (sscanf (cjver{2}, "%d") < 6)
-      warning ...
-        ("\nJava version too old - you need at least Java 6 (v. 1.6.x.x)\n");
-      if (dbug)
-        printf ('    At Octave prompt, try "!system ("java -version")"');
-      endif
-      return
-    else
-      if (dbug > 2)
-        printf ("  Java (version %s) seems OK.\n", jver);
-      endif
+    if (dbug > 2)
+      printf ("  Java (version %s) seems OK.\n", jver);
     endif
     ## Now check for proper entries in class path. Under *nix the classpath
     ## must first be split up. In java 1.2.8+ javaclasspath is already a cell array

Attachment: signature.asc
Description: PGP signature

Reply via email to