[Libreoffice-commits] core.git: configure.ac

Tomáš Chvátal tchvatal at suse.com
Fri Jun 29 13:59:09 UTC 2018


 configure.ac |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 62bfd24503d406a2a28f03af58110a4972a5ccf2
Author: Tomáš Chvátal <tchvatal at suse.com>
Date:   Wed Jun 6 13:48:52 2018 +0200

    Fix calculations about version for java
    
    This solves problem where java prints ton of warnings about too many
    CPUs which turned out to empty lines that are now ommited by the added
    sed command.
    
    Change-Id: I552f40289e1d598f11f98509b9e9b0b867336c3b
    Reviewed-on: https://gerrit.libreoffice.org/55377
    Tested-by: Jenkins
    Reviewed-by: Tomáš Chvátal <tchvatal at suse.cz>

diff --git a/configure.ac b/configure.ac
index 7848658978f2..8955729e2328 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6853,7 +6853,7 @@ you must use the "--with-jdk-home" configure option explicitly])
             JDK=sun
 
             dnl Sun JDK specific tests
-            _jdk=`$JAVAINTERPRETER -version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[[-A-Za-z]]*//`
+            _jdk=`$JAVAINTERPRETER -version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED '/^$/d' | $SED s/[[-A-Za-z]]*//`
             _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
 
             if test "$_jdk_ver" -lt 10600; then


More information about the Libreoffice-commits mailing list