summaryrefslogtreecommitdiffstats
path: root/recipes-core/openjdk/patches-openjdk-8/0006-autoconf-handle-extra-output.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/openjdk/patches-openjdk-8/0006-autoconf-handle-extra-output.patch')
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0006-autoconf-handle-extra-output.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-core/openjdk/patches-openjdk-8/0006-autoconf-handle-extra-output.patch b/recipes-core/openjdk/patches-openjdk-8/0006-autoconf-handle-extra-output.patch
new file mode 100644
index 0000000..c5fa4bf
--- /dev/null
+++ b/recipes-core/openjdk/patches-openjdk-8/0006-autoconf-handle-extra-output.patch
@@ -0,0 +1,30 @@
1From cf40c00dfd6d2299055c0e8415525d2da5e7cd4a Mon Sep 17 00:00:00 2001
2From: Haiqing Bai <Haiqing.Bai@windriver.com>
3Date: Thu, 2 Jan 2020 13:45:42 +0100
4Subject: [PATCH 06/10] autoconf: handle extra output
5
6When adding the environment variable JAVA_TOOL_OPTIONS an extra line
7in the output from 'java -version' is produced. As this output is
8parsed by configure script the extra line has to be filtered out.
9
10Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
11---
12 common/autoconf/boot-jdk.m4 | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/common/autoconf/boot-jdk.m4 b/common/autoconf/boot-jdk.m4
16index 5be15b8..0d1a6e1 100644
17--- a/common/autoconf/boot-jdk.m4
18+++ b/common/autoconf/boot-jdk.m4
19@@ -51,7 +51,7 @@ AC_DEFUN([BOOTJDK_DO_CHECK],
20 BOOT_JDK_FOUND=no
21 else
22 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23- BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24+ BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | grep -v JAVA_TOOL_OPTIONS | head -n 1`
25
26 # Extra M4 quote needed to protect [] in grep expression.
27 [FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'`]
28--
292.24.1
30