summaryrefslogtreecommitdiffstats
path: root/recipes-core/openjdk/patches-openjdk-8
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/openjdk/patches-openjdk-8')
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0001-Allow-using-a-system-installed-libjpeg.patch10
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0002-Allow-using-a-system-installed-libpng.patch10
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0003-build-fix-build-on-as-needed-toolchains-generic.patch10
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0004-don-t-expect-fqpn-for-make.patch10
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0005-autoconf-filter-aclocal-copy-too.patch10
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0006-autoconf-handle-extra-output.patch10
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0007-fix-assembler-flag-handling-in-makefile.patch10
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0008-autoconf-fix-shark-build-common.patch10
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0009-prevent-debuginfo-in-favour-of-openembedded-package-.patch11
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0010-autoconf-remove-shell-variables-from-autoheader.patch10
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0011-autoconf-fix-CC-with-arguments-detection.patch20
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0012-autoconf-NativeCompilation-remove-sysroot.patch17
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0013-autoconf-remove-Werror.patch219
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1001-hotspot-fix-crash-on-JNI_CreateJavaVM.patch10
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1002-hotspot-use-correct-include-for-poll.patch24
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1003-hotspot-don-t-rely-on-old-SysV-SIGCLD.patch12
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1004-hotspot-backport-patch-to-fix-misuses-of-strncpy-str.patch172
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1004-hotspot-fix-Wreturn-type-issues-introduced-by-806165.patch (renamed from recipes-core/openjdk/patches-openjdk-8/1005-hotspot-fix-Wreturn-type-issues-introduced-by-806165.patch)19
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1005-hotspot-Zero-build-requires-disabled-warnings.patch (renamed from recipes-core/openjdk/patches-openjdk-8/1006-hotspot-Zero-build-requires-disabled-warnings.patch)26
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1006-hotspot-Missing-return-statement-in-__sync_val_compa.patch (renamed from recipes-core/openjdk/patches-openjdk-8/1007-hotspot-Missing-return-statement-in-__sync_val_compa.patch)16
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1007-hotspot-Turn-on-the-Wreturn-type-warning.patch (renamed from recipes-core/openjdk/patches-openjdk-8/1008-hotspot-Turn-on-the-Wreturn-type-warning.patch)74
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1008-hotspot-handle-format-error-for-GCC-7.patch (renamed from recipes-core/openjdk/patches-openjdk-8/1009-hotspot-handle-format-error-for-GCC-7.patch)14
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1009-hotspot-fix-adlc-flags.patch (renamed from recipes-core/openjdk/patches-openjdk-8/1010-hotspot-fix-adlc-flags.patch)6
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1010-hotspot-fix-shark-build-common.patch (renamed from recipes-core/openjdk/patches-openjdk-8/1011-hotspot-fix-shark-build-common.patch)18
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1011-hotspot-restrict-to-staging-dir.patch (renamed from recipes-core/openjdk/patches-openjdk-8/1012-hotspot-restrict-to-staging-dir.patch)6
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1012-hotspot-enable-Wno-error.patch31
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1013-hotspot-add-missing-includes-for-shark-build-pt2.patch32
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1201-hotspot-aarch32-fix-missing-return-values.patch (renamed from recipes-core/openjdk/patches-openjdk-8/aarch32-hotspot-fix-missing-return-values.patch)16
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1202-hotspot-aarch32-remaining-musl-fixes.patch (renamed from recipes-core/openjdk/patches-openjdk-8/aarch32-hotspot-remaining-musl-fixes.patch)11
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1401-hotspot-aarch64-Add-missing-return-value-to-LIR_Asse.patch (renamed from recipes-core/openjdk/patches-openjdk-8/aarch64-hotspot-Fix-further-functions-with-a-missing.patch)18
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1402-hotspot-aarch64-remaining-musl-fixes.patch (renamed from recipes-core/openjdk/patches-openjdk-8/aarch64-hotspot-remaining-musl-fixes.patch)18
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/2001-jdk-comparison-between-pointer-and-integer.patch20
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/2002-jdk-Allow-using-a-system-installed-libjpeg.patch28
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/2003-jdk-Allow-using-a-system-installed-libpng.patch20
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/2004-jdk-use-correct-include-for-poll.patch54
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/2005-jdk-use-correct-include-for-signal.patch24
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/2006-jdk-disable-backtrace-musl-build-fix.patch14
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/2007-jdk-no-genx11-in-headless.patch12
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/2008-jdk-no-unused-deps.patch28
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/2009-jdk-make-use-gcc-instead-of-ld-for-genSocketOptionRe.patch26
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/2009-jdk-use-gcc-instead-of-ld-to-link-genSocketOptionRegistry.patch13
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/aarch32-hotspot-fix-shark-build-pt2.patch11
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-shark-build-pt2.patch11
43 files changed, 617 insertions, 524 deletions
diff --git a/recipes-core/openjdk/patches-openjdk-8/0001-Allow-using-a-system-installed-libjpeg.patch b/recipes-core/openjdk/patches-openjdk-8/0001-Allow-using-a-system-installed-libjpeg.patch
index e9662eb..00ce23f 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0001-Allow-using-a-system-installed-libjpeg.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0001-Allow-using-a-system-installed-libjpeg.patch
@@ -1,7 +1,7 @@
1From 836aad60652299a26341b46a4a9a2e6c418b6947 Mon Sep 17 00:00:00 2001 1From 74366a35d754d2dacab28d36804b5cde5dec481b Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Tue, 27 Feb 2018 13:36:53 +0000 3Date: Tue, 27 Feb 2018 13:36:53 +0000
4Subject: [PATCH 01/10] Allow using a system-installed libjpeg 4Subject: [PATCH] Allow using a system-installed libjpeg
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -22,12 +22,13 @@ Upstream-Status: Backport
22 22
23Signed-off-by: André Draszik <andre.draszik@jci.com> 23Signed-off-by: André Draszik <andre.draszik@jci.com>
24Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 24Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
25
25--- 26---
26 common/autoconf/libraries.m4 | 35 ++++++++++++++++++++++++++++++----- 27 common/autoconf/libraries.m4 | 35 ++++++++++++++++++++++++++++++-----
27 1 file changed, 30 insertions(+), 5 deletions(-) 28 1 file changed, 30 insertions(+), 5 deletions(-)
28 29
29diff --git a/common/autoconf/libraries.m4 b/common/autoconf/libraries.m4 30diff --git a/common/autoconf/libraries.m4 b/common/autoconf/libraries.m4
30index 6d803f9..d2732eb 100644 31index 6d803f9b..d2732eb8 100644
31--- a/common/autoconf/libraries.m4 32--- a/common/autoconf/libraries.m4
32+++ b/common/autoconf/libraries.m4 33+++ b/common/autoconf/libraries.m4
33@@ -774,11 +774,36 @@ AC_DEFUN_ONCE([LIB_SETUP_MISC_LIBS], 34@@ -774,11 +774,36 @@ AC_DEFUN_ONCE([LIB_SETUP_MISC_LIBS],
@@ -72,6 +73,3 @@ index 6d803f9..d2732eb 100644
72 AC_SUBST(USE_EXTERNAL_LIBJPEG) 73 AC_SUBST(USE_EXTERNAL_LIBJPEG)
73 74
74 ############################################################################### 75 ###############################################################################
75--
762.24.1
77
diff --git a/recipes-core/openjdk/patches-openjdk-8/0002-Allow-using-a-system-installed-libpng.patch b/recipes-core/openjdk/patches-openjdk-8/0002-Allow-using-a-system-installed-libpng.patch
index ed8ecfa..64f4bce 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0002-Allow-using-a-system-installed-libpng.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0002-Allow-using-a-system-installed-libpng.patch
@@ -1,7 +1,7 @@
1From ed79dc49323cc08e81b3699817825f66b1af0ce2 Mon Sep 17 00:00:00 2001 1From 048b9cb7910cf2f04f73483dd9755aeb50017e6b Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Thu, 2 Jan 2020 13:40:50 +0100 3Date: Thu, 2 Jan 2020 13:40:50 +0100
4Subject: [PATCH 02/10] Allow using a system-installed libpng 4Subject: [PATCH] Allow using a system-installed libpng
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -19,12 +19,13 @@ Upstream-Status: Backport
19 19
20Signed-off-by: André Draszik <andre.draszik@jci.com> 20Signed-off-by: André Draszik <andre.draszik@jci.com>
21Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 21Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
22
22--- 23---
23 common/autoconf/libraries.m4 | 41 ++++++++++++++++++++++++++++++++++++ 24 common/autoconf/libraries.m4 | 41 ++++++++++++++++++++++++++++++++++++
24 1 file changed, 41 insertions(+) 25 1 file changed, 41 insertions(+)
25 26
26diff --git a/common/autoconf/libraries.m4 b/common/autoconf/libraries.m4 27diff --git a/common/autoconf/libraries.m4 b/common/autoconf/libraries.m4
27index d2732eb..727f018 100644 28index d2732eb8..727f0181 100644
28--- a/common/autoconf/libraries.m4 29--- a/common/autoconf/libraries.m4
29+++ b/common/autoconf/libraries.m4 30+++ b/common/autoconf/libraries.m4
30@@ -843,6 +843,47 @@ AC_DEFUN_ONCE([LIB_SETUP_MISC_LIBS], 31@@ -843,6 +843,47 @@ AC_DEFUN_ONCE([LIB_SETUP_MISC_LIBS],
@@ -75,6 +76,3 @@ index d2732eb..727f018 100644
75 ############################################################################### 76 ###############################################################################
76 # 77 #
77 # Check for the zlib library 78 # Check for the zlib library
78--
792.24.1
80
diff --git a/recipes-core/openjdk/patches-openjdk-8/0003-build-fix-build-on-as-needed-toolchains-generic.patch b/recipes-core/openjdk/patches-openjdk-8/0003-build-fix-build-on-as-needed-toolchains-generic.patch
index 0e3359c..0ab4b7d 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0003-build-fix-build-on-as-needed-toolchains-generic.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0003-build-fix-build-on-as-needed-toolchains-generic.patch
@@ -1,7 +1,7 @@
1From 4cde9ea2adf8c57168a299f11625083d1822b0de Mon Sep 17 00:00:00 2001 1From 34bfdbabf0b2d9b1d0965b5fe362fd9596f58527 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Mon, 12 Mar 2018 15:40:58 +0000 3Date: Mon, 12 Mar 2018 15:40:58 +0000
4Subject: [PATCH 03/10] build: fix build on --as-needed toolchains (generic) 4Subject: [PATCH] build: fix build on --as-needed toolchains (generic)
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -66,12 +66,13 @@ all.
66 66
67Signed-off-by: André Draszik <andre.draszik@jci.com> 67Signed-off-by: André Draszik <andre.draszik@jci.com>
68Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 68Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
69
69--- 70---
70 make/common/NativeCompilation.gmk | 5 ++--- 71 make/common/NativeCompilation.gmk | 5 ++---
71 1 file changed, 2 insertions(+), 3 deletions(-) 72 1 file changed, 2 insertions(+), 3 deletions(-)
72 73
73diff --git a/make/common/NativeCompilation.gmk b/make/common/NativeCompilation.gmk 74diff --git a/make/common/NativeCompilation.gmk b/make/common/NativeCompilation.gmk
74index d961cf3..92f8033 100644 75index d961cf35..92f8033f 100644
75--- a/make/common/NativeCompilation.gmk 76--- a/make/common/NativeCompilation.gmk
76+++ b/make/common/NativeCompilation.gmk 77+++ b/make/common/NativeCompilation.gmk
77@@ -618,9 +618,8 @@ endif # no MacOS X support yet 78@@ -618,9 +618,8 @@ endif # no MacOS X support yet
@@ -86,6 +87,3 @@ index d961cf3..92f8033 100644
86 ifneq (,$$($1_GEN_MANIFEST)) 87 ifneq (,$$($1_GEN_MANIFEST))
87 $(MT) -nologo -manifest $$($1_GEN_MANIFEST) -outputresource:$$@;#1 88 $(MT) -nologo -manifest $$($1_GEN_MANIFEST) -outputresource:$$@;#1
88 endif 89 endif
89--
902.24.1
91
diff --git a/recipes-core/openjdk/patches-openjdk-8/0004-don-t-expect-fqpn-for-make.patch b/recipes-core/openjdk/patches-openjdk-8/0004-don-t-expect-fqpn-for-make.patch
index db00b24..eab00d2 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0004-don-t-expect-fqpn-for-make.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0004-don-t-expect-fqpn-for-make.patch
@@ -1,15 +1,16 @@
1From f4c93547119c7550626e1b2ae2b750ea4f83b3fe Mon Sep 17 00:00:00 2001 1From a99cf53a082c1b25f5f7159c65bfd2c27a63fe75 Mon Sep 17 00:00:00 2001
2From: Jens Rehsack <rehsack@gmail.com> 2From: Jens Rehsack <rehsack@gmail.com>
3Date: Thu, 2 Jan 2020 13:42:43 +0100 3Date: Thu, 2 Jan 2020 13:42:43 +0100
4Subject: [PATCH 04/10] don't expect fqpn for make 4Subject: [PATCH] don't expect fqpn for make
5 5
6Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 6Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
7
7--- 8---
8 common/autoconf/basics.m4 | 8 +++++--- 9 common/autoconf/basics.m4 | 8 +++++---
9 1 file changed, 5 insertions(+), 3 deletions(-) 10 1 file changed, 5 insertions(+), 3 deletions(-)
10 11
11diff --git a/common/autoconf/basics.m4 b/common/autoconf/basics.m4 12diff --git a/common/autoconf/basics.m4 b/common/autoconf/basics.m4
12index 4ee9cdd..c20ea76 100644 13index 4ee9cdd1..c20ea765 100644
13--- a/common/autoconf/basics.m4 14--- a/common/autoconf/basics.m4
14+++ b/common/autoconf/basics.m4 15+++ b/common/autoconf/basics.m4
15@@ -740,10 +740,12 @@ AC_DEFUN([BASIC_CHECK_GNU_MAKE], 16@@ -740,10 +740,12 @@ AC_DEFUN([BASIC_CHECK_GNU_MAKE],
@@ -28,6 +29,3 @@ index 4ee9cdd..c20ea76 100644
28 if test "x$FOUND_MAKE" = x; then 29 if test "x$FOUND_MAKE" = x; then
29 AC_MSG_ERROR([The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer.]) 30 AC_MSG_ERROR([The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer.])
30 fi 31 fi
31--
322.24.1
33
diff --git a/recipes-core/openjdk/patches-openjdk-8/0005-autoconf-filter-aclocal-copy-too.patch b/recipes-core/openjdk/patches-openjdk-8/0005-autoconf-filter-aclocal-copy-too.patch
index 262f0b7..1a0f6e3 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0005-autoconf-filter-aclocal-copy-too.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0005-autoconf-filter-aclocal-copy-too.patch
@@ -1,15 +1,16 @@
1From b8bab47b58be4a0102011825c2ee3dd2c6427d08 Mon Sep 17 00:00:00 2001 1From 37a7b95ab512ddeb635b6b8e23e4bac089ccee38 Mon Sep 17 00:00:00 2001
2From: Jens Rehsack <rehsack@gmail.com> 2From: Jens Rehsack <rehsack@gmail.com>
3Date: Thu, 2 Jan 2020 13:44:25 +0100 3Date: Thu, 2 Jan 2020 13:44:25 +0100
4Subject: [PATCH 05/10] autoconf: filter aclocal copy too 4Subject: [PATCH] autoconf: filter aclocal copy too
5 5
6Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 6Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
7
7--- 8---
8 common/autoconf/basics.m4 | 1 + 9 common/autoconf/basics.m4 | 1 +
9 1 file changed, 1 insertion(+) 10 1 file changed, 1 insertion(+)
10 11
11diff --git a/common/autoconf/basics.m4 b/common/autoconf/basics.m4 12diff --git a/common/autoconf/basics.m4 b/common/autoconf/basics.m4
12index c20ea76..8e06cd2 100644 13index c20ea765..8e06cd25 100644
13--- a/common/autoconf/basics.m4 14--- a/common/autoconf/basics.m4
14+++ b/common/autoconf/basics.m4 15+++ b/common/autoconf/basics.m4
15@@ -636,6 +636,7 @@ AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR], 16@@ -636,6 +636,7 @@ AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
@@ -20,6 +21,3 @@ index c20ea76..8e06cd2 100644
20 -e 's/ //g' \ 21 -e 's/ //g' \
21 | $TR -d '\n'` 22 | $TR -d '\n'`
22 if test "x$filtered_files" != x; then 23 if test "x$filtered_files" != x; then
23--
242.24.1
25
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
index c5fa4bf..d24ed71 100644
--- 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
@@ -1,19 +1,20 @@
1From cf40c00dfd6d2299055c0e8415525d2da5e7cd4a Mon Sep 17 00:00:00 2001 1From be1397b2106874869eebfc0b21943f1976a97f1b Mon Sep 17 00:00:00 2001
2From: Haiqing Bai <Haiqing.Bai@windriver.com> 2From: Haiqing Bai <Haiqing.Bai@windriver.com>
3Date: Thu, 2 Jan 2020 13:45:42 +0100 3Date: Thu, 2 Jan 2020 13:45:42 +0100
4Subject: [PATCH 06/10] autoconf: handle extra output 4Subject: [PATCH] autoconf: handle extra output
5 5
6When adding the environment variable JAVA_TOOL_OPTIONS an extra line 6When adding the environment variable JAVA_TOOL_OPTIONS an extra line
7in the output from 'java -version' is produced. As this output is 7in the output from 'java -version' is produced. As this output is
8parsed by configure script the extra line has to be filtered out. 8parsed by configure script the extra line has to be filtered out.
9 9
10Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 10Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
11
11--- 12---
12 common/autoconf/boot-jdk.m4 | 2 +- 13 common/autoconf/boot-jdk.m4 | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-) 14 1 file changed, 1 insertion(+), 1 deletion(-)
14 15
15diff --git a/common/autoconf/boot-jdk.m4 b/common/autoconf/boot-jdk.m4 16diff --git a/common/autoconf/boot-jdk.m4 b/common/autoconf/boot-jdk.m4
16index 5be15b8..0d1a6e1 100644 17index 5be15b86..0d1a6e14 100644
17--- a/common/autoconf/boot-jdk.m4 18--- a/common/autoconf/boot-jdk.m4
18+++ b/common/autoconf/boot-jdk.m4 19+++ b/common/autoconf/boot-jdk.m4
19@@ -51,7 +51,7 @@ AC_DEFUN([BOOTJDK_DO_CHECK], 20@@ -51,7 +51,7 @@ AC_DEFUN([BOOTJDK_DO_CHECK],
@@ -25,6 +26,3 @@ index 5be15b8..0d1a6e1 100644
25 26
26 # Extra M4 quote needed to protect [] in grep expression. 27 # Extra M4 quote needed to protect [] in grep expression.
27 [FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'`] 28 [FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'`]
28--
292.24.1
30
diff --git a/recipes-core/openjdk/patches-openjdk-8/0007-fix-assembler-flag-handling-in-makefile.patch b/recipes-core/openjdk/patches-openjdk-8/0007-fix-assembler-flag-handling-in-makefile.patch
index c99d599..b7e84b2 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0007-fix-assembler-flag-handling-in-makefile.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0007-fix-assembler-flag-handling-in-makefile.patch
@@ -1,7 +1,7 @@
1From ec3aa8ae1159ff5ef37fae1ba470cf1886aa8d79 Mon Sep 17 00:00:00 2001 1From 2206e1d037359cf4f08a6c7b944d6735b56ea36d Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Erkka=20K=C3=A4=C3=A4ri=C3=A4?= <erkka.kaaria@intel.com> 2From: =?UTF-8?q?Erkka=20K=C3=A4=C3=A4ri=C3=A4?= <erkka.kaaria@intel.com>
3Date: Thu, 2 Jan 2020 13:49:02 +0100 3Date: Thu, 2 Jan 2020 13:49:02 +0100
4Subject: [PATCH 07/10] fix assembler flag handling in makefile 4Subject: [PATCH] fix assembler flag handling in makefile
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -14,12 +14,13 @@ Upstream-Status: Pending
14 14
15Signed-off-by: Erkka Kääriä <erkka.kaaria@intel.com> 15Signed-off-by: Erkka Kääriä <erkka.kaaria@intel.com>
16Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 16Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
17
17--- 18---
18 make/common/NativeCompilation.gmk | 2 +- 19 make/common/NativeCompilation.gmk | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-) 20 1 file changed, 1 insertion(+), 1 deletion(-)
20 21
21diff --git a/make/common/NativeCompilation.gmk b/make/common/NativeCompilation.gmk 22diff --git a/make/common/NativeCompilation.gmk b/make/common/NativeCompilation.gmk
22index 92f8033..46a1be9 100644 23index 92f8033f..46a1be91 100644
23--- a/make/common/NativeCompilation.gmk 24--- a/make/common/NativeCompilation.gmk
24+++ b/make/common/NativeCompilation.gmk 25+++ b/make/common/NativeCompilation.gmk
25@@ -391,7 +391,7 @@ define SetupNativeCompilation 26@@ -391,7 +391,7 @@ define SetupNativeCompilation
@@ -31,6 +32,3 @@ index 92f8033..46a1be9 100644
31 32
32 # On windows we need to create a resource file 33 # On windows we need to create a resource file
33 ifeq ($(OPENJDK_TARGET_OS), windows) 34 ifeq ($(OPENJDK_TARGET_OS), windows)
34--
352.24.1
36
diff --git a/recipes-core/openjdk/patches-openjdk-8/0008-autoconf-fix-shark-build-common.patch b/recipes-core/openjdk/patches-openjdk-8/0008-autoconf-fix-shark-build-common.patch
index b783613..9cf468e 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0008-autoconf-fix-shark-build-common.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0008-autoconf-fix-shark-build-common.patch
@@ -1,15 +1,16 @@
1From c530da1c0269d1e9a875670943446876227fdb71 Mon Sep 17 00:00:00 2001 1From bc54b9fbe29c524c07377fb8a87922be55c61700 Mon Sep 17 00:00:00 2001
2From: Jens Rehsack <rehsack@gmail.com> 2From: Jens Rehsack <rehsack@gmail.com>
3Date: Thu, 2 Jan 2020 13:51:40 +0100 3Date: Thu, 2 Jan 2020 13:51:40 +0100
4Subject: [PATCH 08/10] autoconf: fix shark build (common) 4Subject: [PATCH] autoconf: fix shark build (common)
5 5
6Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 6Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
7
7--- 8---
8 common/autoconf/libraries.m4 | 5 +++-- 9 common/autoconf/libraries.m4 | 5 +++--
9 1 file changed, 3 insertions(+), 2 deletions(-) 10 1 file changed, 3 insertions(+), 2 deletions(-)
10 11
11diff --git a/common/autoconf/libraries.m4 b/common/autoconf/libraries.m4 12diff --git a/common/autoconf/libraries.m4 b/common/autoconf/libraries.m4
12index 727f018..91d2b5c 100644 13index 727f0181..91d2b5ca 100644
13--- a/common/autoconf/libraries.m4 14--- a/common/autoconf/libraries.m4
14+++ b/common/autoconf/libraries.m4 15+++ b/common/autoconf/libraries.m4
15@@ -1079,8 +1079,9 @@ AC_DEFUN_ONCE([LIB_SETUP_STATIC_LINK_LIBSTDCPP], 16@@ -1079,8 +1079,9 @@ AC_DEFUN_ONCE([LIB_SETUP_STATIC_LINK_LIBSTDCPP],
@@ -32,6 +33,3 @@ index 727f018..91d2b5c 100644
32 if echo "${flag}" | grep -q '^-l'; then 33 if echo "${flag}" | grep -q '^-l'; then
33 if test "${LLVM_LIBS}" != ""; then 34 if test "${LLVM_LIBS}" != ""; then
34 LLVM_LIBS="${LLVM_LIBS} " 35 LLVM_LIBS="${LLVM_LIBS} "
35--
362.24.1
37
diff --git a/recipes-core/openjdk/patches-openjdk-8/0009-prevent-debuginfo-in-favour-of-openembedded-package-.patch b/recipes-core/openjdk/patches-openjdk-8/0009-prevent-debuginfo-in-favour-of-openembedded-package-.patch
index 14fccd1..ff6180f 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0009-prevent-debuginfo-in-favour-of-openembedded-package-.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0009-prevent-debuginfo-in-favour-of-openembedded-package-.patch
@@ -1,16 +1,16 @@
1From a5f2646a9dd0f7191e9e0aa5eba5fdd9d70d1671 Mon Sep 17 00:00:00 2001 1From 038f36c083a83916504b8b59c80099fbeb9a68d6 Mon Sep 17 00:00:00 2001
2From: Jens Rehsack <rehsack@gmail.com> 2From: Jens Rehsack <rehsack@gmail.com>
3Date: Thu, 2 Jan 2020 13:53:50 +0100 3Date: Thu, 2 Jan 2020 13:53:50 +0100
4Subject: [PATCH 09/10] prevent debuginfo in favour of openembedded package 4Subject: [PATCH] prevent debuginfo in favour of openembedded package split
5 split
6 5
7Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 6Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
7
8--- 8---
9 make/common/NativeCompilation.gmk | 122 ------------------------------ 9 make/common/NativeCompilation.gmk | 122 ------------------------------
10 1 file changed, 122 deletions(-) 10 1 file changed, 122 deletions(-)
11 11
12diff --git a/make/common/NativeCompilation.gmk b/make/common/NativeCompilation.gmk 12diff --git a/make/common/NativeCompilation.gmk b/make/common/NativeCompilation.gmk
13index 46a1be9..b4ea2c6 100644 13index 46a1be91..b4ea2c6f 100644
14--- a/make/common/NativeCompilation.gmk 14--- a/make/common/NativeCompilation.gmk
15+++ b/make/common/NativeCompilation.gmk 15+++ b/make/common/NativeCompilation.gmk
16@@ -456,67 +456,6 @@ define SetupNativeCompilation 16@@ -456,67 +456,6 @@ define SetupNativeCompilation
@@ -149,6 +149,3 @@ index 46a1be9..b4ea2c6 100644
149 endif 149 endif
150 endif 150 endif
151 151
152--
1532.24.1
154
diff --git a/recipes-core/openjdk/patches-openjdk-8/0010-autoconf-remove-shell-variables-from-autoheader.patch b/recipes-core/openjdk/patches-openjdk-8/0010-autoconf-remove-shell-variables-from-autoheader.patch
index 57099ec..ff9346c 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0010-autoconf-remove-shell-variables-from-autoheader.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0010-autoconf-remove-shell-variables-from-autoheader.patch
@@ -1,15 +1,16 @@
1From 0d22dccb4de73d274b90e2647702b92958374bc1 Mon Sep 17 00:00:00 2001 1From b6e88ffb6c4a8d84da643fa9cb29c086f7c02584 Mon Sep 17 00:00:00 2001
2From: Jens Rehsack <rehsack@gmail.com> 2From: Jens Rehsack <rehsack@gmail.com>
3Date: Thu, 2 Jan 2020 13:55:29 +0100 3Date: Thu, 2 Jan 2020 13:55:29 +0100
4Subject: [PATCH 10/10] autoconf: remove shell variables from autoheader 4Subject: [PATCH] autoconf: remove shell variables from autoheader
5 5
6Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 6Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
7
7--- 8---
8 common/autoconf/basics.m4 | 14 +++++++------- 9 common/autoconf/basics.m4 | 14 +++++++-------
9 1 file changed, 7 insertions(+), 7 deletions(-) 10 1 file changed, 7 insertions(+), 7 deletions(-)
10 11
11diff --git a/common/autoconf/basics.m4 b/common/autoconf/basics.m4 12diff --git a/common/autoconf/basics.m4 b/common/autoconf/basics.m4
12index 8e06cd2..c220bba 100644 13index 8e06cd25..c220bba7 100644
13--- a/common/autoconf/basics.m4 14--- a/common/autoconf/basics.m4
14+++ b/common/autoconf/basics.m4 15+++ b/common/autoconf/basics.m4
15@@ -661,21 +661,21 @@ AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR], 16@@ -661,21 +661,21 @@ AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
@@ -41,6 +42,3 @@ index 8e06cd2..c220bba 100644
41 ]) 42 ])
42 43
43 AC_DEFUN_ONCE([BASIC_SETUP_LOGGING], 44 AC_DEFUN_ONCE([BASIC_SETUP_LOGGING],
44--
452.24.1
46
diff --git a/recipes-core/openjdk/patches-openjdk-8/0011-autoconf-fix-CC-with-arguments-detection.patch b/recipes-core/openjdk/patches-openjdk-8/0011-autoconf-fix-CC-with-arguments-detection.patch
index f1de194..88d2192 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0011-autoconf-fix-CC-with-arguments-detection.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0011-autoconf-fix-CC-with-arguments-detection.patch
@@ -1,5 +1,20 @@
1From e878eea93b95d82d3ea13f4122f4f74cd2f8f3df Mon Sep 17 00:00:00 2001
2From: Richard Leitner <richard.leitner@skidata.com>
3Date: Thu, 22 Oct 2020 09:23:06 +0200
4Subject: [PATCH 11/13] autoconf: fix CC with arguments detection
5
6Fix the compiler binary detection for exported CC variables with
7arguments in them.
8
9Upstream-Status: Pending
10
11Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
12---
13 common/autoconf/toolchain.m4 | 23 +++++++++++++++--------
14 1 file changed, 15 insertions(+), 8 deletions(-)
15
1diff --git a/common/autoconf/toolchain.m4 b/common/autoconf/toolchain.m4 16diff --git a/common/autoconf/toolchain.m4 b/common/autoconf/toolchain.m4
2index e3a82c8..705e3e7 100644 17index c0a4af5..28da6ea 100644
3--- a/common/autoconf/toolchain.m4 18--- a/common/autoconf/toolchain.m4
4+++ b/common/autoconf/toolchain.m4 19+++ b/common/autoconf/toolchain.m4
5@@ -478,23 +478,30 @@ AC_DEFUN([TOOLCHAIN_FIND_COMPILER], 20@@ -478,23 +478,30 @@ AC_DEFUN([TOOLCHAIN_FIND_COMPILER],
@@ -41,3 +56,6 @@ index e3a82c8..705e3e7 100644
41 else 56 else
42 # No user supplied value. Locate compiler ourselves. 57 # No user supplied value. Locate compiler ourselves.
43 58
59--
602.26.2
61
diff --git a/recipes-core/openjdk/patches-openjdk-8/0012-autoconf-NativeCompilation-remove-sysroot.patch b/recipes-core/openjdk/patches-openjdk-8/0012-autoconf-NativeCompilation-remove-sysroot.patch
index 39179d4..fc8fca5 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0012-autoconf-NativeCompilation-remove-sysroot.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0012-autoconf-NativeCompilation-remove-sysroot.patch
@@ -1,5 +1,17 @@
1From 03052435dc7f1146ddd7ebe6f510a89448d33aca Mon Sep 17 00:00:00 2001
2From: Richard Leitner <richard.leitner@skidata.com>
3Date: Thu, 22 Oct 2020 09:24:50 +0200
4Subject: [PATCH 12/13] autoconf: NativeCompilation: remove sysroot
5
6Upstream-Status: Pending
7
8Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
9---
10 make/common/NativeCompilation.gmk | 6 ------
11 1 file changed, 6 deletions(-)
12
1diff --git a/make/common/NativeCompilation.gmk b/make/common/NativeCompilation.gmk 13diff --git a/make/common/NativeCompilation.gmk b/make/common/NativeCompilation.gmk
2index d961cf3..9679f97 100644 14index b4ea2c6..01082f5 100644
3--- a/make/common/NativeCompilation.gmk 15--- a/make/common/NativeCompilation.gmk
4+++ b/make/common/NativeCompilation.gmk 16+++ b/make/common/NativeCompilation.gmk
5@@ -383,10 +383,6 @@ define SetupNativeCompilation 17@@ -383,10 +383,6 @@ define SetupNativeCompilation
@@ -22,3 +34,6 @@ index d961cf3..9679f97 100644
22 $1 := $$($1_TARGET) 34 $1 := $$($1_TARGET)
23 ifneq (,$$($1_LIBRARY)) 35 ifneq (,$$($1_LIBRARY))
24 # Generating a dynamic library. 36 # Generating a dynamic library.
37--
382.26.2
39
diff --git a/recipes-core/openjdk/patches-openjdk-8/0013-autoconf-remove-Werror.patch b/recipes-core/openjdk/patches-openjdk-8/0013-autoconf-remove-Werror.patch
new file mode 100644
index 0000000..7991a04
--- /dev/null
+++ b/recipes-core/openjdk/patches-openjdk-8/0013-autoconf-remove-Werror.patch
@@ -0,0 +1,219 @@
1From 3a41aceff84ac9c64910f2efbd4bee7c3532c65d Mon Sep 17 00:00:00 2001
2From: Richard Leitner <richard.leitner@skidata.com>
3Date: Wed, 29 Apr 2020 10:15:11 +0200
4Subject: [PATCH] autoconf: remove Werror
5
6We don't want to mess around with disabling warnings on new
7compiler versions therefore we remove Werror.
8
9Upstream-Status: Invalid
10
11Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
12
13---
14 common/autoconf/flags.m4 | 12 +++---
15 common/autoconf/generated-configure.sh | 56 +++++++++++++-------------
16 2 files changed, 34 insertions(+), 34 deletions(-)
17
18diff --git a/common/autoconf/flags.m4 b/common/autoconf/flags.m4
19index 077efa29..b98575a1 100644
20--- a/common/autoconf/flags.m4
21+++ b/common/autoconf/flags.m4
22@@ -399,7 +399,7 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK],
23 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS -Wl,-z,relro"
24 fi
25 $2CXXSTD_CXXFLAG="-std=gnu++98"
26- FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]$2CXXSTD_CXXFLAG -Werror],
27+ FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]$2CXXSTD_CXXFLAG],
28 [], [$2CXXSTD_CXXFLAG=""])
29 $2CXXFLAGS_JDK="${$2CXXFLAGS_JDK} ${$2CXXSTD_CXXFLAG}"
30 $2JVM_CFLAGS="${$2JVM_CFLAGS} ${$2CXXSTD_CXXFLAG}"
31@@ -489,17 +489,17 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK],
32 # Notably, -ffp-contract=off needs to be added for GCC >= 4.6,
33 # -mno-fused-madd -fno-strict-aliasing for GCC < 4.6
34 COMPILER_FP_CONTRACT_OFF_FLAG="-ffp-contract=off"
35- FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]COMPILER_FP_CONTRACT_OFF_FLAG -Werror],
36+ FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]COMPILER_FP_CONTRACT_OFF_FLAG],
37 [], [COMPILER_FP_CONTRACT_OFF_FLAG=""])
38 if test "x$COMPILER_FP_CONTRACT_OFF_FLAG" = x; then
39 if test "$OPENJDK_TARGET_CPU_ARCH" = "x86" ||
40 test "$OPENJDK_TARGET_CPU_ARCH" = "x86_64" ||
41 test "$OPENJDK_TARGET_CPU_ARCH" = "ppc"; then
42 M_NO_FUSED_ADD_FLAG="-mno-fused-madd"
43- FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]M_NO_FUSED_ADD_FLAG -Werror],
44+ FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]M_NO_FUSED_ADD_FLAG],
45 [], [M_NO_FUSED_ADD_FLAG=""])
46 NO_STRICT_ALIASING_FLAG="-fno-strict-aliasing"
47- FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]NO_STRICT_ALIASING_FLAG -Werror],
48+ FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]NO_STRICT_ALIASING_FLAG],
49 [], [NO_STRICT_ALIASING_FLAG=""])
50 if test "x$M_NO_FUSED_ADD_FLAG" != "x" && test "x$NO_STRICT_ALIASING_FLAG" != "x"; then
51 FDLIBM_CFLAGS="$M_NO_FUSED_ADD_FLAG $NO_STRICT_ALIASING_FLAG"
52@@ -866,11 +866,11 @@ AC_DEFUN_ONCE([FLAGS_SETUP_GCC6_COMPILER_FLAGS],
53 # Notably, value range propagation now assumes that the this pointer of C++
54 # member functions is non-null.
55 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks"
56- FLAGS_COMPILER_CHECK_ARGUMENTS([$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror],
57+ FLAGS_COMPILER_CHECK_ARGUMENTS([$NO_DELETE_NULL_POINTER_CHECKS_CFLAG],
58 [], [NO_DELETE_NULL_POINTER_CHECKS_CFLAG=""])
59 AC_SUBST([NO_DELETE_NULL_POINTER_CHECKS_CFLAG])
60 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse"
61- FLAGS_COMPILER_CHECK_ARGUMENTS([$NO_LIFETIME_DSE_CFLAG -Werror],
62+ FLAGS_COMPILER_CHECK_ARGUMENTS([$NO_LIFETIME_DSE_CFLAG],
63 [], [NO_LIFETIME_DSE_CFLAG=""])
64 CFLAGS_JDK="${CFLAGS_JDK} ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}"
65 AC_SUBST([NO_LIFETIME_DSE_CFLAG])
66diff --git a/common/autoconf/generated-configure.sh b/common/autoconf/generated-configure.sh
67index d57035b0..1953dc4e 100644
68--- a/common/autoconf/generated-configure.sh
69+++ b/common/autoconf/generated-configure.sh
70@@ -41498,12 +41498,12 @@ $as_echo "$ac_cv_c_bigendian" >&6; }
71 fi
72 CXXSTD_CXXFLAG="-std=gnu++98"
73
74- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5
75-$as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; }
76+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG\"" >&5
77+$as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG\"... " >&6; }
78 supports=yes
79
80 saved_cxxflags="$CXXFLAGS"
81- CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror"
82+ CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG"
83 ac_ext=cpp
84 ac_cpp='$CXXCPP $CPPFLAGS'
85 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
86@@ -41654,12 +41654,12 @@ fi
87 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks"
88
89
90- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5
91-$as_echo_n "checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; }
92+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG\"" >&5
93+$as_echo_n "checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG\"... " >&6; }
94 supports=yes
95
96 saved_cflags="$CFLAGS"
97- CFLAGS="$CFLAGS $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror"
98+ CFLAGS="$CFLAGS $NO_DELETE_NULL_POINTER_CHECKS_CFLAG"
99 ac_ext=c
100 ac_cpp='$CPP $CPPFLAGS'
101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
102@@ -41694,12 +41694,12 @@ $as_echo "$supports" >&6; }
103 fi
104
105
106- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5
107-$as_echo_n "checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; }
108+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG\"" >&5
109+$as_echo_n "checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG\"... " >&6; }
110 supports=yes
111
112 saved_cxxflags="$CXXFLAGS"
113- CXXFLAGS="$CXXFLAG $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror"
114+ CXXFLAGS="$CXXFLAG $NO_DELETE_NULL_POINTER_CHECKS_CFLAG"
115 ac_ext=cpp
116 ac_cpp='$CXXCPP $CPPFLAGS'
117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
118@@ -41733,8 +41733,8 @@ $as_echo "$supports" >&6; }
119 fi
120
121
122- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5
123-$as_echo_n "checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; }
124+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG\"" >&5
125+$as_echo_n "checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG\"... " >&6; }
126 supports=no
127 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi
128
129@@ -41750,12 +41750,12 @@ $as_echo "$supports" >&6; }
130 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse"
131
132
133- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5
134-$as_echo_n "checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; }
135+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG\"" >&5
136+$as_echo_n "checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG\"... " >&6; }
137 supports=yes
138
139 saved_cflags="$CFLAGS"
140- CFLAGS="$CFLAGS $NO_LIFETIME_DSE_CFLAG -Werror"
141+ CFLAGS="$CFLAGS $NO_LIFETIME_DSE_CFLAG"
142 ac_ext=c
143 ac_cpp='$CPP $CPPFLAGS'
144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
145@@ -41789,12 +41789,12 @@ $as_echo "$supports" >&6; }
146 fi
147
148
149- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5
150-$as_echo_n "checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; }
151+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG\"" >&5
152+$as_echo_n "checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG\"... " >&6; }
153 supports=yes
154
155 saved_cxxflags="$CXXFLAGS"
156- CXXFLAGS="$CXXFLAG $NO_LIFETIME_DSE_CFLAG -Werror"
157+ CXXFLAGS="$CXXFLAG $NO_LIFETIME_DSE_CFLAG"
158 ac_ext=cpp
159 ac_cpp='$CXXCPP $CPPFLAGS'
160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
161@@ -41828,8 +41828,8 @@ $as_echo "$supports" >&6; }
162 fi
163
164
165- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5
166-$as_echo_n "checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; }
167+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG\"" >&5
168+$as_echo_n "checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG\"... " >&6; }
169 supports=no
170 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi
171
172@@ -41862,12 +41862,12 @@ $as_echo "$supports" >&6; }
173 # -mno-fused-madd -fno-strict-aliasing for GCC < 4.6
174 COMPILER_FP_CONTRACT_OFF_FLAG="-ffp-contract=off"
175
176- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$COMPILER_FP_CONTRACT_OFF_FLAG -Werror\"" >&5
177-$as_echo_n "checking if the C++ compiler supports \"$COMPILER_FP_CONTRACT_OFF_FLAG -Werror\"... " >&6; }
178+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$COMPILER_FP_CONTRACT_OFF_FLAG\"" >&5
179+$as_echo_n "checking if the C++ compiler supports \"$COMPILER_FP_CONTRACT_OFF_FLAG\"... " >&6; }
180 supports=yes
181
182 saved_cxxflags="$CXXFLAGS"
183- CXXFLAGS="$CXXFLAG $COMPILER_FP_CONTRACT_OFF_FLAG -Werror"
184+ CXXFLAGS="$CXXFLAG $COMPILER_FP_CONTRACT_OFF_FLAG"
185 ac_ext=cpp
186 ac_cpp='$CXXCPP $CPPFLAGS'
187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
188@@ -41906,12 +41906,12 @@ $as_echo "$supports" >&6; }
189 test "$OPENJDK_TARGET_CPU_ARCH" = "ppc"; then
190 M_NO_FUSED_ADD_FLAG="-mno-fused-madd"
191
192- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$M_NO_FUSED_ADD_FLAG -Werror\"" >&5
193-$as_echo_n "checking if the C++ compiler supports \"$M_NO_FUSED_ADD_FLAG -Werror\"... " >&6; }
194+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$M_NO_FUSED_ADD_FLAG\"" >&5
195+$as_echo_n "checking if the C++ compiler supports \"$M_NO_FUSED_ADD_FLAG\"... " >&6; }
196 supports=yes
197
198 saved_cxxflags="$CXXFLAGS"
199- CXXFLAGS="$CXXFLAG $M_NO_FUSED_ADD_FLAG -Werror"
200+ CXXFLAGS="$CXXFLAG $M_NO_FUSED_ADD_FLAG"
201 ac_ext=cpp
202 ac_cpp='$CXXCPP $CPPFLAGS'
203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
204@@ -41946,12 +41946,12 @@ $as_echo "$supports" >&6; }
205
206 NO_STRICT_ALIASING_FLAG="-fno-strict-aliasing"
207
208- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_STRICT_ALIASING_FLAG -Werror\"" >&5
209-$as_echo_n "checking if the C++ compiler supports \"$NO_STRICT_ALIASING_FLAG -Werror\"... " >&6; }
210+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_STRICT_ALIASING_FLAG\"" >&5
211+$as_echo_n "checking if the C++ compiler supports \"$NO_STRICT_ALIASING_FLAG\"... " >&6; }
212 supports=yes
213
214 saved_cxxflags="$CXXFLAGS"
215- CXXFLAGS="$CXXFLAG $NO_STRICT_ALIASING_FLAG -Werror"
216+ CXXFLAGS="$CXXFLAG $NO_STRICT_ALIASING_FLAG"
217 ac_ext=cpp
218 ac_cpp='$CXXCPP $CPPFLAGS'
219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
diff --git a/recipes-core/openjdk/patches-openjdk-8/1001-hotspot-fix-crash-on-JNI_CreateJavaVM.patch b/recipes-core/openjdk/patches-openjdk-8/1001-hotspot-fix-crash-on-JNI_CreateJavaVM.patch
index 280ee60..b2e50e0 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1001-hotspot-fix-crash-on-JNI_CreateJavaVM.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1001-hotspot-fix-crash-on-JNI_CreateJavaVM.patch
@@ -1,7 +1,7 @@
1From 5e8080a8dd56205f550f7c490f864c95dc8e509b Mon Sep 17 00:00:00 2001 1From 4d1bd6a65c52564f32761217ded7b9bdde43556b Mon Sep 17 00:00:00 2001
2From: Wenlin Kang <wenlin.kang@windriver.com> 2From: Wenlin Kang <wenlin.kang@windriver.com>
3Date: Sun, 17 Feb 2019 22:38:33 -0800 3Date: Sun, 17 Feb 2019 22:38:33 -0800
4Subject: [PATCH 1001/1012] hotspot: fix crash on JNI_CreateJavaVM 4Subject: [PATCH 1001/1013] hotspot: fix crash on JNI_CreateJavaVM
5 5
6In function os::pd_create_stack_guard_pages(char* addr, size_t size), 6In function os::pd_create_stack_guard_pages(char* addr, size_t size),
7when addr < os::Linux::initial_thread_stack_bottom(), usually munmap() 7when addr < os::Linux::initial_thread_stack_bottom(), usually munmap()
@@ -19,10 +19,10 @@ Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
19 1 file changed, 2 insertions(+), 1 deletion(-) 19 1 file changed, 2 insertions(+), 1 deletion(-)
20 20
21diff --git a/hotspot/src/os/linux/vm/os_linux.cpp b/hotspot/src/os/linux/vm/os_linux.cpp 21diff --git a/hotspot/src/os/linux/vm/os_linux.cpp b/hotspot/src/os/linux/vm/os_linux.cpp
22index 03cabfefb..4f28cc1fb 100644 22index c477851c1..47eef1e7c 100644
23--- a/hotspot/src/os/linux/vm/os_linux.cpp 23--- a/hotspot/src/os/linux/vm/os_linux.cpp
24+++ b/hotspot/src/os/linux/vm/os_linux.cpp 24+++ b/hotspot/src/os/linux/vm/os_linux.cpp
25@@ -3192,7 +3192,8 @@ bool os::pd_create_stack_guard_pages(char* addr, size_t size) { 25@@ -3227,7 +3227,8 @@ bool os::pd_create_stack_guard_pages(char* addr, size_t size) {
26 uintptr_t stack_extent = (uintptr_t) os::Linux::initial_thread_stack_bottom(); 26 uintptr_t stack_extent = (uintptr_t) os::Linux::initial_thread_stack_bottom();
27 unsigned char vec[1]; 27 unsigned char vec[1];
28 28
@@ -33,5 +33,5 @@ index 03cabfefb..4f28cc1fb 100644
33 stack_extent = (uintptr_t) get_stack_commited_bottom( 33 stack_extent = (uintptr_t) get_stack_commited_bottom(
34 os::Linux::initial_thread_stack_bottom(), 34 os::Linux::initial_thread_stack_bottom(),
35-- 35--
362.24.1 362.26.2
37 37
diff --git a/recipes-core/openjdk/patches-openjdk-8/1002-hotspot-use-correct-include-for-poll.patch b/recipes-core/openjdk/patches-openjdk-8/1002-hotspot-use-correct-include-for-poll.patch
index 3f678dd..7739c8b 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1002-hotspot-use-correct-include-for-poll.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1002-hotspot-use-correct-include-for-poll.patch
@@ -1,7 +1,7 @@
1From df566df123c8af8252c0e113c41c32482834923e Mon Sep 17 00:00:00 2001 1From 9f2a5acce1da9908a7e94388880c831e1635e51f Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Tue, 27 Feb 2018 09:28:06 +0000 3Date: Tue, 27 Feb 2018 09:28:06 +0000
4Subject: [PATCH 1002/1012] hotspot: use correct include for poll 4Subject: [PATCH] hotspot: use correct include for poll
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -23,15 +23,16 @@ Upstream-Status: Pending
23 23
24Signed-off-by: André Draszik <andre.draszik@jci.com> 24Signed-off-by: André Draszik <andre.draszik@jci.com>
25Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 25Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
26
26--- 27---
27 src/os/aix/vm/os_aix.inline.hpp | 2 +- 28 hotspot/src/os/aix/vm/os_aix.inline.hpp | 2 +-
28 src/os/bsd/vm/os_bsd.inline.hpp | 2 +- 29 hotspot/src/os/bsd/vm/os_bsd.inline.hpp | 2 +-
29 src/os/linux/vm/os_linux.inline.hpp | 2 +- 30 hotspot/src/os/linux/vm/os_linux.inline.hpp | 2 +-
30 src/os/solaris/vm/os_solaris.inline.hpp | 2 +- 31 hotspot/src/os/solaris/vm/os_solaris.inline.hpp | 2 +-
31 4 files changed, 4 insertions(+), 4 deletions(-) 32 4 files changed, 4 insertions(+), 4 deletions(-)
32 33
33diff --git a/hotspot/src/os/aix/vm/os_aix.inline.hpp b/hotspot/src/os/aix/vm/os_aix.inline.hpp 34diff --git a/hotspot/src/os/aix/vm/os_aix.inline.hpp b/hotspot/src/os/aix/vm/os_aix.inline.hpp
34index 421ea342e..9a1e1e096 100644 35index 421ea342..9a1e1e09 100644
35--- a/hotspot/src/os/aix/vm/os_aix.inline.hpp 36--- a/hotspot/src/os/aix/vm/os_aix.inline.hpp
36+++ b/hotspot/src/os/aix/vm/os_aix.inline.hpp 37+++ b/hotspot/src/os/aix/vm/os_aix.inline.hpp
37@@ -34,7 +34,7 @@ 38@@ -34,7 +34,7 @@
@@ -44,7 +45,7 @@ index 421ea342e..9a1e1e096 100644
44 #include <netdb.h> 45 #include <netdb.h>
45 46
46diff --git a/hotspot/src/os/bsd/vm/os_bsd.inline.hpp b/hotspot/src/os/bsd/vm/os_bsd.inline.hpp 47diff --git a/hotspot/src/os/bsd/vm/os_bsd.inline.hpp b/hotspot/src/os/bsd/vm/os_bsd.inline.hpp
47index c35abf486..8ff584aee 100644 48index c35abf48..8ff584ae 100644
48--- a/hotspot/src/os/bsd/vm/os_bsd.inline.hpp 49--- a/hotspot/src/os/bsd/vm/os_bsd.inline.hpp
49+++ b/hotspot/src/os/bsd/vm/os_bsd.inline.hpp 50+++ b/hotspot/src/os/bsd/vm/os_bsd.inline.hpp
50@@ -33,7 +33,7 @@ 51@@ -33,7 +33,7 @@
@@ -57,7 +58,7 @@ index c35abf486..8ff584aee 100644
57 58
58 inline void* os::thread_local_storage_at(int index) { 59 inline void* os::thread_local_storage_at(int index) {
59diff --git a/hotspot/src/os/linux/vm/os_linux.inline.hpp b/hotspot/src/os/linux/vm/os_linux.inline.hpp 60diff --git a/hotspot/src/os/linux/vm/os_linux.inline.hpp b/hotspot/src/os/linux/vm/os_linux.inline.hpp
60index a23bd5631..9d56de0ef 100644 61index a23bd563..9d56de0e 100644
61--- a/hotspot/src/os/linux/vm/os_linux.inline.hpp 62--- a/hotspot/src/os/linux/vm/os_linux.inline.hpp
62+++ b/hotspot/src/os/linux/vm/os_linux.inline.hpp 63+++ b/hotspot/src/os/linux/vm/os_linux.inline.hpp
63@@ -33,7 +33,7 @@ 64@@ -33,7 +33,7 @@
@@ -70,7 +71,7 @@ index a23bd5631..9d56de0ef 100644
70 71
71 inline void* os::thread_local_storage_at(int index) { 72 inline void* os::thread_local_storage_at(int index) {
72diff --git a/hotspot/src/os/solaris/vm/os_solaris.inline.hpp b/hotspot/src/os/solaris/vm/os_solaris.inline.hpp 73diff --git a/hotspot/src/os/solaris/vm/os_solaris.inline.hpp b/hotspot/src/os/solaris/vm/os_solaris.inline.hpp
73index 8e095ab69..ce37e9a12 100644 74index 8e095ab6..ce37e9a1 100644
74--- a/hotspot/src/os/solaris/vm/os_solaris.inline.hpp 75--- a/hotspot/src/os/solaris/vm/os_solaris.inline.hpp
75+++ b/hotspot/src/os/solaris/vm/os_solaris.inline.hpp 76+++ b/hotspot/src/os/solaris/vm/os_solaris.inline.hpp
76@@ -33,7 +33,7 @@ 77@@ -33,7 +33,7 @@
@@ -82,6 +83,3 @@ index 8e095ab69..ce37e9a12 100644
82 #include <sys/filio.h> 83 #include <sys/filio.h>
83 #include <unistd.h> 84 #include <unistd.h>
84 #include <netdb.h> 85 #include <netdb.h>
85--
862.24.1
87
diff --git a/recipes-core/openjdk/patches-openjdk-8/1003-hotspot-don-t-rely-on-old-SysV-SIGCLD.patch b/recipes-core/openjdk/patches-openjdk-8/1003-hotspot-don-t-rely-on-old-SysV-SIGCLD.patch
index 8e31461..e0864be 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1003-hotspot-don-t-rely-on-old-SysV-SIGCLD.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1003-hotspot-don-t-rely-on-old-SysV-SIGCLD.patch
@@ -1,7 +1,7 @@
1From e5bf672f4e10997789f2a447fd95a88703dbd332 Mon Sep 17 00:00:00 2001 1From 7e40a364af1427b5f5238cd8d49e947db1c1557d Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Tue, 27 Feb 2018 15:00:55 +0000 3Date: Tue, 27 Feb 2018 15:00:55 +0000
4Subject: [PATCH 1003/1012] hotspot: don't rely on old SysV SIGCLD 4Subject: [PATCH] hotspot: don't rely on old SysV SIGCLD
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -20,12 +20,13 @@ Upstream-Status: Pending
20 20
21Signed-off-by: André Draszik <andre.draszik@jci.com> 21Signed-off-by: André Draszik <andre.draszik@jci.com>
22Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 22Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
23
23--- 24---
24 src/os/linux/vm/jvm_linux.cpp | 2 ++ 25 hotspot/src/os/linux/vm/jvm_linux.cpp | 2 ++
25 1 file changed, 2 insertions(+) 26 1 file changed, 2 insertions(+)
26 27
27diff --git a/hotspot/src/os/linux/vm/jvm_linux.cpp b/hotspot/src/os/linux/vm/jvm_linux.cpp 28diff --git a/hotspot/src/os/linux/vm/jvm_linux.cpp b/hotspot/src/os/linux/vm/jvm_linux.cpp
28index ba84788a1..c22281f7c 100644 29index ba84788a..c22281f7 100644
29--- a/hotspot/src/os/linux/vm/jvm_linux.cpp 30--- a/hotspot/src/os/linux/vm/jvm_linux.cpp
30+++ b/hotspot/src/os/linux/vm/jvm_linux.cpp 31+++ b/hotspot/src/os/linux/vm/jvm_linux.cpp
31@@ -154,7 +154,9 @@ struct siglabel siglabels[] = { 32@@ -154,7 +154,9 @@ struct siglabel siglabels[] = {
@@ -38,6 +39,3 @@ index ba84788a1..c22281f7c 100644
38 "CHLD", SIGCHLD, /* Child status has changed (POSIX). */ 39 "CHLD", SIGCHLD, /* Child status has changed (POSIX). */
39 "CONT", SIGCONT, /* Continue (POSIX). */ 40 "CONT", SIGCONT, /* Continue (POSIX). */
40 "STOP", SIGSTOP, /* Stop, unblockable (POSIX). */ 41 "STOP", SIGSTOP, /* Stop, unblockable (POSIX). */
41--
422.24.1
43
diff --git a/recipes-core/openjdk/patches-openjdk-8/1004-hotspot-backport-patch-to-fix-misuses-of-strncpy-str.patch b/recipes-core/openjdk/patches-openjdk-8/1004-hotspot-backport-patch-to-fix-misuses-of-strncpy-str.patch
deleted file mode 100644
index ad480e3..0000000
--- a/recipes-core/openjdk/patches-openjdk-8/1004-hotspot-backport-patch-to-fix-misuses-of-strncpy-str.patch
+++ /dev/null
@@ -1,172 +0,0 @@
1From 3a6eef99b27b7dd750e7a02eb3ada71db99d9345 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Fri, 10 Aug 2018 14:54:45 +0100
4Subject: [PATCH 1004/1012] hotspot: backport patch to fix misuses of
5 strncpy/strncat
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10Various small fixes around strncpy and strncat
11
12Compilation using gcc >= 8 fails because of errors regarding
13misuse of string functions.
14Fix them using a backport from openjdk-10
15
16Modelled after http://hg.openjdk.java.net/jdk-updates/jdk10u/rev/b1608535e50f
17
18Signed-off-by: André Draszik <andre.draszik@jci.com>
19Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
20---
21 agent/src/os/linux/libproc_impl.c | 7 ++++++-
22 src/share/tools/hsdis/hsdis.c | 1 +
23 src/share/vm/compiler/compileBroker.hpp | 3 ++-
24 src/share/vm/compiler/disassembler.cpp | 1 +
25 src/share/vm/runtime/arguments.cpp | 13 ++++++-------
26 src/share/vm/utilities/ostream.cpp | 12 ++++++++----
27 src/share/vm/utilities/vmError.cpp | 9 +--------
28 7 files changed, 25 insertions(+), 21 deletions(-)
29
30diff --git a/hotspot/agent/src/os/linux/libproc_impl.c b/hotspot/agent/src/os/linux/libproc_impl.c
31index ca791c95d..73a15ce35 100644
32--- a/hotspot/agent/src/os/linux/libproc_impl.c
33+++ b/hotspot/agent/src/os/linux/libproc_impl.c
34@@ -159,7 +159,12 @@ lib_info* add_lib_info_fd(struct ps_prochandle* ph, const char* libname, int fd,
35 return NULL;
36 }
37
38- strncpy(newlib->name, libname, sizeof(newlib->name));
39+ if (strlen(libname) >= sizeof(newlib->name)) {
40+ print_debug("libname %s too long\n", libname);
41+ return NULL;
42+ }
43+ strcpy(newlib->name, libname);
44+
45 newlib->base = base;
46
47 if (fd == -1) {
48diff --git a/hotspot/src/share/tools/hsdis/hsdis.c b/hotspot/src/share/tools/hsdis/hsdis.c
49index 7bef1040f..1907d479e 100644
50--- a/hotspot/src/share/tools/hsdis/hsdis.c
51+++ b/hotspot/src/share/tools/hsdis/hsdis.c
52@@ -438,6 +438,7 @@ static void parse_caller_options(struct hsdis_app_data* app_data, const char* ca
53 }
54 p = q;
55 }
56+ *iop = '\0';
57 }
58
59 static void print_help(struct hsdis_app_data* app_data,
60diff --git a/hotspot/src/share/vm/compiler/compileBroker.hpp b/hotspot/src/share/vm/compiler/compileBroker.hpp
61index ad37ff173..16e0ba3aa 100644
62--- a/hotspot/src/share/vm/compiler/compileBroker.hpp
63+++ b/hotspot/src/share/vm/compiler/compileBroker.hpp
64@@ -173,7 +173,8 @@ class CompilerCounters : public CHeapObj<mtCompiler> {
65 // these methods should be called in a thread safe context
66
67 void set_current_method(const char* method) {
68- strncpy(_current_method, method, (size_t)cmname_buffer_length);
69+ strncpy(_current_method, method, (size_t)cmname_buffer_length-1);
70+ _current_method[cmname_buffer_length-1] = '\0';
71 if (UsePerfData) _perf_current_method->set_value(method);
72 }
73
74diff --git a/hotspot/src/share/vm/compiler/disassembler.cpp b/hotspot/src/share/vm/compiler/disassembler.cpp
75index 93cd9e854..e7b32cd6b 100644
76--- a/hotspot/src/share/vm/compiler/disassembler.cpp
77+++ b/hotspot/src/share/vm/compiler/disassembler.cpp
78@@ -295,6 +295,7 @@ address decode_env::handle_event(const char* event, address arg) {
79 strlen((const char*)arg) > sizeof(buffer) - 1) {
80 // Only print this when the mach changes
81 strncpy(buffer, (const char*)arg, sizeof(buffer) - 1);
82+ buffer[sizeof(buffer) - 1] = '\0';
83 output()->print_cr("[Disassembling for mach='%s']", arg);
84 }
85 } else if (match(event, "format bytes-per-line")) {
86diff --git a/hotspot/src/share/vm/runtime/arguments.cpp b/hotspot/src/share/vm/runtime/arguments.cpp
87index 2665b6b8c..5a9294677 100644
88--- a/hotspot/src/share/vm/runtime/arguments.cpp
89+++ b/hotspot/src/share/vm/runtime/arguments.cpp
90@@ -3455,7 +3455,7 @@ void Arguments::fix_appclasspath() {
91 }
92
93 char* copy = AllocateHeap(strlen(src) + 1, mtInternal);
94- strncpy(copy, src, strlen(src) + 1);
95+ strcpy(copy, src);
96
97 // trim all trailing empty paths
98 for (char* tail = copy + strlen(copy) - 1; tail >= copy && *tail == separator; tail--) {
99@@ -3834,17 +3834,16 @@ static char* get_shared_archive_path() {
100 if (end != NULL) *end = '\0';
101 size_t jvm_path_len = strlen(jvm_path);
102 size_t file_sep_len = strlen(os::file_separator());
103- shared_archive_path = NEW_C_HEAP_ARRAY(char, jvm_path_len +
104- file_sep_len + 20, mtInternal);
105+ const size_t len = jvm_path_len + file_sep_len + 20;
106+ shared_archive_path = NEW_C_HEAP_ARRAY(char, len, mtInternal);
107 if (shared_archive_path != NULL) {
108- strncpy(shared_archive_path, jvm_path, jvm_path_len + 1);
109- strncat(shared_archive_path, os::file_separator(), file_sep_len);
110- strncat(shared_archive_path, "classes.jsa", 11);
111+ jio_snprintf(shared_archive_path, len, "%s%sclasses.jsa",
112+ jvm_path, os::file_separator());
113 }
114 } else {
115 shared_archive_path = NEW_C_HEAP_ARRAY(char, strlen(SharedArchiveFile) + 1, mtInternal);
116 if (shared_archive_path != NULL) {
117- strncpy(shared_archive_path, SharedArchiveFile, strlen(SharedArchiveFile) + 1);
118+ strcpy(shared_archive_path, SharedArchiveFile);
119 }
120 }
121 return shared_archive_path;
122diff --git a/hotspot/src/share/vm/utilities/ostream.cpp b/hotspot/src/share/vm/utilities/ostream.cpp
123index 1b00f829a..4daea2b7e 100644
124--- a/hotspot/src/share/vm/utilities/ostream.cpp
125+++ b/hotspot/src/share/vm/utilities/ostream.cpp
126@@ -342,15 +342,19 @@ void stringStream::write(const char* s, size_t len) {
127 assert(rm == NULL || Thread::current()->current_resource_mark() == rm,
128 "stringStream is re-allocated with a different ResourceMark");
129 buffer = NEW_RESOURCE_ARRAY(char, end);
130- strncpy(buffer, oldbuf, buffer_pos);
131+ if (buffer_pos > 0) {
132+ memcpy(buffer, oldbuf, buffer_pos);
133+ }
134 buffer_length = end;
135 }
136 }
137 // invariant: buffer is always null-terminated
138 guarantee(buffer_pos + write_len + 1 <= buffer_length, "stringStream oob");
139- buffer[buffer_pos + write_len] = 0;
140- strncpy(buffer + buffer_pos, s, write_len);
141- buffer_pos += write_len;
142+ if (write_len > 0) {
143+ buffer[buffer_pos + write_len] = 0;
144+ memcpy(buffer + buffer_pos, s, write_len);
145+ buffer_pos += write_len;
146+ }
147
148 // Note that the following does not depend on write_len.
149 // This means that position and count get updated
150diff --git a/hotspot/src/share/vm/utilities/vmError.cpp b/hotspot/src/share/vm/utilities/vmError.cpp
151index ef3bb5cee..c11fef472 100644
152--- a/hotspot/src/share/vm/utilities/vmError.cpp
153+++ b/hotspot/src/share/vm/utilities/vmError.cpp
154@@ -450,14 +450,7 @@ void VMError::report(outputStream* st) {
155 #else
156 const char *file = _filename;
157 #endif
158- size_t len = strlen(file);
159- size_t buflen = sizeof(buf);
160-
161- strncpy(buf, file, buflen);
162- if (len + 10 < buflen) {
163- sprintf(buf + len, ":%d", _lineno);
164- }
165- st->print(" (%s)", buf);
166+ st->print(" (%s:%d)", file, _lineno);
167 } else {
168 st->print(" (0x%x)", _id);
169 }
170--
1712.24.1
172
diff --git a/recipes-core/openjdk/patches-openjdk-8/1005-hotspot-fix-Wreturn-type-issues-introduced-by-806165.patch b/recipes-core/openjdk/patches-openjdk-8/1004-hotspot-fix-Wreturn-type-issues-introduced-by-806165.patch
index 81177d0..2eba669 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1005-hotspot-fix-Wreturn-type-issues-introduced-by-806165.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1004-hotspot-fix-Wreturn-type-issues-introduced-by-806165.patch
@@ -1,8 +1,7 @@
1From bce7b39095a839b8e77fe068e87150e855224705 Mon Sep 17 00:00:00 2001 1From 7cca9e147d9f4b98ffbc6b10e817d2e8dbd686fb Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Mon, 13 Aug 2018 16:40:34 +0100 3Date: Mon, 13 Aug 2018 16:40:34 +0100
4Subject: [PATCH 1005/1012] hotspot: fix -Wreturn-type issues introduced by 4Subject: [PATCH] hotspot: fix -Wreturn-type issues introduced by 8061651
5 8061651
6MIME-Version: 1.0 5MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -19,15 +18,16 @@ Upstream-Status: Backport
19 18
20Signed-off-by: André Draszik <andre.draszik@jci.com> 19Signed-off-by: André Draszik <andre.draszik@jci.com>
21Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 20Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
21
22--- 22---
23 src/share/vm/prims/jvm.cpp | 6 +++--- 23 hotspot/src/share/vm/prims/jvm.cpp | 6 +++---
24 1 file changed, 3 insertions(+), 3 deletions(-) 24 1 file changed, 3 insertions(+), 3 deletions(-)
25 25
26diff --git a/hotspot/src/share/vm/prims/jvm.cpp b/hotspot/src/share/vm/prims/jvm.cpp 26diff --git a/hotspot/src/share/vm/prims/jvm.cpp b/hotspot/src/share/vm/prims/jvm.cpp
27index f43dc5ed7..8d7523c55 100644 27index c32c98ad..6f2221c4 100644
28--- a/hotspot/src/share/vm/prims/jvm.cpp 28--- a/hotspot/src/share/vm/prims/jvm.cpp
29+++ b/hotspot/src/share/vm/prims/jvm.cpp 29+++ b/hotspot/src/share/vm/prims/jvm.cpp
30@@ -908,7 +908,7 @@ JVM_END 30@@ -929,7 +929,7 @@ JVM_END
31 JVM_ENTRY(jboolean, JVM_KnownToNotExist(JNIEnv *env, jobject loader, const char *classname)) 31 JVM_ENTRY(jboolean, JVM_KnownToNotExist(JNIEnv *env, jobject loader, const char *classname))
32 JVMWrapper("JVM_KnownToNotExist"); 32 JVMWrapper("JVM_KnownToNotExist");
33 #if INCLUDE_CDS 33 #if INCLUDE_CDS
@@ -36,7 +36,7 @@ index f43dc5ed7..8d7523c55 100644
36 #else 36 #else
37 return false; 37 return false;
38 #endif 38 #endif
39@@ -918,7 +918,7 @@ JVM_END 39@@ -939,7 +939,7 @@ JVM_END
40 JVM_ENTRY(jobjectArray, JVM_GetResourceLookupCacheURLs(JNIEnv *env, jobject loader)) 40 JVM_ENTRY(jobjectArray, JVM_GetResourceLookupCacheURLs(JNIEnv *env, jobject loader))
41 JVMWrapper("JVM_GetResourceLookupCacheURLs"); 41 JVMWrapper("JVM_GetResourceLookupCacheURLs");
42 #if INCLUDE_CDS 42 #if INCLUDE_CDS
@@ -45,7 +45,7 @@ index f43dc5ed7..8d7523c55 100644
45 #else 45 #else
46 return NULL; 46 return NULL;
47 #endif 47 #endif
48@@ -928,7 +928,7 @@ JVM_END 48@@ -949,7 +949,7 @@ JVM_END
49 JVM_ENTRY(jintArray, JVM_GetResourceLookupCache(JNIEnv *env, jobject loader, const char *resource_name)) 49 JVM_ENTRY(jintArray, JVM_GetResourceLookupCache(JNIEnv *env, jobject loader, const char *resource_name))
50 JVMWrapper("JVM_GetResourceLookupCache"); 50 JVMWrapper("JVM_GetResourceLookupCache");
51 #if INCLUDE_CDS 51 #if INCLUDE_CDS
@@ -54,6 +54,3 @@ index f43dc5ed7..8d7523c55 100644
54 #else 54 #else
55 return NULL; 55 return NULL;
56 #endif 56 #endif
57--
582.24.1
59
diff --git a/recipes-core/openjdk/patches-openjdk-8/1006-hotspot-Zero-build-requires-disabled-warnings.patch b/recipes-core/openjdk/patches-openjdk-8/1005-hotspot-Zero-build-requires-disabled-warnings.patch
index 38067cb..36eefe5 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1006-hotspot-Zero-build-requires-disabled-warnings.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1005-hotspot-Zero-build-requires-disabled-warnings.patch
@@ -1,7 +1,7 @@
1From 84fc6448f44cd45a5448d0e88df8ccabfa10dcc5 Mon Sep 17 00:00:00 2001 1From 9ae232a21a7c2cec88cdb4ff7e6cf7092f1578ab Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Mon, 13 Aug 2018 16:45:24 +0100 3Date: Mon, 13 Aug 2018 16:45:24 +0100
4Subject: [PATCH 1006/1012] hotspot: Zero build requires disabled warnings 4Subject: [PATCH] hotspot: Zero build requires disabled warnings
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -19,15 +19,16 @@ Upstream-Status: Backport
19 19
20Signed-off-by: André Draszik <andre.draszik@jci.com> 20Signed-off-by: André Draszik <andre.draszik@jci.com>
21Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 21Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
22
22--- 23---
23 src/cpu/zero/vm/cppInterpreter_zero.cpp | 2 +- 24 hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp | 2 +-
24 src/cpu/zero/vm/interpreterRT_zero.cpp | 4 ++-- 25 hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp | 4 ++--
25 src/os_cpu/linux_zero/vm/os_linux_zero.cpp | 14 ++++++++++++-- 26 hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp | 14 ++++++++++++--
26 src/os_cpu/linux_zero/vm/thread_linux_zero.hpp | 3 ++- 27 .../src/os_cpu/linux_zero/vm/thread_linux_zero.hpp | 3 ++-
27 4 files changed, 17 insertions(+), 6 deletions(-) 28 4 files changed, 17 insertions(+), 6 deletions(-)
28 29
29diff --git a/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp b/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp 30diff --git a/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp b/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp
30index 525031eb9..d47422b8c 100644 31index 525031eb..d47422b8 100644
31--- a/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp 32--- a/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp
32+++ b/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp 33+++ b/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp
33@@ -100,7 +100,7 @@ intptr_t narrow(BasicType type, intptr_t result) { 34@@ -100,7 +100,7 @@ intptr_t narrow(BasicType type, intptr_t result) {
@@ -40,7 +41,7 @@ index 525031eb9..d47422b8c 100644
40 } 41 }
41 42
42diff --git a/hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp b/hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp 43diff --git a/hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp b/hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp
43index e23e3eaa9..061ed8ce8 100644 44index e23e3eaa..061ed8ce 100644
44--- a/hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp 45--- a/hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp
45+++ b/hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp 46+++ b/hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp
46@@ -1,5 +1,5 @@ 47@@ -1,5 +1,5 @@
@@ -60,7 +61,7 @@ index e23e3eaa9..061ed8ce8 100644
60 case T_VOID: 61 case T_VOID:
61 ftype = &ffi_type_void; 62 ftype = &ffi_type_void;
62diff --git a/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp b/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp 63diff --git a/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp b/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
63index d22ea1141..cbee43baa 100644 64index d22ea114..cbee43ba 100644
64--- a/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp 65--- a/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
65+++ b/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp 66+++ b/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
66@@ -61,6 +61,7 @@ address os::current_stack_pointer() { 67@@ -61,6 +61,7 @@ address os::current_stack_pointer() {
@@ -119,7 +120,7 @@ index d22ea1141..cbee43baa 100644
119 120
120 void os::Linux::set_fpu_control_word(int fpu) { 121 void os::Linux::set_fpu_control_word(int fpu) {
121diff --git a/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp b/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp 122diff --git a/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp b/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp
122index 39f77f858..b9c73dc48 100644 123index 94bc83a3..b3ba526f 100644
123--- a/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp 124--- a/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp
124+++ b/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp 125+++ b/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp
125@@ -1,5 +1,5 @@ 126@@ -1,5 +1,5 @@
@@ -136,7 +137,4 @@ index 39f77f858..b9c73dc48 100644
136+ return false; // silence compile warning 137+ return false; // silence compile warning
137 } 138 }
138 139
139 // These routines are only used on cpu architectures that 140 bool pd_get_top_frame_for_profiling(frame* fr_addr,
140--
1412.24.1
142
diff --git a/recipes-core/openjdk/patches-openjdk-8/1007-hotspot-Missing-return-statement-in-__sync_val_compa.patch b/recipes-core/openjdk/patches-openjdk-8/1006-hotspot-Missing-return-statement-in-__sync_val_compa.patch
index 6692200..2e32702 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1007-hotspot-Missing-return-statement-in-__sync_val_compa.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1006-hotspot-Missing-return-statement-in-__sync_val_compa.patch
@@ -1,7 +1,7 @@
1From 996a1e3d53773f41e9098117a69a060722972269 Mon Sep 17 00:00:00 2001 1From 1f618dcda554d85d1c1dcd1bfd84d9554cb2f3b8 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Mon, 13 Aug 2018 16:46:33 +0100 3Date: Mon, 13 Aug 2018 16:46:33 +0100
4Subject: [PATCH 1007/1012] hotspot: Missing return statement in 4Subject: [PATCH] hotspot: Missing return statement in
5 __sync_val_compare_and_swap_8 5 __sync_val_compare_and_swap_8
6MIME-Version: 1.0 6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8 7Content-Type: text/plain; charset=UTF-8
@@ -21,13 +21,14 @@ Upstream-Status: Backport
21 21
22Signed-off-by: André Draszik <andre.draszik@jci.com> 22Signed-off-by: André Draszik <andre.draszik@jci.com>
23Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 23Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
24
24--- 25---
25 src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp | 1 + 26 hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp | 1 +
26 src/os_cpu/linux_zero/vm/os_linux_zero.cpp | 1 + 27 hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp | 1 +
27 2 files changed, 2 insertions(+) 28 2 files changed, 2 insertions(+)
28 29
29diff --git a/hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp b/hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp 30diff --git a/hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp b/hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp
30index c857b5526..4aaf78b1d 100644 31index c857b552..4aaf78b1 100644
31--- a/hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp 32--- a/hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp
32+++ b/hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp 33+++ b/hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp
33@@ -457,6 +457,7 @@ extern "C" { 34@@ -457,6 +457,7 @@ extern "C" {
@@ -39,7 +40,7 @@ index c857b5526..4aaf78b1d 100644
39 }; 40 };
40 #endif // !_LP64 41 #endif // !_LP64
41diff --git a/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp b/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp 42diff --git a/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp b/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
42index cbee43baa..136d4d3de 100644 43index cbee43ba..136d4d3d 100644
43--- a/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp 44--- a/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
44+++ b/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp 45+++ b/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
45@@ -498,6 +498,7 @@ extern "C" { 46@@ -498,6 +498,7 @@ extern "C" {
@@ -50,6 +51,3 @@ index cbee43baa..136d4d3de 100644
50 } 51 }
51 }; 52 };
52 #endif // !_LP64 53 #endif // !_LP64
53--
542.24.1
55
diff --git a/recipes-core/openjdk/patches-openjdk-8/1008-hotspot-Turn-on-the-Wreturn-type-warning.patch b/recipes-core/openjdk/patches-openjdk-8/1007-hotspot-Turn-on-the-Wreturn-type-warning.patch
index 10dd0f7..b1b59c3 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1008-hotspot-Turn-on-the-Wreturn-type-warning.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1007-hotspot-Turn-on-the-Wreturn-type-warning.patch
@@ -1,7 +1,11 @@
1From 2cce90259f9de7b5fba7f3380cdc90b3a586aa75 Mon Sep 17 00:00:00 2001 1From 6758bf27e31110dc5d4c7237476c823ff05454a2 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: Richard Leitner <richard.leitner@skidata.com>
3Date: Mon, 13 Aug 2018 16:48:32 +0100 3Date: Thu, 22 Oct 2020 09:41:07 +0200
4Subject: [PATCH 1008/1012] hotspot: Turn on the -Wreturn-type warning 4Subject: [PATCH] hotspot: Turn on the -Wreturn-type warning
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
5MIME-Version: 1.0 9MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 10Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 11Content-Transfer-Encoding: 8bit
@@ -19,24 +23,25 @@ Upstream-Status: Backport
19 23
20Signed-off-by: André Draszik <andre.draszik@jci.com> 24Signed-off-by: André Draszik <andre.draszik@jci.com>
21Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 25Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
26
22--- 27---
23 make/linux/makefiles/gcc.make | 2 +- 28 hotspot/make/linux/makefiles/gcc.make | 2 +-
24 src/cpu/x86/vm/x86_32.ad | 1 + 29 hotspot/src/cpu/x86/vm/x86_32.ad | 1 +
25 src/os_cpu/linux_x86/vm/os_linux_x86.cpp | 1 + 30 hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp | 1 +
26 src/share/vm/classfile/defaultMethods.cpp | 4 ++-- 31 hotspot/src/share/vm/classfile/defaultMethods.cpp | 4 ++--
27 src/share/vm/classfile/symbolTable.cpp | 4 ++-- 32 hotspot/src/share/vm/classfile/symbolTable.cpp | 4 ++--
28 src/share/vm/classfile/systemDictionary.cpp | 6 +++--- 33 hotspot/src/share/vm/classfile/systemDictionary.cpp | 6 +++---
29 src/share/vm/memory/heapInspection.hpp | 2 +- 34 hotspot/src/share/vm/memory/heapInspection.hpp | 2 +-
30 src/share/vm/memory/metaspaceShared.hpp | 2 +- 35 hotspot/src/share/vm/memory/metaspaceShared.hpp | 2 +-
31 src/share/vm/oops/constantPool.hpp | 2 +- 36 hotspot/src/share/vm/oops/constantPool.hpp | 2 +-
32 src/share/vm/prims/jvm.cpp | 2 +- 37 hotspot/src/share/vm/prims/jvm.cpp | 2 +-
33 src/share/vm/runtime/reflection.cpp | 2 +- 38 hotspot/src/share/vm/runtime/reflection.cpp | 2 +-
34 src/share/vm/runtime/sharedRuntime.cpp | 2 +- 39 hotspot/src/share/vm/runtime/sharedRuntime.cpp | 2 +-
35 src/share/vm/services/memTracker.hpp | 2 +- 40 hotspot/src/share/vm/services/memTracker.hpp | 2 +-
36 13 files changed, 17 insertions(+), 15 deletions(-) 41 13 files changed, 17 insertions(+), 15 deletions(-)
37 42
38diff --git a/hotspot/make/linux/makefiles/gcc.make b/hotspot/make/linux/makefiles/gcc.make 43diff --git a/hotspot/make/linux/makefiles/gcc.make b/hotspot/make/linux/makefiles/gcc.make
39index 36b3c8ba9..cd9511e50 100644 44index 36b3c8ba..cd9511e5 100644
40--- a/hotspot/make/linux/makefiles/gcc.make 45--- a/hotspot/make/linux/makefiles/gcc.make
41+++ b/hotspot/make/linux/makefiles/gcc.make 46+++ b/hotspot/make/linux/makefiles/gcc.make
42@@ -211,7 +211,7 @@ ifeq ($(USE_CLANG), true) 47@@ -211,7 +211,7 @@ ifeq ($(USE_CLANG), true)
@@ -49,7 +54,7 @@ index 36b3c8ba9..cd9511e50 100644
49 ifeq ($(USE_CLANG),) 54 ifeq ($(USE_CLANG),)
50 # Since GCC 4.3, -Wconversion has changed its meanings to warn these implicit 55 # Since GCC 4.3, -Wconversion has changed its meanings to warn these implicit
51diff --git a/hotspot/src/cpu/x86/vm/x86_32.ad b/hotspot/src/cpu/x86/vm/x86_32.ad 56diff --git a/hotspot/src/cpu/x86/vm/x86_32.ad b/hotspot/src/cpu/x86/vm/x86_32.ad
52index f42d1a288..c8f4ee161 100644 57index f42d1a28..c8f4ee16 100644
53--- a/hotspot/src/cpu/x86/vm/x86_32.ad 58--- a/hotspot/src/cpu/x86/vm/x86_32.ad
54+++ b/hotspot/src/cpu/x86/vm/x86_32.ad 59+++ b/hotspot/src/cpu/x86/vm/x86_32.ad
55@@ -1250,6 +1250,7 @@ uint MachSpillCopyNode::implementation( CodeBuffer *cbuf, PhaseRegAlloc *ra_, bo 60@@ -1250,6 +1250,7 @@ uint MachSpillCopyNode::implementation( CodeBuffer *cbuf, PhaseRegAlloc *ra_, bo
@@ -61,7 +66,7 @@ index f42d1a288..c8f4ee161 100644
61 66
62 #ifndef PRODUCT 67 #ifndef PRODUCT
63diff --git a/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp b/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp 68diff --git a/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp b/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp
64index 1a7375afc..fbf51b040 100644 69index c35d8677..65c3165c 100644
65--- a/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp 70--- a/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp
66+++ b/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp 71+++ b/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp
67@@ -541,6 +541,7 @@ JVM_handle_linux_signal(int sig, 72@@ -541,6 +541,7 @@ JVM_handle_linux_signal(int sig,
@@ -73,7 +78,7 @@ index 1a7375afc..fbf51b040 100644
73 78
74 void os::Linux::init_thread_fpu_state(void) { 79 void os::Linux::init_thread_fpu_state(void) {
75diff --git a/hotspot/src/share/vm/classfile/defaultMethods.cpp b/hotspot/src/share/vm/classfile/defaultMethods.cpp 80diff --git a/hotspot/src/share/vm/classfile/defaultMethods.cpp b/hotspot/src/share/vm/classfile/defaultMethods.cpp
76index 4b4b4e250..196622aed 100644 81index 4b4b4e25..196622ae 100644
77--- a/hotspot/src/share/vm/classfile/defaultMethods.cpp 82--- a/hotspot/src/share/vm/classfile/defaultMethods.cpp
78+++ b/hotspot/src/share/vm/classfile/defaultMethods.cpp 83+++ b/hotspot/src/share/vm/classfile/defaultMethods.cpp
79@@ -506,7 +506,7 @@ Symbol* MethodFamily::generate_method_message(Symbol *klass_name, Method* method 84@@ -506,7 +506,7 @@ Symbol* MethodFamily::generate_method_message(Symbol *klass_name, Method* method
@@ -95,7 +100,7 @@ index 4b4b4e250..196622aed 100644
95 100
96 101
97diff --git a/hotspot/src/share/vm/classfile/symbolTable.cpp b/hotspot/src/share/vm/classfile/symbolTable.cpp 102diff --git a/hotspot/src/share/vm/classfile/symbolTable.cpp b/hotspot/src/share/vm/classfile/symbolTable.cpp
98index ec97077b7..2621a7d62 100644 103index 83369cbc..8dd4e6b2 100644
99--- a/hotspot/src/share/vm/classfile/symbolTable.cpp 104--- a/hotspot/src/share/vm/classfile/symbolTable.cpp
100+++ b/hotspot/src/share/vm/classfile/symbolTable.cpp 105+++ b/hotspot/src/share/vm/classfile/symbolTable.cpp
101@@ -249,7 +249,7 @@ Symbol* SymbolTable::lookup(const char* name, int len, TRAPS) { 106@@ -249,7 +249,7 @@ Symbol* SymbolTable::lookup(const char* name, int len, TRAPS) {
@@ -117,10 +122,10 @@ index ec97077b7..2621a7d62 100644
117 122
118 Symbol* SymbolTable::lookup_only(const char* name, int len, 123 Symbol* SymbolTable::lookup_only(const char* name, int len,
119diff --git a/hotspot/src/share/vm/classfile/systemDictionary.cpp b/hotspot/src/share/vm/classfile/systemDictionary.cpp 124diff --git a/hotspot/src/share/vm/classfile/systemDictionary.cpp b/hotspot/src/share/vm/classfile/systemDictionary.cpp
120index da2717d36..5253afc22 100644 125index 4541e815..98412e1e 100644
121--- a/hotspot/src/share/vm/classfile/systemDictionary.cpp 126--- a/hotspot/src/share/vm/classfile/systemDictionary.cpp
122+++ b/hotspot/src/share/vm/classfile/systemDictionary.cpp 127+++ b/hotspot/src/share/vm/classfile/systemDictionary.cpp
123@@ -229,15 +229,15 @@ Klass* SystemDictionary::resolve_or_null(Symbol* class_name, Handle class_loader 128@@ -236,15 +236,15 @@ Klass* SystemDictionary::resolve_or_null(Symbol* class_name, Handle class_loader
124 class_name->as_C_string(), 129 class_name->as_C_string(),
125 class_loader.is_null() ? "null" : class_loader->klass()->name()->as_C_string())); 130 class_loader.is_null() ? "null" : class_loader->klass()->name()->as_C_string()));
126 if (FieldType::is_array(class_name)) { 131 if (FieldType::is_array(class_name)) {
@@ -140,7 +145,7 @@ index da2717d36..5253afc22 100644
140 } 145 }
141 146
142diff --git a/hotspot/src/share/vm/memory/heapInspection.hpp b/hotspot/src/share/vm/memory/heapInspection.hpp 147diff --git a/hotspot/src/share/vm/memory/heapInspection.hpp b/hotspot/src/share/vm/memory/heapInspection.hpp
143index 09ee6602e..c5fec15c3 100644 148index 09ee6602..c5fec15c 100644
144--- a/hotspot/src/share/vm/memory/heapInspection.hpp 149--- a/hotspot/src/share/vm/memory/heapInspection.hpp
145+++ b/hotspot/src/share/vm/memory/heapInspection.hpp 150+++ b/hotspot/src/share/vm/memory/heapInspection.hpp
146@@ -367,7 +367,7 @@ class HeapInspection : public StackObj { 151@@ -367,7 +367,7 @@ class HeapInspection : public StackObj {
@@ -153,7 +158,7 @@ index 09ee6602e..c5fec15c3 100644
153 private: 158 private:
154 void iterate_over_heap(KlassInfoTable* cit, BoolObjectClosure* filter = NULL); 159 void iterate_over_heap(KlassInfoTable* cit, BoolObjectClosure* filter = NULL);
155diff --git a/hotspot/src/share/vm/memory/metaspaceShared.hpp b/hotspot/src/share/vm/memory/metaspaceShared.hpp 160diff --git a/hotspot/src/share/vm/memory/metaspaceShared.hpp b/hotspot/src/share/vm/memory/metaspaceShared.hpp
156index 2f3abae6a..d58ebecb2 100644 161index 2f3abae6..d58ebecb 100644
157--- a/hotspot/src/share/vm/memory/metaspaceShared.hpp 162--- a/hotspot/src/share/vm/memory/metaspaceShared.hpp
158+++ b/hotspot/src/share/vm/memory/metaspaceShared.hpp 163+++ b/hotspot/src/share/vm/memory/metaspaceShared.hpp
159@@ -93,7 +93,7 @@ class MetaspaceShared : AllStatic { 164@@ -93,7 +93,7 @@ class MetaspaceShared : AllStatic {
@@ -166,7 +171,7 @@ index 2f3abae6a..d58ebecb2 100644
166 static ReservedSpace* shared_rs() { 171 static ReservedSpace* shared_rs() {
167 CDS_ONLY(return _shared_rs); 172 CDS_ONLY(return _shared_rs);
168diff --git a/hotspot/src/share/vm/oops/constantPool.hpp b/hotspot/src/share/vm/oops/constantPool.hpp 173diff --git a/hotspot/src/share/vm/oops/constantPool.hpp b/hotspot/src/share/vm/oops/constantPool.hpp
169index 0698eb40e..354293924 100644 174index 68435471..fad4a92c 100644
170--- a/hotspot/src/share/vm/oops/constantPool.hpp 175--- a/hotspot/src/share/vm/oops/constantPool.hpp
171+++ b/hotspot/src/share/vm/oops/constantPool.hpp 176+++ b/hotspot/src/share/vm/oops/constantPool.hpp
172@@ -350,7 +350,7 @@ class ConstantPool : public Metadata { 177@@ -350,7 +350,7 @@ class ConstantPool : public Metadata {
@@ -177,12 +182,12 @@ index 0698eb40e..354293924 100644
177+ return klass_at_impl(h_this, which, THREAD); 182+ return klass_at_impl(h_this, which, THREAD);
178 } 183 }
179 184
180 Symbol* klass_name_at(int which); // Returns the name, w/o resolving. 185 Symbol* klass_name_at(int which) const; // Returns the name, w/o resolving.
181diff --git a/hotspot/src/share/vm/prims/jvm.cpp b/hotspot/src/share/vm/prims/jvm.cpp 186diff --git a/hotspot/src/share/vm/prims/jvm.cpp b/hotspot/src/share/vm/prims/jvm.cpp
182index 8d7523c55..4034a8589 100644 187index 6f2221c4..daa69f89 100644
183--- a/hotspot/src/share/vm/prims/jvm.cpp 188--- a/hotspot/src/share/vm/prims/jvm.cpp
184+++ b/hotspot/src/share/vm/prims/jvm.cpp 189+++ b/hotspot/src/share/vm/prims/jvm.cpp
185@@ -4343,7 +4343,7 @@ JVM_ENTRY(jlong,JVM_DTraceActivate( 190@@ -4368,7 +4368,7 @@ JVM_ENTRY(jlong,JVM_DTraceActivate(
186 JVM_DTraceProvider* providers)) 191 JVM_DTraceProvider* providers))
187 JVMWrapper("JVM_DTraceActivate"); 192 JVMWrapper("JVM_DTraceActivate");
188 return DTraceJSDT::activate( 193 return DTraceJSDT::activate(
@@ -192,7 +197,7 @@ index 8d7523c55..4034a8589 100644
192 197
193 JVM_ENTRY(jboolean,JVM_DTraceIsProbeEnabled(JNIEnv* env, jmethodID method)) 198 JVM_ENTRY(jboolean,JVM_DTraceIsProbeEnabled(JNIEnv* env, jmethodID method))
194diff --git a/hotspot/src/share/vm/runtime/reflection.cpp b/hotspot/src/share/vm/runtime/reflection.cpp 199diff --git a/hotspot/src/share/vm/runtime/reflection.cpp b/hotspot/src/share/vm/runtime/reflection.cpp
195index 4b39d8ccb..9cd7b0dcb 100644 200index 4b39d8cc..9cd7b0dc 100644
196--- a/hotspot/src/share/vm/runtime/reflection.cpp 201--- a/hotspot/src/share/vm/runtime/reflection.cpp
197+++ b/hotspot/src/share/vm/runtime/reflection.cpp 202+++ b/hotspot/src/share/vm/runtime/reflection.cpp
198@@ -1093,7 +1093,7 @@ oop Reflection::invoke(instanceKlassHandle klass, methodHandle reflected_method, 203@@ -1093,7 +1093,7 @@ oop Reflection::invoke(instanceKlassHandle klass, methodHandle reflected_method,
@@ -205,7 +210,7 @@ index 4b39d8ccb..9cd7b0dcb 100644
205 } 210 }
206 211
207diff --git a/hotspot/src/share/vm/runtime/sharedRuntime.cpp b/hotspot/src/share/vm/runtime/sharedRuntime.cpp 212diff --git a/hotspot/src/share/vm/runtime/sharedRuntime.cpp b/hotspot/src/share/vm/runtime/sharedRuntime.cpp
208index d5bea29c3..50578ad63 100644 213index d5bea29c..50578ad6 100644
209--- a/hotspot/src/share/vm/runtime/sharedRuntime.cpp 214--- a/hotspot/src/share/vm/runtime/sharedRuntime.cpp
210+++ b/hotspot/src/share/vm/runtime/sharedRuntime.cpp 215+++ b/hotspot/src/share/vm/runtime/sharedRuntime.cpp
211@@ -1041,7 +1041,7 @@ Handle SharedRuntime::find_callee_info(JavaThread* thread, Bytecodes::Code& bc, 216@@ -1041,7 +1041,7 @@ Handle SharedRuntime::find_callee_info(JavaThread* thread, Bytecodes::Code& bc,
@@ -218,7 +223,7 @@ index d5bea29c3..50578ad63 100644
218 223
219 224
220diff --git a/hotspot/src/share/vm/services/memTracker.hpp b/hotspot/src/share/vm/services/memTracker.hpp 225diff --git a/hotspot/src/share/vm/services/memTracker.hpp b/hotspot/src/share/vm/services/memTracker.hpp
221index 7ad2b71f4..182084373 100644 226index 8ea859dd..535147f8 100644
222--- a/hotspot/src/share/vm/services/memTracker.hpp 227--- a/hotspot/src/share/vm/services/memTracker.hpp
223+++ b/hotspot/src/share/vm/services/memTracker.hpp 228+++ b/hotspot/src/share/vm/services/memTracker.hpp
224@@ -64,7 +64,7 @@ class MemTracker : AllStatic { 229@@ -64,7 +64,7 @@ class MemTracker : AllStatic {
@@ -230,6 +235,3 @@ index 7ad2b71f4..182084373 100644
230 static inline void record_virtual_memory_type(void* addr, MEMFLAGS flag) { } 235 static inline void record_virtual_memory_type(void* addr, MEMFLAGS flag) { }
231 static inline void record_thread_stack(void* addr, size_t size) { } 236 static inline void record_thread_stack(void* addr, size_t size) { }
232 static inline void release_thread_stack(void* addr, size_t size) { } 237 static inline void release_thread_stack(void* addr, size_t size) { }
233--
2342.24.1
235
diff --git a/recipes-core/openjdk/patches-openjdk-8/1009-hotspot-handle-format-error-for-GCC-7.patch b/recipes-core/openjdk/patches-openjdk-8/1008-hotspot-handle-format-error-for-GCC-7.patch
index ee950cd..e077c53 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1009-hotspot-handle-format-error-for-GCC-7.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1008-hotspot-handle-format-error-for-GCC-7.patch
@@ -1,21 +1,22 @@
1From d085dcce6f8700fd8ddda475357496ea6da323dc Mon Sep 17 00:00:00 2001 1From bb394ba055197ef7c7e27b436dd92f5a86305019 Mon Sep 17 00:00:00 2001
2From: Andreas Obergschwandtner <andreas.obergschwandtner@skidata.com> 2From: Andreas Obergschwandtner <andreas.obergschwandtner@skidata.com>
3Date: Fri, 21 Sep 2018 10:44:06 +0200 3Date: Fri, 21 Sep 2018 10:44:06 +0200
4Subject: [PATCH 1009/1012] hotspot: handle format error for GCC >= 7 4Subject: [PATCH] hotspot: handle format error for GCC >= 7
5 5
6Upstream-Status: Pending 6Upstream-Status: Pending
7 7
8Signed-off-by: Andreas Obergschwandtner <andreas.obergschwandtner@skidata.com> 8Signed-off-by: Andreas Obergschwandtner <andreas.obergschwandtner@skidata.com>
9Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 9Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
10
10--- 11---
11 src/share/vm/adlc/output_c.cpp | 6 ++++-- 12 hotspot/src/share/vm/adlc/output_c.cpp | 6 ++++--
12 1 file changed, 4 insertions(+), 2 deletions(-) 13 1 file changed, 4 insertions(+), 2 deletions(-)
13 14
14diff --git a/hotspot/src/share/vm/adlc/output_c.cpp b/hotspot/src/share/vm/adlc/output_c.cpp 15diff --git a/hotspot/src/share/vm/adlc/output_c.cpp b/hotspot/src/share/vm/adlc/output_c.cpp
15index b3766636d..eba08d2f0 100644 16index 19916904..889b785c 100644
16--- a/hotspot/src/share/vm/adlc/output_c.cpp 17--- a/hotspot/src/share/vm/adlc/output_c.cpp
17+++ b/hotspot/src/share/vm/adlc/output_c.cpp 18+++ b/hotspot/src/share/vm/adlc/output_c.cpp
18@@ -436,9 +436,11 @@ static int pipeline_res_mask_initializer( 19@@ -419,9 +419,11 @@ static int pipeline_res_mask_initializer(
19 for (i = maxcycleused; i > 0; i /= 10) 20 for (i = maxcycleused; i > 0; i /= 10)
20 cycledigit++; 21 cycledigit++;
21 22
@@ -29,6 +30,3 @@ index b3766636d..eba08d2f0 100644
29 30
30 static const char* pipeline_use_cycle_mask = "Pipeline_Use_Cycle_Mask"; 31 static const char* pipeline_use_cycle_mask = "Pipeline_Use_Cycle_Mask";
31 static const char* pipeline_use_element = "Pipeline_Use_Element"; 32 static const char* pipeline_use_element = "Pipeline_Use_Element";
32--
332.24.1
34
diff --git a/recipes-core/openjdk/patches-openjdk-8/1010-hotspot-fix-adlc-flags.patch b/recipes-core/openjdk/patches-openjdk-8/1009-hotspot-fix-adlc-flags.patch
index 03f8660..a68e3a0 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1010-hotspot-fix-adlc-flags.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1009-hotspot-fix-adlc-flags.patch
@@ -1,7 +1,7 @@
1From 89408e465d92657de8c54d4622f1810c28c3d700 Mon Sep 17 00:00:00 2001 1From 486b1c46d80de99e0820cc6305477ab40ba4e13c Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Erkka=20K=C3=A4=C3=A4ri=C3=A4?= <erkka.kaaria@intel.com> 2From: =?UTF-8?q?Erkka=20K=C3=A4=C3=A4ri=C3=A4?= <erkka.kaaria@intel.com>
3Date: Thu, 2 Jan 2020 10:19:29 +0100 3Date: Thu, 2 Jan 2020 10:19:29 +0100
4Subject: [PATCH 1010/1012] hotspot: fix adlc flags 4Subject: [PATCH 1009/1013] hotspot: fix adlc flags
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -39,5 +39,5 @@ index 92b8b9b39..ae0aa0082 100644
39 39
40 # OUTDIR must be the same as AD_Dir = $(GENERATED)/adfiles in top.make: 40 # OUTDIR must be the same as AD_Dir = $(GENERATED)/adfiles in top.make:
41-- 41--
422.24.1 422.26.2
43 43
diff --git a/recipes-core/openjdk/patches-openjdk-8/1011-hotspot-fix-shark-build-common.patch b/recipes-core/openjdk/patches-openjdk-8/1010-hotspot-fix-shark-build-common.patch
index 8fe5489..711d17b 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1011-hotspot-fix-shark-build-common.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1010-hotspot-fix-shark-build-common.patch
@@ -1,7 +1,7 @@
1From 1015cc718ba25cabf613b96fd58baa8dfb8492fe Mon Sep 17 00:00:00 2001 1From 3028795037c3440415f3e8904e8015fbd480ab15 Mon Sep 17 00:00:00 2001
2From: Jens Rehsack <rehsack@gmail.com> 2From: Jens Rehsack <rehsack@gmail.com>
3Date: Thu, 2 Jan 2020 10:22:19 +0100 3Date: Thu, 2 Jan 2020 10:22:19 +0100
4Subject: [PATCH 1011/1012] hotspot: fix shark build (common) 4Subject: [PATCH 1010/1013] hotspot: fix shark build (common)
5 5
6Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 6Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
7--- 7---
@@ -22,10 +22,10 @@ Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
22 14 files changed, 123 insertions(+), 12 deletions(-) 22 14 files changed, 123 insertions(+), 12 deletions(-)
23 23
24diff --git a/hotspot/make/Makefile b/hotspot/make/Makefile 24diff --git a/hotspot/make/Makefile b/hotspot/make/Makefile
25index 5765f1e36..f8ff9ecd9 100644 25index de2607c71..3054c3fe8 100644
26--- a/hotspot/make/Makefile 26--- a/hotspot/make/Makefile
27+++ b/hotspot/make/Makefile 27+++ b/hotspot/make/Makefile
28@@ -525,7 +525,7 @@ $(EXPORT_INCLUDE_DIR)/%: $(SHARK_BUILD_DIR)/../generated/jvmtifiles/% 28@@ -536,7 +536,7 @@ $(EXPORT_INCLUDE_DIR)/%: $(SHARK_BUILD_DIR)/../generated/jvmtifiles/%
29 # Unix 29 # Unix
30 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(SHARK_BUILD_DIR)/%.$(LIBRARY_SUFFIX) 30 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(SHARK_BUILD_DIR)/%.$(LIBRARY_SUFFIX)
31 $(install-file) 31 $(install-file)
@@ -79,10 +79,10 @@ index 4707cc96e..a2b297ca0 100644
79 flow_block(blk, temp_vector, temp_set); 79 flow_block(blk, temp_vector, temp_set);
80 if (failing()) return; // Watch for bailouts. 80 if (failing()) return; // Watch for bailouts.
81diff --git a/hotspot/src/share/vm/classfile/systemDictionary.cpp b/hotspot/src/share/vm/classfile/systemDictionary.cpp 81diff --git a/hotspot/src/share/vm/classfile/systemDictionary.cpp b/hotspot/src/share/vm/classfile/systemDictionary.cpp
82index 5253afc22..ecb30cdef 100644 82index df4d56f6f..b1dd335cb 100644
83--- a/hotspot/src/share/vm/classfile/systemDictionary.cpp 83--- a/hotspot/src/share/vm/classfile/systemDictionary.cpp
84+++ b/hotspot/src/share/vm/classfile/systemDictionary.cpp 84+++ b/hotspot/src/share/vm/classfile/systemDictionary.cpp
85@@ -2300,6 +2300,7 @@ methodHandle SystemDictionary::find_method_handle_intrinsic(vmIntrinsics::ID iid 85@@ -2371,6 +2371,7 @@ methodHandle SystemDictionary::find_method_handle_intrinsic(vmIntrinsics::ID iid
86 spe = NULL; 86 spe = NULL;
87 // Must create lots of stuff here, but outside of the SystemDictionary lock. 87 // Must create lots of stuff here, but outside of the SystemDictionary lock.
88 m = Method::make_method_handle_intrinsic(iid, signature, CHECK_(empty)); 88 m = Method::make_method_handle_intrinsic(iid, signature, CHECK_(empty));
@@ -90,7 +90,7 @@ index 5253afc22..ecb30cdef 100644
90 if (!Arguments::is_interpreter_only()) { 90 if (!Arguments::is_interpreter_only()) {
91 // Generate a compiled form of the MH intrinsic. 91 // Generate a compiled form of the MH intrinsic.
92 AdapterHandlerLibrary::create_native_wrapper(m); 92 AdapterHandlerLibrary::create_native_wrapper(m);
93@@ -2309,6 +2310,7 @@ methodHandle SystemDictionary::find_method_handle_intrinsic(vmIntrinsics::ID iid 93@@ -2380,6 +2381,7 @@ methodHandle SystemDictionary::find_method_handle_intrinsic(vmIntrinsics::ID iid
94 "out of space in CodeCache for method handle intrinsic", empty); 94 "out of space in CodeCache for method handle intrinsic", empty);
95 } 95 }
96 } 96 }
@@ -98,7 +98,7 @@ index 5253afc22..ecb30cdef 100644
98 // Now grab the lock. We might have to throw away the new method, 98 // Now grab the lock. We might have to throw away the new method,
99 // if a racing thread has managed to install one at the same time. 99 // if a racing thread has managed to install one at the same time.
100 { 100 {
101@@ -2322,9 +2324,11 @@ methodHandle SystemDictionary::find_method_handle_intrinsic(vmIntrinsics::ID iid 101@@ -2393,9 +2395,11 @@ methodHandle SystemDictionary::find_method_handle_intrinsic(vmIntrinsics::ID iid
102 } 102 }
103 103
104 assert(spe != NULL && spe->method() != NULL, ""); 104 assert(spe != NULL && spe->method() != NULL, "");
@@ -444,5 +444,5 @@ index 243183c07..601ca7925 100644
444 builder()->CreateICmpEQ(lock, check), 444 builder()->CreateICmpEQ(lock, check),
445 released_fast, slow_path); 445 released_fast, slow_path);
446-- 446--
4472.24.1 4472.26.2
448 448
diff --git a/recipes-core/openjdk/patches-openjdk-8/1012-hotspot-restrict-to-staging-dir.patch b/recipes-core/openjdk/patches-openjdk-8/1011-hotspot-restrict-to-staging-dir.patch
index b61f664..b5b9471 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1012-hotspot-restrict-to-staging-dir.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1011-hotspot-restrict-to-staging-dir.patch
@@ -1,7 +1,7 @@
1From e4c080e29afa3f93383c1e046273cd20ec835ca3 Mon Sep 17 00:00:00 2001 1From 364b8a715b96f069bf455894b0ae290c52d3ab19 Mon Sep 17 00:00:00 2001
2From: Jens Rehsack <rehsack@gmail.com> 2From: Jens Rehsack <rehsack@gmail.com>
3Date: Thu, 2 Jan 2020 10:23:38 +0100 3Date: Thu, 2 Jan 2020 10:23:38 +0100
4Subject: [PATCH 1012/1012] hotspot: restrict to staging dir 4Subject: [PATCH 1011/1013] hotspot: restrict to staging dir
5 5
6Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 6Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
7--- 7---
@@ -22,5 +22,5 @@ index 386e94b1f..7642a67f8 100644
22 DTRACE_ENABLED = $(shell test -f $(SDT_H_FILE) && echo $(SDT_H_FILE)) 22 DTRACE_ENABLED = $(shell test -f $(SDT_H_FILE) && echo $(SDT_H_FILE))
23 REASON = "$(SDT_H_FILE) not found" 23 REASON = "$(SDT_H_FILE) not found"
24-- 24--
252.24.1 252.26.2
26 26
diff --git a/recipes-core/openjdk/patches-openjdk-8/1012-hotspot-enable-Wno-error.patch b/recipes-core/openjdk/patches-openjdk-8/1012-hotspot-enable-Wno-error.patch
new file mode 100644
index 0000000..1ad8351
--- /dev/null
+++ b/recipes-core/openjdk/patches-openjdk-8/1012-hotspot-enable-Wno-error.patch
@@ -0,0 +1,31 @@
1From 2303926f157f8c90cef167c43bd530793c19e480 Mon Sep 17 00:00:00 2001
2From: Richard Leitner <richard.leitner@skidata.com>
3Date: Thu, 20 Aug 2020 09:39:23 +0200
4Subject: [PATCH] hotspot: enable -Wno-error
5
6As we don't want to deal with compiler warnings in OpenEmbedded disable
7them for now.
8
9Upstream-Status: Pending
10
11Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
12
13---
14 hotspot/make/linux/makefiles/gcc.make | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/hotspot/make/linux/makefiles/gcc.make b/hotspot/make/linux/makefiles/gcc.make
18index cd9511e5..94412c8f 100644
19--- a/hotspot/make/linux/makefiles/gcc.make
20+++ b/hotspot/make/linux/makefiles/gcc.make
21@@ -200,8 +200,8 @@ else
22 CFLAGS += -pipe
23 endif
24
25-# Compiler warnings are treated as errors
26-WARNINGS_ARE_ERRORS = -Werror
27+# Compiler warnings are not treated as errors
28+WARNINGS_ARE_ERRORS = -Wno-error
29
30 ifeq ($(USE_CLANG), true)
31 # However we need to clean the code up before we can unrestrictedly enable this option with Clang
diff --git a/recipes-core/openjdk/patches-openjdk-8/1013-hotspot-add-missing-includes-for-shark-build-pt2.patch b/recipes-core/openjdk/patches-openjdk-8/1013-hotspot-add-missing-includes-for-shark-build-pt2.patch
new file mode 100644
index 0000000..a2e4726
--- /dev/null
+++ b/recipes-core/openjdk/patches-openjdk-8/1013-hotspot-add-missing-includes-for-shark-build-pt2.patch
@@ -0,0 +1,32 @@
1From d497bc0b36be083400d2802019ffdf49f5d5ca94 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Thu, 20 Aug 2020 10:10:55 +0200
4Subject: [PATCH 1013/1013] hotspot: add missing includes for shark build (pt2)
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Upstream-Status: Pending
10
11Signed-off-by: André Draszik <andre.draszik@jci.com>
12Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
13---
14 src/cpu/zero/vm/entry_zero.hpp | 2 ++
15 1 file changed, 2 insertions(+)
16
17diff --git a/hotspot/src/cpu/zero/vm/entry_zero.hpp b/hotspot/src/cpu/zero/vm/entry_zero.hpp
18index 73987f061..c5f50672b 100644
19--- a/hotspot/src/cpu/zero/vm/entry_zero.hpp
20+++ b/hotspot/src/cpu/zero/vm/entry_zero.hpp
21@@ -26,6 +26,8 @@
22 #ifndef CPU_ZERO_VM_ENTRY_ZERO_HPP
23 #define CPU_ZERO_VM_ENTRY_ZERO_HPP
24
25+#include "utilities/globalDefinitions.hpp"
26+#include "utilities/exceptions.hpp"
27 #include "interpreter/cppInterpreter.hpp"
28
29 class ZeroEntry {
30--
312.26.2
32
diff --git a/recipes-core/openjdk/patches-openjdk-8/aarch32-hotspot-fix-missing-return-values.patch b/recipes-core/openjdk/patches-openjdk-8/1201-hotspot-aarch32-fix-missing-return-values.patch
index bedc448..d4294d2 100644
--- a/recipes-core/openjdk/patches-openjdk-8/aarch32-hotspot-fix-missing-return-values.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1201-hotspot-aarch32-fix-missing-return-values.patch
@@ -1,19 +1,21 @@
1From 658adc5b6567e9a6df56beabb8d226a9b4d8e762 Mon Sep 17 00:00:00 2001 1From f4d687a4d6ddb08cae3bcce46257ea57544294c0 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Thu, 16 Aug 2018 02:27:44 +0100 3Date: Thu, 16 Aug 2018 02:27:44 +0100
4Subject: [PATCH] hotspot/aarch32: fix missing return values 4Subject: [PATCH 1201/1202] hotspot/aarch32: fix missing return values
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
8 8
9Upstream-Status: Pending
9Signed-off-by: André Draszik <andre.draszik@jci.com> 10Signed-off-by: André Draszik <andre.draszik@jci.com>
11Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
10--- 12---
11 hotspot/src/cpu/aarch32/vm/c1_LIRAssembler_aarch32.cpp | 3 +++ 13 src/cpu/aarch32/vm/c1_LIRAssembler_aarch32.cpp | 3 +++
12 hotspot/src/cpu/aarch32/vm/relocInfo_aarch32.cpp | 1 + 14 src/cpu/aarch32/vm/relocInfo_aarch32.cpp | 1 +
13 2 files changed, 4 insertions(+) 15 2 files changed, 4 insertions(+)
14 16
15diff --git a/hotspot/src/cpu/aarch32/vm/c1_LIRAssembler_aarch32.cpp b/hotspot/src/cpu/aarch32/vm/c1_LIRAssembler_aarch32.cpp 17diff --git a/hotspot/src/cpu/aarch32/vm/c1_LIRAssembler_aarch32.cpp b/hotspot/src/cpu/aarch32/vm/c1_LIRAssembler_aarch32.cpp
16index cd291bf2..4ba98c68 100644 18index 8aae15af2..76b6f1fe9 100644
17--- a/hotspot/src/cpu/aarch32/vm/c1_LIRAssembler_aarch32.cpp 19--- a/hotspot/src/cpu/aarch32/vm/c1_LIRAssembler_aarch32.cpp
18+++ b/hotspot/src/cpu/aarch32/vm/c1_LIRAssembler_aarch32.cpp 20+++ b/hotspot/src/cpu/aarch32/vm/c1_LIRAssembler_aarch32.cpp
19@@ -158,16 +158,19 @@ static Register as_reg(LIR_Opr op) { 21@@ -158,16 +158,19 @@ static Register as_reg(LIR_Opr op) {
@@ -37,7 +39,7 @@ index cd291bf2..4ba98c68 100644
37 39
38 Address LIR_Assembler::as_Address(LIR_Address* addr, Register tmp, Address::InsnDataType type) { 40 Address LIR_Assembler::as_Address(LIR_Address* addr, Register tmp, Address::InsnDataType type) {
39diff --git a/hotspot/src/cpu/aarch32/vm/relocInfo_aarch32.cpp b/hotspot/src/cpu/aarch32/vm/relocInfo_aarch32.cpp 41diff --git a/hotspot/src/cpu/aarch32/vm/relocInfo_aarch32.cpp b/hotspot/src/cpu/aarch32/vm/relocInfo_aarch32.cpp
40index 979d53c9..c0b1a4c7 100644 42index 979d53c98..c0b1a4c7a 100644
41--- a/hotspot/src/cpu/aarch32/vm/relocInfo_aarch32.cpp 43--- a/hotspot/src/cpu/aarch32/vm/relocInfo_aarch32.cpp
42+++ b/hotspot/src/cpu/aarch32/vm/relocInfo_aarch32.cpp 44+++ b/hotspot/src/cpu/aarch32/vm/relocInfo_aarch32.cpp
43@@ -87,6 +87,7 @@ address Relocation::pd_call_destination(address orig_addr) { 45@@ -87,6 +87,7 @@ address Relocation::pd_call_destination(address orig_addr) {
@@ -49,5 +51,5 @@ index 979d53c9..c0b1a4c7 100644
49 51
50 void Relocation::pd_set_call_destination(address x) { 52 void Relocation::pd_set_call_destination(address x) {
51-- 53--
522.18.0 542.26.2
53 55
diff --git a/recipes-core/openjdk/patches-openjdk-8/aarch32-hotspot-remaining-musl-fixes.patch b/recipes-core/openjdk/patches-openjdk-8/1202-hotspot-aarch32-remaining-musl-fixes.patch
index 1140887..12137c1 100644
--- a/recipes-core/openjdk/patches-openjdk-8/aarch32-hotspot-remaining-musl-fixes.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1202-hotspot-aarch32-remaining-musl-fixes.patch
@@ -1,7 +1,7 @@
1From 4bab4a4468a59e303e8d05a409a07a24c2342452 Mon Sep 17 00:00:00 2001 1From 4726119a39e937ab1a70335a6bc89645742d44fd Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Mon, 20 Aug 2018 12:38:38 +0100 3Date: Mon, 20 Aug 2018 12:38:38 +0100
4Subject: [PATCH] hotspot: remaining musl fixes (aarch32) 4Subject: [PATCH 1202/1202] hotspot/aarch32: remaining musl fixes
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -14,12 +14,13 @@ Content-Transfer-Encoding: 8bit
14 14
15Upstream-Status: Inappropriate [OE specific] 15Upstream-Status: Inappropriate [OE specific]
16Signed-off-by: André Draszik <andre.draszik@jci.com> 16Signed-off-by: André Draszik <andre.draszik@jci.com>
17Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
17--- 18---
18 hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp | 1 - 19 src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp | 1 -
19 1 file changed, 1 deletion(-) 20 1 file changed, 1 deletion(-)
20 21
21diff --git a/hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp b/hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp 22diff --git a/hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp b/hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp
22index 052a423c..93a315e4 100644 23index 2883fc17f..162504301 100644
23--- a/hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp 24--- a/hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp
24+++ b/hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp 25+++ b/hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp
25@@ -75,7 +75,6 @@ 26@@ -75,7 +75,6 @@
@@ -31,5 +32,5 @@ index 052a423c..93a315e4 100644
31 #define REG_FP 29 32 #define REG_FP 29
32 #define SPELL_REG_SP "sp" 33 #define SPELL_REG_SP "sp"
33-- 34--
342.11.0 352.26.2
35 36
diff --git a/recipes-core/openjdk/patches-openjdk-8/aarch64-hotspot-Fix-further-functions-with-a-missing.patch b/recipes-core/openjdk/patches-openjdk-8/1401-hotspot-aarch64-Add-missing-return-value-to-LIR_Asse.patch
index 0216c68..e4aa48f 100644
--- a/recipes-core/openjdk/patches-openjdk-8/aarch64-hotspot-Fix-further-functions-with-a-missing.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1401-hotspot-aarch64-Add-missing-return-value-to-LIR_Asse.patch
@@ -1,8 +1,8 @@
1From 3dffe06da016a959f1d8c3afc292ab92a9d4d137 Mon Sep 17 00:00:00 2001 1From 2e611155c42352c1a0c15078681c6712711f6c01 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Mon, 13 Aug 2018 17:03:56 +0100 3Date: Mon, 13 Aug 2018 17:03:56 +0100
4Subject: [PATCH] hotspot/aarch64: Fix further functions with a missing return 4Subject: [PATCH 1401/1402] hotspot/aarch64: Add missing return value to
5 value. 5 LIR_Assembler::as_Address
6MIME-Version: 1.0 6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8 7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit 8Content-Transfer-Encoding: 8bit
@@ -15,17 +15,19 @@ Content-Transfer-Encoding: 8bit
15|# Parent 3ade0115344b77e6d00462044e0cf68722685bfe 15|# Parent 3ade0115344b77e6d00462044e0cf68722685bfe
16PR3519: Fix further functions with a missing return value. 16PR3519: Fix further functions with a missing return value.
17 17
18Signed-off-by: André Draszik <andre.draszik@jci.com>
19Upstream-Status: Backport 18Upstream-Status: Backport
19
20Signed-off-by: André Draszik <andre.draszik@jci.com>
21Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
20--- 22---
21 hotspot/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp | 1 + 23 src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp | 1 +
22 1 file changed, 1 insertion(+) 24 1 file changed, 1 insertion(+)
23 25
24diff --git a/hotspot/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp b/hotspot/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp 26diff --git a/hotspot/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp b/hotspot/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp
25index 4e98cb39..bbc81b4a 100644 27index 7b85119c3..074e71a7d 100644
26--- a/hotspot/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp 28--- a/hotspot/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp
27+++ b/hotspot/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp 29+++ b/hotspot/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp
28@@ -205,6 +205,7 @@ Address LIR_Assembler::as_Address(LIR_Address* addr, Register tmp) { 30@@ -207,6 +207,7 @@ Address LIR_Assembler::as_Address(LIR_Address* addr, Register tmp) {
29 return Address(base, tmp, Address::lsl(addr->scale())); 31 return Address(base, tmp, Address::lsl(addr->scale()));
30 } 32 }
31 } 33 }
@@ -34,5 +36,5 @@ index 4e98cb39..bbc81b4a 100644
34 36
35 Address LIR_Assembler::as_Address_hi(LIR_Address* addr) { 37 Address LIR_Assembler::as_Address_hi(LIR_Address* addr) {
36-- 38--
372.18.0 392.26.2
38 40
diff --git a/recipes-core/openjdk/patches-openjdk-8/aarch64-hotspot-remaining-musl-fixes.patch b/recipes-core/openjdk/patches-openjdk-8/1402-hotspot-aarch64-remaining-musl-fixes.patch
index 436f012..2aafd82 100644
--- a/recipes-core/openjdk/patches-openjdk-8/aarch64-hotspot-remaining-musl-fixes.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1402-hotspot-aarch64-remaining-musl-fixes.patch
@@ -1,7 +1,7 @@
1From 8e8e79c136fe56db119fd9a76fb881e96727c840 Mon Sep 17 00:00:00 2001 1From 033183cd3598ff8ba4a40ef529dfad89c6226ca6 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Tue, 27 Feb 2018 15:33:17 +0000 3Date: Tue, 27 Feb 2018 15:33:17 +0000
4Subject: [PATCH] hotspot: remaining musl fixes (aarch64) 4Subject: [PATCH 1402/1402] hotspot/aarch64: remaining musl fixes
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -12,24 +12,26 @@ Content-Transfer-Encoding: 8bit
12| ^~~~~~~~~~~~~~~ 12| ^~~~~~~~~~~~~~~
13 13
14Upstream-Status: Inappropriate [OE specific] 14Upstream-Status: Inappropriate [OE specific]
15
15Signed-off-by: André Draszik <andre.draszik@jci.com> 16Signed-off-by: André Draszik <andre.draszik@jci.com>
17Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
16--- 18---
17 hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp | 2 +- 19 src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-) 20 1 file changed, 1 insertion(+), 1 deletion(-)
19 21
20diff --git a/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp b/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp 22diff --git a/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp b/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp
21index 8b985693..23f196cd 100644 23index 27dcbfa97..33779ae57 100644
22--- a/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp 24--- a/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp
23+++ b/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp 25+++ b/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp
24@@ -75,7 +75,7 @@ 26@@ -72,7 +72,7 @@
25 # include <pwd.h> 27 # include <pwd.h>
26 # include <poll.h> 28 # include <poll.h>
27 # include <ucontext.h> 29 # include <ucontext.h>
28-# include <fpu_control.h> 30-# include <fpu_control.h>
29+# include <linux/types.h> /* provides __u64 */ 31+# include <linux/types.h> /* provides __u64 */
30 32
31 #ifdef BUILTIN_SIM 33 #define REG_FP 29
32 #define REG_SP REG_RSP 34
33-- 35--
342.16.1 362.26.2
35 37
diff --git a/recipes-core/openjdk/patches-openjdk-8/2001-jdk-comparison-between-pointer-and-integer.patch b/recipes-core/openjdk/patches-openjdk-8/2001-jdk-comparison-between-pointer-and-integer.patch
index 38d3019..244d2b4 100644
--- a/recipes-core/openjdk/patches-openjdk-8/2001-jdk-comparison-between-pointer-and-integer.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/2001-jdk-comparison-between-pointer-and-integer.patch
@@ -1,7 +1,7 @@
1From 46ea1c28b53bf5fd2be03fa1d78936f6a1e70fc4 Mon Sep 17 00:00:00 2001 1From dcf3e46758fa5e77ce6fb4b3f51867bb5186f8f0 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Fri, 2 Mar 2018 11:13:08 +0000 3Date: Fri, 2 Mar 2018 11:13:08 +0000
4Subject: [PATCH 2001/2008] jdk: comparison between pointer and integer 4Subject: [PATCH] jdk: comparison between pointer and integer
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -21,14 +21,15 @@ Upstream-Status: Backport [http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/90c64359
21 21
22Signed-off-by: André Draszik <andre.draszik@jci.com> 22Signed-off-by: André Draszik <andre.draszik@jci.com>
23Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 23Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
24
24--- 25---
25 src/share/native/java/net/net_util.c | 15 +++++++-------- 26 jdk/src/share/native/java/net/net_util.c | 15 +++++++--------
26 src/share/native/java/net/net_util.h | 8 ++++---- 27 jdk/src/share/native/java/net/net_util.h | 8 ++++----
27 src/solaris/native/java/net/Inet6AddressImpl.c | 4 ++-- 28 .../solaris/native/java/net/Inet6AddressImpl.c | 4 ++--
28 3 files changed, 13 insertions(+), 14 deletions(-) 29 3 files changed, 13 insertions(+), 14 deletions(-)
29 30
30diff --git a/jdk/src/share/native/java/net/net_util.c b/jdk/src/share/native/java/net/net_util.c 31diff --git a/jdk/src/share/native/java/net/net_util.c b/jdk/src/share/native/java/net/net_util.c
31index b1b8223a6..2eee6261a 100644 32index b1b8223a..2eee6261 100644
32--- a/jdk/src/share/native/java/net/net_util.c 33--- a/jdk/src/share/native/java/net/net_util.c
33+++ b/jdk/src/share/native/java/net/net_util.c 34+++ b/jdk/src/share/native/java/net/net_util.c
34@@ -108,7 +108,7 @@ jobject getInet6Address_scopeifname(JNIEnv *env, jobject iaObj) { 35@@ -108,7 +108,7 @@ jobject getInet6Address_scopeifname(JNIEnv *env, jobject iaObj) {
@@ -99,7 +100,7 @@ index b1b8223a6..2eee6261a 100644
99 int scope; 100 int scope;
100 101
101diff --git a/jdk/src/share/native/java/net/net_util.h b/jdk/src/share/native/java/net/net_util.h 102diff --git a/jdk/src/share/native/java/net/net_util.h b/jdk/src/share/native/java/net/net_util.h
102index c8a5e68c4..176ca586e 100644 103index c8a5e68c..176ca586 100644
103--- a/jdk/src/share/native/java/net/net_util.h 104--- a/jdk/src/share/native/java/net/net_util.h
104+++ b/jdk/src/share/native/java/net/net_util.h 105+++ b/jdk/src/share/native/java/net/net_util.h
105@@ -64,12 +64,12 @@ JNIEXPORT void JNICALL initInetAddressIDs(JNIEnv *env); 106@@ -64,12 +64,12 @@ JNIEXPORT void JNICALL initInetAddressIDs(JNIEnv *env);
@@ -120,7 +121,7 @@ index c8a5e68c4..176ca586e 100644
120 extern void setInetAddress_addr(JNIEnv *env, jobject iaObj, int address); 121 extern void setInetAddress_addr(JNIEnv *env, jobject iaObj, int address);
121 extern void setInetAddress_family(JNIEnv *env, jobject iaObj, int family); 122 extern void setInetAddress_family(JNIEnv *env, jobject iaObj, int family);
122diff --git a/jdk/src/solaris/native/java/net/Inet6AddressImpl.c b/jdk/src/solaris/native/java/net/Inet6AddressImpl.c 123diff --git a/jdk/src/solaris/native/java/net/Inet6AddressImpl.c b/jdk/src/solaris/native/java/net/Inet6AddressImpl.c
123index 0a51a365f..dcc348cf1 100644 124index 0a51a365..dcc348cf 100644
124--- a/jdk/src/solaris/native/java/net/Inet6AddressImpl.c 125--- a/jdk/src/solaris/native/java/net/Inet6AddressImpl.c
125+++ b/jdk/src/solaris/native/java/net/Inet6AddressImpl.c 126+++ b/jdk/src/solaris/native/java/net/Inet6AddressImpl.c
126@@ -392,7 +392,7 @@ Java_java_net_Inet6AddressImpl_lookupAllHostAddr(JNIEnv *env, jobject this, 127@@ -392,7 +392,7 @@ Java_java_net_Inet6AddressImpl_lookupAllHostAddr(JNIEnv *env, jobject this,
@@ -141,6 +142,3 @@ index 0a51a365f..dcc348cf1 100644
141 ret = NULL; 142 ret = NULL;
142 goto cleanupAndReturn; 143 goto cleanupAndReturn;
143 } 144 }
144--
1452.24.1
146
diff --git a/recipes-core/openjdk/patches-openjdk-8/2002-jdk-Allow-using-a-system-installed-libjpeg.patch b/recipes-core/openjdk/patches-openjdk-8/2002-jdk-Allow-using-a-system-installed-libjpeg.patch
index 4d1df8a..5f8981d 100644
--- a/recipes-core/openjdk/patches-openjdk-8/2002-jdk-Allow-using-a-system-installed-libjpeg.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/2002-jdk-Allow-using-a-system-installed-libjpeg.patch
@@ -1,7 +1,7 @@
1From aef9a3f955f6e189b2a24b9f79ccb396275d4fa3 Mon Sep 17 00:00:00 2001 1From a1a63e85513aa3501588b02940e4f0e93e992e89 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Tue, 27 Feb 2018 13:36:53 +0000 3Date: Tue, 27 Feb 2018 13:36:53 +0000
4Subject: [PATCH 2002/2008] jdk: Allow using a system-installed libjpeg 4Subject: [PATCH] jdk: Allow using a system-installed libjpeg
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -21,8 +21,9 @@ Issues fixed on top of debian patch:
21Upstream-Status: Backport 21Upstream-Status: Backport
22Signed-off-by: André Draszik <andre.draszik@jci.com> 22Signed-off-by: André Draszik <andre.draszik@jci.com>
23Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 23Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
24
24--- 25---
25 make/lib/Awt2dLibraries.gmk | 69 +++++++++++++------ 26 jdk/make/lib/Awt2dLibraries.gmk | 69 +++++++++++++------
26 .../imageio/plugins/jpeg/JPEGImageReader.java | 2 +- 27 .../imageio/plugins/jpeg/JPEGImageReader.java | 2 +-
27 .../imageio/plugins/jpeg/JPEGImageWriter.java | 2 +- 28 .../imageio/plugins/jpeg/JPEGImageWriter.java | 2 +-
28 .../sun/awt/image/JPEGImageDecoder.java | 2 +- 29 .../sun/awt/image/JPEGImageDecoder.java | 2 +-
@@ -30,10 +31,10 @@ Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
30 5 files changed, 51 insertions(+), 26 deletions(-) 31 5 files changed, 51 insertions(+), 26 deletions(-)
31 32
32diff --git a/jdk/make/lib/Awt2dLibraries.gmk b/jdk/make/lib/Awt2dLibraries.gmk 33diff --git a/jdk/make/lib/Awt2dLibraries.gmk b/jdk/make/lib/Awt2dLibraries.gmk
33index a06bfd6db..12b9da11d 100644 34index 9368a9d5..7fffcafc 100644
34--- a/jdk/make/lib/Awt2dLibraries.gmk 35--- a/jdk/make/lib/Awt2dLibraries.gmk
35+++ b/jdk/make/lib/Awt2dLibraries.gmk 36+++ b/jdk/make/lib/Awt2dLibraries.gmk
36@@ -695,21 +695,24 @@ $(BUILD_LIBLCMS): $(BUILD_LIBAWT) 37@@ -702,21 +702,24 @@ $(BUILD_LIBLCMS): $(BUILD_LIBAWT)
37 38
38 ########################################################################################## 39 ##########################################################################################
39 40
@@ -64,7 +65,7 @@ index a06bfd6db..12b9da11d 100644
64 # Suppress gcc warnings like "variable might be clobbered by 'longjmp' 65 # Suppress gcc warnings like "variable might be clobbered by 'longjmp'
65 # or 'vfork'": this warning indicates that some variable is placed to 66 # or 'vfork'": this warning indicates that some variable is placed to
66 # a register by optimized compiler and it's value might be lost on longjmp(). 67 # a register by optimized compiler and it's value might be lost on longjmp().
67@@ -721,37 +724,50 @@ endif 68@@ -728,37 +731,50 @@ endif
68 # $(shell $(EXPR) $(CC_MAJORVER) \> 4 \| \ 69 # $(shell $(EXPR) $(CC_MAJORVER) \> 4 \| \
69 # \( $(CC_MAJORVER) = 4 \& $(CC_MINORVER) \>= 3 \) ) 70 # \( $(CC_MAJORVER) = 4 \& $(CC_MINORVER) \>= 3 \) )
70 # ifeq ($(CC_43_OR_NEWER), 1) 71 # ifeq ($(CC_43_OR_NEWER), 1)
@@ -129,7 +130,7 @@ index a06bfd6db..12b9da11d 100644
129 130
130 ########################################################################################## 131 ##########################################################################################
131 132
132@@ -1142,6 +1158,13 @@ ifndef BUILD_HEADLESS_ONLY 133@@ -1149,6 +1165,13 @@ ifndef BUILD_HEADLESS_ONLY
133 GIFLIB_CFLAGS := -I$(JDK_TOPDIR)/src/share/native/sun/awt/giflib 134 GIFLIB_CFLAGS := -I$(JDK_TOPDIR)/src/share/native/sun/awt/giflib
134 endif 135 endif
135 136
@@ -143,7 +144,7 @@ index a06bfd6db..12b9da11d 100644
143 ifneq ($(OPENJDK_TARGET_OS), macosx) 144 ifneq ($(OPENJDK_TARGET_OS), macosx)
144 LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/splashscreen 145 LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/splashscreen
145 else 146 else
146@@ -1198,11 +1221,13 @@ ifndef BUILD_HEADLESS_ONLY 147@@ -1205,11 +1228,13 @@ ifndef BUILD_HEADLESS_ONLY
147 EXCLUDE_FILES := imageioJPEG.c jpegdecoder.c pngtest.c, \ 148 EXCLUDE_FILES := imageioJPEG.c jpegdecoder.c pngtest.c, \
148 LANG := C, \ 149 LANG := C, \
149 OPTIMIZATION := LOW, \ 150 OPTIMIZATION := LOW, \
@@ -160,7 +161,7 @@ index a06bfd6db..12b9da11d 100644
160 VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ 161 VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
161 RC_FLAGS := $(RC_FLAGS) \ 162 RC_FLAGS := $(RC_FLAGS) \
162diff --git a/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java b/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java 163diff --git a/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java b/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java
163index 8f58f5b3e..fcbab8260 100644 164index 8f58f5b3..fcbab826 100644
164--- a/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java 165--- a/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java
165+++ b/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java 166+++ b/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java
166@@ -89,7 +89,7 @@ public class JPEGImageReader extends ImageReader { 167@@ -89,7 +89,7 @@ public class JPEGImageReader extends ImageReader {
@@ -173,7 +174,7 @@ index 8f58f5b3e..fcbab8260 100644
173 } 174 }
174 }); 175 });
175diff --git a/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java b/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java 176diff --git a/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java b/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java
176index 6a33bd5a1..dca189ed8 100644 177index 6a33bd5a..dca189ed 100644
177--- a/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java 178--- a/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java
178+++ b/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java 179+++ b/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java
179@@ -177,7 +177,7 @@ public class JPEGImageWriter extends ImageWriter { 180@@ -177,7 +177,7 @@ public class JPEGImageWriter extends ImageWriter {
@@ -186,7 +187,7 @@ index 6a33bd5a1..dca189ed8 100644
186 } 187 }
187 }); 188 });
188diff --git a/jdk/src/share/classes/sun/awt/image/JPEGImageDecoder.java b/jdk/src/share/classes/sun/awt/image/JPEGImageDecoder.java 189diff --git a/jdk/src/share/classes/sun/awt/image/JPEGImageDecoder.java b/jdk/src/share/classes/sun/awt/image/JPEGImageDecoder.java
189index 872ffc019..5965a186b 100644 190index 872ffc01..5965a186 100644
190--- a/jdk/src/share/classes/sun/awt/image/JPEGImageDecoder.java 191--- a/jdk/src/share/classes/sun/awt/image/JPEGImageDecoder.java
191+++ b/jdk/src/share/classes/sun/awt/image/JPEGImageDecoder.java 192+++ b/jdk/src/share/classes/sun/awt/image/JPEGImageDecoder.java
192@@ -56,7 +56,7 @@ public class JPEGImageDecoder extends ImageDecoder { 193@@ -56,7 +56,7 @@ public class JPEGImageDecoder extends ImageDecoder {
@@ -199,7 +200,7 @@ index 872ffc019..5965a186b 100644
199 } 200 }
200 }); 201 });
201diff --git a/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c b/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c 202diff --git a/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c b/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c
202index 7e1d8c99d..8cac61da3 100644 203index 7e1d8c99..8cac61da 100644
203--- a/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c 204--- a/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c
204+++ b/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c 205+++ b/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c
205@@ -51,7 +51,7 @@ 206@@ -51,7 +51,7 @@
@@ -211,6 +212,3 @@ index 7e1d8c99d..8cac61da3 100644
211 212
212 #undef MAX 213 #undef MAX
213 #define MAX(a,b) ((a) > (b) ? (a) : (b)) 214 #define MAX(a,b) ((a) > (b) ? (a) : (b))
214--
2152.24.1
216
diff --git a/recipes-core/openjdk/patches-openjdk-8/2003-jdk-Allow-using-a-system-installed-libpng.patch b/recipes-core/openjdk/patches-openjdk-8/2003-jdk-Allow-using-a-system-installed-libpng.patch
index 13d3045..dbc714e 100644
--- a/recipes-core/openjdk/patches-openjdk-8/2003-jdk-Allow-using-a-system-installed-libpng.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/2003-jdk-Allow-using-a-system-installed-libpng.patch
@@ -1,7 +1,7 @@
1From bdf8cb302ab7c8f11b676f93da482cd4a9405ce4 Mon Sep 17 00:00:00 2001 1From ce26d6cbb550039516432993894d65660b7c9e06 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Tue, 27 Feb 2018 13:43:04 +0000 3Date: Tue, 27 Feb 2018 13:43:04 +0000
4Subject: [PATCH 2003/2008] jdk: Allow using a system-installed libpng 4Subject: [PATCH] jdk: Allow using a system-installed libpng
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -18,16 +18,17 @@ Issues fixed on top of debian patch:
18Upstream-Status: Backport 18Upstream-Status: Backport
19Signed-off-by: André Draszik <andre.draszik@jci.com> 19Signed-off-by: André Draszik <andre.draszik@jci.com>
20Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 20Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
21
21--- 22---
22 make/lib/Awt2dLibraries.gmk | 12 +++++++++--- 23 jdk/make/lib/Awt2dLibraries.gmk | 12 +++++++++---
23 .../native/sun/awt/splashscreen/splashscreen_png.c | 3 +-- 24 .../native/sun/awt/splashscreen/splashscreen_png.c | 3 +--
24 2 files changed, 10 insertions(+), 5 deletions(-) 25 2 files changed, 10 insertions(+), 5 deletions(-)
25 26
26diff --git a/jdk/make/lib/Awt2dLibraries.gmk b/jdk/make/lib/Awt2dLibraries.gmk 27diff --git a/jdk/make/lib/Awt2dLibraries.gmk b/jdk/make/lib/Awt2dLibraries.gmk
27index 12b9da11d..cd8b94cd8 100644 28index 7fffcafc..7f42e09c 100644
28--- a/jdk/make/lib/Awt2dLibraries.gmk 29--- a/jdk/make/lib/Awt2dLibraries.gmk
29+++ b/jdk/make/lib/Awt2dLibraries.gmk 30+++ b/jdk/make/lib/Awt2dLibraries.gmk
30@@ -1148,7 +1148,6 @@ endif 31@@ -1155,7 +1155,6 @@ endif
31 ifndef BUILD_HEADLESS_ONLY 32 ifndef BUILD_HEADLESS_ONLY
32 LIBSPLASHSCREEN_DIRS := \ 33 LIBSPLASHSCREEN_DIRS := \
33 $(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg \ 34 $(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg \
@@ -35,7 +36,7 @@ index 12b9da11d..cd8b94cd8 100644
35 $(JDK_TOPDIR)/src/share/native/sun/awt/splashscreen 36 $(JDK_TOPDIR)/src/share/native/sun/awt/splashscreen
36 37
37 ifeq ($(USE_EXTERNAL_LIBGIF), true) 38 ifeq ($(USE_EXTERNAL_LIBGIF), true)
38@@ -1165,6 +1164,13 @@ ifndef BUILD_HEADLESS_ONLY 39@@ -1172,6 +1171,13 @@ ifndef BUILD_HEADLESS_ONLY
39 LIBJPEG_CFLAGS := -I$(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg 40 LIBJPEG_CFLAGS := -I$(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg
40 endif 41 endif
41 42
@@ -49,7 +50,7 @@ index 12b9da11d..cd8b94cd8 100644
49 ifneq ($(OPENJDK_TARGET_OS), macosx) 50 ifneq ($(OPENJDK_TARGET_OS), macosx)
50 LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/splashscreen 51 LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/splashscreen
51 else 52 else
52@@ -1222,12 +1228,12 @@ ifndef BUILD_HEADLESS_ONLY 53@@ -1229,12 +1235,12 @@ ifndef BUILD_HEADLESS_ONLY
53 LANG := C, \ 54 LANG := C, \
54 OPTIMIZATION := LOW, \ 55 OPTIMIZATION := LOW, \
55 CFLAGS := $(LIBSPLASHSCREEN_CFLAGS) $(CFLAGS_JDKLIB) \ 56 CFLAGS := $(LIBSPLASHSCREEN_CFLAGS) $(CFLAGS_JDKLIB) \
@@ -65,7 +66,7 @@ index 12b9da11d..cd8b94cd8 100644
65 VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ 66 VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
66 RC_FLAGS := $(RC_FLAGS) \ 67 RC_FLAGS := $(RC_FLAGS) \
67diff --git a/jdk/src/share/native/sun/awt/splashscreen/splashscreen_png.c b/jdk/src/share/native/sun/awt/splashscreen/splashscreen_png.c 68diff --git a/jdk/src/share/native/sun/awt/splashscreen/splashscreen_png.c b/jdk/src/share/native/sun/awt/splashscreen/splashscreen_png.c
68index 3599433e4..5bf002ea1 100644 69index 3599433e..5bf002ea 100644
69--- a/jdk/src/share/native/sun/awt/splashscreen/splashscreen_png.c 70--- a/jdk/src/share/native/sun/awt/splashscreen/splashscreen_png.c
70+++ b/jdk/src/share/native/sun/awt/splashscreen/splashscreen_png.c 71+++ b/jdk/src/share/native/sun/awt/splashscreen/splashscreen_png.c
71@@ -25,8 +25,7 @@ 72@@ -25,8 +25,7 @@
@@ -78,6 +79,3 @@ index 3599433e4..5bf002ea1 100644
78 #include <setjmp.h> 79 #include <setjmp.h>
79 80
80 #define SIG_BYTES 8 81 #define SIG_BYTES 8
81--
822.24.1
83
diff --git a/recipes-core/openjdk/patches-openjdk-8/2004-jdk-use-correct-include-for-poll.patch b/recipes-core/openjdk/patches-openjdk-8/2004-jdk-use-correct-include-for-poll.patch
index 365b4d6..91ec91f 100644
--- a/recipes-core/openjdk/patches-openjdk-8/2004-jdk-use-correct-include-for-poll.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/2004-jdk-use-correct-include-for-poll.patch
@@ -1,7 +1,7 @@
1From 48d7384387394820f2f5e8bdc2982c242568b548 Mon Sep 17 00:00:00 2001 1From 44512cfca65ea5b7b6d1732560d8aa2cd221de22 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Tue, 27 Feb 2018 09:28:06 +0000 3Date: Tue, 27 Feb 2018 09:28:06 +0000
4Subject: [PATCH 2004/2008] jdk: use correct include for poll 4Subject: [PATCH] jdk: use correct include for poll
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -25,24 +25,25 @@ the following command:
25Upstream-Status: Pending 25Upstream-Status: Pending
26Signed-off-by: André Draszik <andre.draszik@jci.com> 26Signed-off-by: André Draszik <andre.draszik@jci.com>
27Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 27Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
28
28--- 29---
29 src/aix/native/java/net/aix_close.c | 2 +- 30 jdk/src/aix/native/java/net/aix_close.c | 2 +-
30 src/aix/native/sun/nio/ch/AixPollPort.c | 2 +- 31 jdk/src/aix/native/sun/nio/ch/AixPollPort.c | 2 +-
31 src/solaris/native/java/net/PlainSocketImpl.c | 2 +- 32 jdk/src/solaris/native/java/net/PlainSocketImpl.c | 2 +-
32 src/solaris/native/java/net/bsd_close.c | 2 +- 33 jdk/src/solaris/native/java/net/bsd_close.c | 2 +-
33 src/solaris/native/java/net/linux_close.c | 2 +- 34 jdk/src/solaris/native/java/net/linux_close.c | 2 +-
34 src/solaris/native/java/net/net_util_md.h | 2 +- 35 jdk/src/solaris/native/java/net/net_util_md.h | 2 +-
35 src/solaris/native/sun/nio/ch/DevPollArrayWrapper.c | 2 +- 36 jdk/src/solaris/native/sun/nio/ch/DevPollArrayWrapper.c | 2 +-
36 src/solaris/native/sun/nio/ch/Net.c | 2 +- 37 jdk/src/solaris/native/sun/nio/ch/Net.c | 2 +-
37 src/solaris/native/sun/nio/fs/LinuxWatchService.c | 2 +- 38 jdk/src/solaris/native/sun/nio/fs/LinuxWatchService.c | 2 +-
38 src/solaris/transport/socket/socket_md.c | 2 +- 39 jdk/src/solaris/transport/socket/socket_md.c | 2 +-
39 10 files changed, 10 insertions(+), 10 deletions(-) 40 10 files changed, 10 insertions(+), 10 deletions(-)
40 41
41diff --git a/jdk/src/aix/native/java/net/aix_close.c b/jdk/src/aix/native/java/net/aix_close.c 42diff --git a/jdk/src/aix/native/java/net/aix_close.c b/jdk/src/aix/native/java/net/aix_close.c
42index 8c070e4b7..126f4d7d4 100644 43index 90d57b42..fbeb73ef 100644
43--- a/jdk/src/aix/native/java/net/aix_close.c 44--- a/jdk/src/aix/native/java/net/aix_close.c
44+++ b/jdk/src/aix/native/java/net/aix_close.c 45+++ b/jdk/src/aix/native/java/net/aix_close.c
45@@ -51,7 +51,7 @@ 46@@ -54,7 +54,7 @@
46 #include <unistd.h> 47 #include <unistd.h>
47 #include <errno.h> 48 #include <errno.h>
48 49
@@ -52,7 +53,7 @@ index 8c070e4b7..126f4d7d4 100644
52 /* 53 /*
53 * Stack allocated by thread when doing blocking operation 54 * Stack allocated by thread when doing blocking operation
54diff --git a/jdk/src/aix/native/sun/nio/ch/AixPollPort.c b/jdk/src/aix/native/sun/nio/ch/AixPollPort.c 55diff --git a/jdk/src/aix/native/sun/nio/ch/AixPollPort.c b/jdk/src/aix/native/sun/nio/ch/AixPollPort.c
55index 70064b890..c10c602b6 100644 56index 70064b89..c10c602b 100644
56--- a/jdk/src/aix/native/sun/nio/ch/AixPollPort.c 57--- a/jdk/src/aix/native/sun/nio/ch/AixPollPort.c
57+++ b/jdk/src/aix/native/sun/nio/ch/AixPollPort.c 58+++ b/jdk/src/aix/native/sun/nio/ch/AixPollPort.c
58@@ -34,7 +34,7 @@ 59@@ -34,7 +34,7 @@
@@ -65,7 +66,7 @@ index 70064b890..c10c602b6 100644
65 #include <fcntl.h> 66 #include <fcntl.h>
66 #include <stddef.h> 67 #include <stddef.h>
67diff --git a/jdk/src/solaris/native/java/net/PlainSocketImpl.c b/jdk/src/solaris/native/java/net/PlainSocketImpl.c 68diff --git a/jdk/src/solaris/native/java/net/PlainSocketImpl.c b/jdk/src/solaris/native/java/net/PlainSocketImpl.c
68index 71cbdf8ce..170957e73 100644 69index 373c5e36..9aafbc09 100644
69--- a/jdk/src/solaris/native/java/net/PlainSocketImpl.c 70--- a/jdk/src/solaris/native/java/net/PlainSocketImpl.c
70+++ b/jdk/src/solaris/native/java/net/PlainSocketImpl.c 71+++ b/jdk/src/solaris/native/java/net/PlainSocketImpl.c
71@@ -28,7 +28,7 @@ 72@@ -28,7 +28,7 @@
@@ -78,10 +79,10 @@ index 71cbdf8ce..170957e73 100644
78 #include <netinet/tcp.h> /* Defines TCP_NODELAY, needed for 2.6 */ 79 #include <netinet/tcp.h> /* Defines TCP_NODELAY, needed for 2.6 */
79 #include <netinet/in.h> 80 #include <netinet/in.h>
80diff --git a/jdk/src/solaris/native/java/net/bsd_close.c b/jdk/src/solaris/native/java/net/bsd_close.c 81diff --git a/jdk/src/solaris/native/java/net/bsd_close.c b/jdk/src/solaris/native/java/net/bsd_close.c
81index af57cef30..64d040887 100644 82index 89a20707..511ab845 100644
82--- a/jdk/src/solaris/native/java/net/bsd_close.c 83--- a/jdk/src/solaris/native/java/net/bsd_close.c
83+++ b/jdk/src/solaris/native/java/net/bsd_close.c 84+++ b/jdk/src/solaris/native/java/net/bsd_close.c
84@@ -36,7 +36,7 @@ 85@@ -38,7 +38,7 @@
85 #include <sys/uio.h> 86 #include <sys/uio.h>
86 #include <unistd.h> 87 #include <unistd.h>
87 #include <errno.h> 88 #include <errno.h>
@@ -91,10 +92,10 @@ index af57cef30..64d040887 100644
91 /* 92 /*
92 * Stack allocated by thread when doing blocking operation 93 * Stack allocated by thread when doing blocking operation
93diff --git a/jdk/src/solaris/native/java/net/linux_close.c b/jdk/src/solaris/native/java/net/linux_close.c 94diff --git a/jdk/src/solaris/native/java/net/linux_close.c b/jdk/src/solaris/native/java/net/linux_close.c
94index 98e1ce098..85fba135f 100644 95index eacc2afd..159ca132 100644
95--- a/jdk/src/solaris/native/java/net/linux_close.c 96--- a/jdk/src/solaris/native/java/net/linux_close.c
96+++ b/jdk/src/solaris/native/java/net/linux_close.c 97+++ b/jdk/src/solaris/native/java/net/linux_close.c
97@@ -34,7 +34,7 @@ 98@@ -36,7 +36,7 @@
98 #include <sys/uio.h> 99 #include <sys/uio.h>
99 #include <unistd.h> 100 #include <unistd.h>
100 #include <errno.h> 101 #include <errno.h>
@@ -104,7 +105,7 @@ index 98e1ce098..85fba135f 100644
104 /* 105 /*
105 * Stack allocated by thread when doing blocking operation 106 * Stack allocated by thread when doing blocking operation
106diff --git a/jdk/src/solaris/native/java/net/net_util_md.h b/jdk/src/solaris/native/java/net/net_util_md.h 107diff --git a/jdk/src/solaris/native/java/net/net_util_md.h b/jdk/src/solaris/native/java/net/net_util_md.h
107index a48446de9..8915b68aa 100644 108index a48446de..8915b68a 100644
108--- a/jdk/src/solaris/native/java/net/net_util_md.h 109--- a/jdk/src/solaris/native/java/net/net_util_md.h
109+++ b/jdk/src/solaris/native/java/net/net_util_md.h 110+++ b/jdk/src/solaris/native/java/net/net_util_md.h
110@@ -33,7 +33,7 @@ 111@@ -33,7 +33,7 @@
@@ -117,7 +118,7 @@ index a48446de9..8915b68aa 100644
117 118
118 119
119diff --git a/jdk/src/solaris/native/sun/nio/ch/DevPollArrayWrapper.c b/jdk/src/solaris/native/sun/nio/ch/DevPollArrayWrapper.c 120diff --git a/jdk/src/solaris/native/sun/nio/ch/DevPollArrayWrapper.c b/jdk/src/solaris/native/sun/nio/ch/DevPollArrayWrapper.c
120index 6860a167b..20849dabc 100644 121index 6860a167..20849dab 100644
121--- a/jdk/src/solaris/native/sun/nio/ch/DevPollArrayWrapper.c 122--- a/jdk/src/solaris/native/sun/nio/ch/DevPollArrayWrapper.c
122+++ b/jdk/src/solaris/native/sun/nio/ch/DevPollArrayWrapper.c 123+++ b/jdk/src/solaris/native/sun/nio/ch/DevPollArrayWrapper.c
123@@ -28,7 +28,7 @@ 124@@ -28,7 +28,7 @@
@@ -130,7 +131,7 @@ index 6860a167b..20849dabc 100644
130 #include <sys/time.h> 131 #include <sys/time.h>
131 132
132diff --git a/jdk/src/solaris/native/sun/nio/ch/Net.c b/jdk/src/solaris/native/sun/nio/ch/Net.c 133diff --git a/jdk/src/solaris/native/sun/nio/ch/Net.c b/jdk/src/solaris/native/sun/nio/ch/Net.c
133index 73560ad6c..a3720055c 100644 134index 73560ad6..a3720055 100644
134--- a/jdk/src/solaris/native/sun/nio/ch/Net.c 135--- a/jdk/src/solaris/native/sun/nio/ch/Net.c
135+++ b/jdk/src/solaris/native/sun/nio/ch/Net.c 136+++ b/jdk/src/solaris/native/sun/nio/ch/Net.c
136@@ -23,7 +23,7 @@ 137@@ -23,7 +23,7 @@
@@ -143,7 +144,7 @@ index 73560ad6c..a3720055c 100644
143 #include <sys/socket.h> 144 #include <sys/socket.h>
144 #include <string.h> 145 #include <string.h>
145diff --git a/jdk/src/solaris/native/sun/nio/fs/LinuxWatchService.c b/jdk/src/solaris/native/sun/nio/fs/LinuxWatchService.c 146diff --git a/jdk/src/solaris/native/sun/nio/fs/LinuxWatchService.c b/jdk/src/solaris/native/sun/nio/fs/LinuxWatchService.c
146index 375aaa485..7606e9ba8 100644 147index 375aaa48..7606e9ba 100644
147--- a/jdk/src/solaris/native/sun/nio/fs/LinuxWatchService.c 148--- a/jdk/src/solaris/native/sun/nio/fs/LinuxWatchService.c
148+++ b/jdk/src/solaris/native/sun/nio/fs/LinuxWatchService.c 149+++ b/jdk/src/solaris/native/sun/nio/fs/LinuxWatchService.c
149@@ -32,7 +32,7 @@ 150@@ -32,7 +32,7 @@
@@ -156,7 +157,7 @@ index 375aaa485..7606e9ba8 100644
156 157
157 #include "sun_nio_fs_LinuxWatchService.h" 158 #include "sun_nio_fs_LinuxWatchService.h"
158diff --git a/jdk/src/solaris/transport/socket/socket_md.c b/jdk/src/solaris/transport/socket/socket_md.c 159diff --git a/jdk/src/solaris/transport/socket/socket_md.c b/jdk/src/solaris/transport/socket/socket_md.c
159index 33e062e08..819fcabdb 100644 160index 33e062e0..819fcabd 100644
160--- a/jdk/src/solaris/transport/socket/socket_md.c 161--- a/jdk/src/solaris/transport/socket/socket_md.c
161+++ b/jdk/src/solaris/transport/socket/socket_md.c 162+++ b/jdk/src/solaris/transport/socket/socket_md.c
162@@ -37,7 +37,7 @@ 163@@ -37,7 +37,7 @@
@@ -168,6 +169,3 @@ index 33e062e08..819fcabdb 100644
168 #endif 169 #endif
169 170
170 #include "socket_md.h" 171 #include "socket_md.h"
171--
1722.24.1
173
diff --git a/recipes-core/openjdk/patches-openjdk-8/2005-jdk-use-correct-include-for-signal.patch b/recipes-core/openjdk/patches-openjdk-8/2005-jdk-use-correct-include-for-signal.patch
index 32bde99..b38dcb3 100644
--- a/recipes-core/openjdk/patches-openjdk-8/2005-jdk-use-correct-include-for-signal.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/2005-jdk-use-correct-include-for-signal.patch
@@ -1,7 +1,7 @@
1From 606c807be8e01a4cc99a02b50717d9bce141e8a2 Mon Sep 17 00:00:00 2001 1From ddcec385593175ee01b9f000457a34b3d7ab5ab4 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Tue, 27 Feb 2018 09:28:06 +0000 3Date: Tue, 27 Feb 2018 09:28:06 +0000
4Subject: [PATCH 2005/2008] jdk: use correct include for signal 4Subject: [PATCH] jdk: use correct include for signal
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -26,15 +26,16 @@ the following command:
26Upstream-Status: Pending 26Upstream-Status: Pending
27Signed-off-by: André Draszik <andre.draszik@jci.com> 27Signed-off-by: André Draszik <andre.draszik@jci.com>
28Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 28Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
29
29--- 30---
30 src/aix/native/sun/nio/ch/AixNativeThread.c | 2 +- 31 jdk/src/aix/native/sun/nio/ch/AixNativeThread.c | 2 +-
31 src/macosx/javavm/export/jvm_md.h | 2 +- 32 jdk/src/macosx/javavm/export/jvm_md.h | 2 +-
32 src/solaris/javavm/export/jvm_md.h | 2 +- 33 jdk/src/solaris/javavm/export/jvm_md.h | 2 +-
33 src/solaris/native/sun/nio/ch/NativeThread.c | 2 +- 34 jdk/src/solaris/native/sun/nio/ch/NativeThread.c | 2 +-
34 4 files changed, 4 insertions(+), 4 deletions(-) 35 4 files changed, 4 insertions(+), 4 deletions(-)
35 36
36diff --git a/jdk/src/aix/native/sun/nio/ch/AixNativeThread.c b/jdk/src/aix/native/sun/nio/ch/AixNativeThread.c 37diff --git a/jdk/src/aix/native/sun/nio/ch/AixNativeThread.c b/jdk/src/aix/native/sun/nio/ch/AixNativeThread.c
37index c0d585796..c4abb7ae5 100644 38index c0d58579..c4abb7ae 100644
38--- a/jdk/src/aix/native/sun/nio/ch/AixNativeThread.c 39--- a/jdk/src/aix/native/sun/nio/ch/AixNativeThread.c
39+++ b/jdk/src/aix/native/sun/nio/ch/AixNativeThread.c 40+++ b/jdk/src/aix/native/sun/nio/ch/AixNativeThread.c
40@@ -32,7 +32,7 @@ 41@@ -32,7 +32,7 @@
@@ -47,7 +48,7 @@ index c0d585796..c4abb7ae5 100644
47 /* Also defined in src/aix/native/java/net/aix_close.c */ 48 /* Also defined in src/aix/native/java/net/aix_close.c */
48 #define INTERRUPT_SIGNAL (SIGRTMAX - 1) 49 #define INTERRUPT_SIGNAL (SIGRTMAX - 1)
49diff --git a/jdk/src/macosx/javavm/export/jvm_md.h b/jdk/src/macosx/javavm/export/jvm_md.h 50diff --git a/jdk/src/macosx/javavm/export/jvm_md.h b/jdk/src/macosx/javavm/export/jvm_md.h
50index 012bb1bab..0b5757683 100644 51index 012bb1ba..0b575768 100644
51--- a/jdk/src/macosx/javavm/export/jvm_md.h 52--- a/jdk/src/macosx/javavm/export/jvm_md.h
52+++ b/jdk/src/macosx/javavm/export/jvm_md.h 53+++ b/jdk/src/macosx/javavm/export/jvm_md.h
53@@ -60,7 +60,7 @@ 54@@ -60,7 +60,7 @@
@@ -60,7 +61,7 @@ index 012bb1bab..0b5757683 100644
60 /* O Flags */ 61 /* O Flags */
61 62
62diff --git a/jdk/src/solaris/javavm/export/jvm_md.h b/jdk/src/solaris/javavm/export/jvm_md.h 63diff --git a/jdk/src/solaris/javavm/export/jvm_md.h b/jdk/src/solaris/javavm/export/jvm_md.h
63index 5c681914b..62415ee25 100644 64index 5c681914..62415ee2 100644
64--- a/jdk/src/solaris/javavm/export/jvm_md.h 65--- a/jdk/src/solaris/javavm/export/jvm_md.h
65+++ b/jdk/src/solaris/javavm/export/jvm_md.h 66+++ b/jdk/src/solaris/javavm/export/jvm_md.h
66@@ -65,7 +65,7 @@ 67@@ -65,7 +65,7 @@
@@ -73,7 +74,7 @@ index 5c681914b..62415ee25 100644
73 /* O Flags */ 74 /* O Flags */
74 75
75diff --git a/jdk/src/solaris/native/sun/nio/ch/NativeThread.c b/jdk/src/solaris/native/sun/nio/ch/NativeThread.c 76diff --git a/jdk/src/solaris/native/sun/nio/ch/NativeThread.c b/jdk/src/solaris/native/sun/nio/ch/NativeThread.c
76index 5e2a78b7a..204f0441a 100644 77index 5e2a78b7..204f0441 100644
77--- a/jdk/src/solaris/native/sun/nio/ch/NativeThread.c 78--- a/jdk/src/solaris/native/sun/nio/ch/NativeThread.c
78+++ b/jdk/src/solaris/native/sun/nio/ch/NativeThread.c 79+++ b/jdk/src/solaris/native/sun/nio/ch/NativeThread.c
79@@ -34,7 +34,7 @@ 80@@ -34,7 +34,7 @@
@@ -85,6 +86,3 @@ index 5e2a78b7a..204f0441a 100644
85 /* Also defined in net/linux_close.c */ 86 /* Also defined in net/linux_close.c */
86 #define INTERRUPT_SIGNAL (__SIGRTMAX - 2) 87 #define INTERRUPT_SIGNAL (__SIGRTMAX - 2)
87 #elif __solaris__ 88 #elif __solaris__
88--
892.24.1
90
diff --git a/recipes-core/openjdk/patches-openjdk-8/2006-jdk-disable-backtrace-musl-build-fix.patch b/recipes-core/openjdk/patches-openjdk-8/2006-jdk-disable-backtrace-musl-build-fix.patch
index dd5e051..4773f20 100644
--- a/recipes-core/openjdk/patches-openjdk-8/2006-jdk-disable-backtrace-musl-build-fix.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/2006-jdk-disable-backtrace-musl-build-fix.patch
@@ -1,7 +1,7 @@
1From 86de5eb9d031e7f8d241725d5eeaa7030cf2ce2b Mon Sep 17 00:00:00 2001 1From f27d54f62c5a5667c04b78ea1434a5db36358261 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Fri, 2 Mar 2018 13:58:07 +0000 3Date: Fri, 2 Mar 2018 13:58:07 +0000
4Subject: [PATCH 2006/2008] jdk: disable backtrace() (musl build fix) 4Subject: [PATCH] jdk: disable backtrace() (musl build fix)
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -15,12 +15,13 @@ to fix the build on musl.
15Upstream-Status: Pending 15Upstream-Status: Pending
16Signed-off-by: André Draszik <andre.draszik@jci.com> 16Signed-off-by: André Draszik <andre.draszik@jci.com>
17Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 17Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
18
18--- 19---
19 src/solaris/native/sun/xawt/XToolkit.c | 4 ++-- 20 jdk/src/solaris/native/sun/xawt/XToolkit.c | 4 ++--
20 1 file changed, 2 insertions(+), 2 deletions(-) 21 1 file changed, 2 insertions(+), 2 deletions(-)
21 22
22diff --git a/jdk/src/solaris/native/sun/xawt/XToolkit.c b/jdk/src/solaris/native/sun/xawt/XToolkit.c 23diff --git a/jdk/src/solaris/native/sun/xawt/XToolkit.c b/jdk/src/solaris/native/sun/xawt/XToolkit.c
23index 2425bf43a..1c8ebdb42 100644 24index 95d2baff..41dfa992 100644
24--- a/jdk/src/solaris/native/sun/xawt/XToolkit.c 25--- a/jdk/src/solaris/native/sun/xawt/XToolkit.c
25+++ b/jdk/src/solaris/native/sun/xawt/XToolkit.c 26+++ b/jdk/src/solaris/native/sun/xawt/XToolkit.c
26@@ -27,7 +27,7 @@ 27@@ -27,7 +27,7 @@
@@ -32,7 +33,7 @@ index 2425bf43a..1c8ebdb42 100644
32 #include <execinfo.h> 33 #include <execinfo.h>
33 #endif 34 #endif
34 35
35@@ -803,7 +803,7 @@ JNIEXPORT jstring JNICALL Java_sun_awt_X11_XToolkit_getEnv 36@@ -796,7 +796,7 @@ JNIEXPORT jstring JNICALL Java_sun_awt_X11_XToolkit_getEnv
36 return ret; 37 return ret;
37 } 38 }
38 39
@@ -41,6 +42,3 @@ index 2425bf43a..1c8ebdb42 100644
41 void print_stack(void) 42 void print_stack(void)
42 { 43 {
43 void *array[10]; 44 void *array[10];
44--
452.24.1
46
diff --git a/recipes-core/openjdk/patches-openjdk-8/2007-jdk-no-genx11-in-headless.patch b/recipes-core/openjdk/patches-openjdk-8/2007-jdk-no-genx11-in-headless.patch
index 8f3d134..d205ae5 100644
--- a/recipes-core/openjdk/patches-openjdk-8/2007-jdk-no-genx11-in-headless.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/2007-jdk-no-genx11-in-headless.patch
@@ -1,15 +1,16 @@
1From 0708dd8e56c1f28c2215561ba3035c8c538acef6 Mon Sep 17 00:00:00 2001 1From 095da0fd8597f0ed8d95d226300e8d6661ac2383 Mon Sep 17 00:00:00 2001
2From: Jens Rehsack <rehsack@gmail.com> 2From: Jens Rehsack <rehsack@gmail.com>
3Date: Thu, 2 Jan 2020 13:25:12 +0100 3Date: Thu, 2 Jan 2020 13:25:12 +0100
4Subject: [PATCH 2007/2008] jdk: no genx11 in headless 4Subject: [PATCH] jdk: no genx11 in headless
5 5
6Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 6Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
7
7--- 8---
8 make/GenerateSources.gmk | 8 +++++--- 9 jdk/make/GenerateSources.gmk | 8 +++++---
9 1 file changed, 5 insertions(+), 3 deletions(-) 10 1 file changed, 5 insertions(+), 3 deletions(-)
10 11
11diff --git a/jdk/make/GenerateSources.gmk b/jdk/make/GenerateSources.gmk 12diff --git a/jdk/make/GenerateSources.gmk b/jdk/make/GenerateSources.gmk
12index ba443f7da..2170150ac 100644 13index ba443f7d..2170150a 100644
13--- a/jdk/make/GenerateSources.gmk 14--- a/jdk/make/GenerateSources.gmk
14+++ b/jdk/make/GenerateSources.gmk 15+++ b/jdk/make/GenerateSources.gmk
15@@ -73,9 +73,11 @@ ifneq ($(OPENJDK_TARGET_OS), windows) 16@@ -73,9 +73,11 @@ ifneq ($(OPENJDK_TARGET_OS), windows)
@@ -27,6 +28,3 @@ index ba443f7da..2170150ac 100644
27 endif 28 endif
28 endif 29 endif
29 30
30--
312.24.1
32
diff --git a/recipes-core/openjdk/patches-openjdk-8/2008-jdk-no-unused-deps.patch b/recipes-core/openjdk/patches-openjdk-8/2008-jdk-no-unused-deps.patch
index e725bf9..115914a 100644
--- a/recipes-core/openjdk/patches-openjdk-8/2008-jdk-no-unused-deps.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/2008-jdk-no-unused-deps.patch
@@ -1,18 +1,19 @@
1From 0bb17a5083efcfd02e96ef034e51a190ea678f15 Mon Sep 17 00:00:00 2001 1From bc6450aaa4b7652ee034423f1d04cb439152eaf6 Mon Sep 17 00:00:00 2001
2From: Jens Rehsack <rehsack@gmail.com> 2From: Jens Rehsack <rehsack@gmail.com>
3Date: Thu, 2 Jan 2020 13:26:42 +0100 3Date: Thu, 2 Jan 2020 13:26:42 +0100
4Subject: [PATCH 2008/2008] jdk: no unused deps 4Subject: [PATCH] jdk: no unused deps
5 5
6Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 6Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
7
7--- 8---
8 make/CompileNativeLibraries.gmk | 2 ++ 9 jdk/make/CompileNativeLibraries.gmk | 2 ++
9 make/lib/Awt2dLibraries.gmk | 30 +++++++++++++++++------ 10 jdk/make/lib/Awt2dLibraries.gmk | 30 ++++++++++++++-----
10 src/solaris/native/sun/awt/jawt.c | 2 +- 11 jdk/src/solaris/native/sun/awt/jawt.c | 2 +-
11 src/solaris/native/sun/awt/utility/rect.h | 2 +- 12 jdk/src/solaris/native/sun/awt/utility/rect.h | 2 +-
12 4 files changed, 26 insertions(+), 10 deletions(-) 13 4 files changed, 26 insertions(+), 10 deletions(-)
13 14
14diff --git a/jdk/make/CompileNativeLibraries.gmk b/jdk/make/CompileNativeLibraries.gmk 15diff --git a/jdk/make/CompileNativeLibraries.gmk b/jdk/make/CompileNativeLibraries.gmk
15index c23b958b0..2984302f0 100644 16index c23b958b..2984302f 100644
16--- a/jdk/make/CompileNativeLibraries.gmk 17--- a/jdk/make/CompileNativeLibraries.gmk
17+++ b/jdk/make/CompileNativeLibraries.gmk 18+++ b/jdk/make/CompileNativeLibraries.gmk
18@@ -85,7 +85,9 @@ include lib/ServiceabilityLibraries.gmk 19@@ -85,7 +85,9 @@ include lib/ServiceabilityLibraries.gmk
@@ -26,7 +27,7 @@ index c23b958b0..2984302f0 100644
26 # Include the corresponding custom file, if present. 27 # Include the corresponding custom file, if present.
27 -include $(CUSTOM_MAKE_DIR)/CompileNativeLibraries.gmk 28 -include $(CUSTOM_MAKE_DIR)/CompileNativeLibraries.gmk
28diff --git a/jdk/make/lib/Awt2dLibraries.gmk b/jdk/make/lib/Awt2dLibraries.gmk 29diff --git a/jdk/make/lib/Awt2dLibraries.gmk b/jdk/make/lib/Awt2dLibraries.gmk
29index cd8b94cd8..8d9c37246 100644 30index 7f42e09c..10232b61 100644
30--- a/jdk/make/lib/Awt2dLibraries.gmk 31--- a/jdk/make/lib/Awt2dLibraries.gmk
31+++ b/jdk/make/lib/Awt2dLibraries.gmk 32+++ b/jdk/make/lib/Awt2dLibraries.gmk
32@@ -232,6 +232,10 @@ ifeq ($(OPENJDK_TARGET_OS), aix) 33@@ -232,6 +232,10 @@ ifeq ($(OPENJDK_TARGET_OS), aix)
@@ -40,7 +41,7 @@ index cd8b94cd8..8d9c37246 100644
40 LIBAWT_CFLAGS += -D__MEDIALIB_OLD_NAMES -D__USE_J2D_NAMES \ 41 LIBAWT_CFLAGS += -D__MEDIALIB_OLD_NAMES -D__USE_J2D_NAMES \
41 $(X_CFLAGS) \ 42 $(X_CFLAGS) \
42 $(foreach dir, $(LIBAWT_DIRS), -I$(dir)) 43 $(foreach dir, $(LIBAWT_DIRS), -I$(dir))
43@@ -801,17 +805,28 @@ ifeq ($(BUILD_HEADLESS), true) 44@@ -808,17 +812,28 @@ ifeq ($(BUILD_HEADLESS), true)
44 -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/jdga \ 45 -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/jdga \
45 $(foreach dir, $(LIBAWT_HEADLESS_DIRS), -I$(dir)) 46 $(foreach dir, $(LIBAWT_HEADLESS_DIRS), -I$(dir))
46 47
@@ -74,7 +75,7 @@ index cd8b94cd8..8d9c37246 100644
74 OGLBlitLoops.c \ 75 OGLBlitLoops.c \
75 OGLBufImgOps.c \ 76 OGLBufImgOps.c \
76 OGLContext.c \ 77 OGLContext.c \
77@@ -824,10 +839,9 @@ ifeq ($(BUILD_HEADLESS), true) 78@@ -831,10 +846,9 @@ ifeq ($(BUILD_HEADLESS), true)
78 OGLSurfaceData.c \ 79 OGLSurfaceData.c \
79 OGLTextRenderer.c \ 80 OGLTextRenderer.c \
80 OGLVertexCache.c \ 81 OGLVertexCache.c \
@@ -88,7 +89,7 @@ index cd8b94cd8..8d9c37246 100644
88 LIBAWT_HEADLESS_REORDER := 89 LIBAWT_HEADLESS_REORDER :=
89 ifeq ($(OPENJDK_TARGET_OS), solaris) 90 ifeq ($(OPENJDK_TARGET_OS), solaris)
90diff --git a/jdk/src/solaris/native/sun/awt/jawt.c b/jdk/src/solaris/native/sun/awt/jawt.c 91diff --git a/jdk/src/solaris/native/sun/awt/jawt.c b/jdk/src/solaris/native/sun/awt/jawt.c
91index 64284bc6e..b3584c7ef 100644 92index 64284bc6..b3584c7e 100644
92--- a/jdk/src/solaris/native/sun/awt/jawt.c 93--- a/jdk/src/solaris/native/sun/awt/jawt.c
93+++ b/jdk/src/solaris/native/sun/awt/jawt.c 94+++ b/jdk/src/solaris/native/sun/awt/jawt.c
94@@ -33,7 +33,7 @@ 95@@ -33,7 +33,7 @@
@@ -101,7 +102,7 @@ index 64284bc6e..b3584c7ef 100644
101 return JNI_FALSE; 102 return JNI_FALSE;
102 #else 103 #else
103diff --git a/jdk/src/solaris/native/sun/awt/utility/rect.h b/jdk/src/solaris/native/sun/awt/utility/rect.h 104diff --git a/jdk/src/solaris/native/sun/awt/utility/rect.h b/jdk/src/solaris/native/sun/awt/utility/rect.h
104index ceea38f43..8d85782ba 100644 105index ceea38f4..8d85782b 100644
105--- a/jdk/src/solaris/native/sun/awt/utility/rect.h 106--- a/jdk/src/solaris/native/sun/awt/utility/rect.h
106+++ b/jdk/src/solaris/native/sun/awt/utility/rect.h 107+++ b/jdk/src/solaris/native/sun/awt/utility/rect.h
107@@ -28,7 +28,7 @@ 108@@ -28,7 +28,7 @@
@@ -113,6 +114,3 @@ index ceea38f43..8d85782ba 100644
113 #include <X11/Xlib.h> 114 #include <X11/Xlib.h>
114 typedef XRectangle RECT_T; 115 typedef XRectangle RECT_T;
115 #else 116 #else
116--
1172.24.1
118
diff --git a/recipes-core/openjdk/patches-openjdk-8/2009-jdk-make-use-gcc-instead-of-ld-for-genSocketOptionRe.patch b/recipes-core/openjdk/patches-openjdk-8/2009-jdk-make-use-gcc-instead-of-ld-for-genSocketOptionRe.patch
new file mode 100644
index 0000000..3c7dc24
--- /dev/null
+++ b/recipes-core/openjdk/patches-openjdk-8/2009-jdk-make-use-gcc-instead-of-ld-for-genSocketOptionRe.patch
@@ -0,0 +1,26 @@
1From 83d3b8427c8996f3a0359d218f174b46fe9120c8 Mon Sep 17 00:00:00 2001
2From: Richard Leitner <richard.leitner@skidata.com>
3Date: Thu, 20 Aug 2020 11:24:40 +0200
4Subject: [PATCH] jdk: make: use gcc instead of ld for genSocketOptionRegistry
5
6Upstream-Status: Pending
7
8Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
9
10---
11 jdk/make/gensrc/GensrcMisc.gmk | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/jdk/make/gensrc/GensrcMisc.gmk b/jdk/make/gensrc/GensrcMisc.gmk
15index 9db5c9d6..84a3c27e 100644
16--- a/jdk/make/gensrc/GensrcMisc.gmk
17+++ b/jdk/make/gensrc/GensrcMisc.gmk
18@@ -76,7 +76,7 @@ $(eval $(call SetupNativeCompilation,BUILD_GENSRC_SOR_EXE, \
19 INCLUDE_FILES := $(GENSRC_SOR_SRC_FILE), \
20 LANG := C, \
21 CC := $(BUILD_CC), \
22- LDEXE := $(BUILD_LD), \
23+ LDEXE := $(BUILD_CC), \
24 OBJECT_DIR := $(GENSRC_SOR_BIN), \
25 OUTPUT_DIR := $(GENSRC_SOR_BIN), \
26 PROGRAM := genSocketOptionRegistry))
diff --git a/recipes-core/openjdk/patches-openjdk-8/2009-jdk-use-gcc-instead-of-ld-to-link-genSocketOptionRegistry.patch b/recipes-core/openjdk/patches-openjdk-8/2009-jdk-use-gcc-instead-of-ld-to-link-genSocketOptionRegistry.patch
deleted file mode 100644
index e35d0eb..0000000
--- a/recipes-core/openjdk/patches-openjdk-8/2009-jdk-use-gcc-instead-of-ld-to-link-genSocketOptionRegistry.patch
+++ /dev/null
@@ -1,13 +0,0 @@
1Index: jdk8u-jdk8u242-ga/jdk/make/gensrc/GensrcMisc.gmk
2===================================================================
3--- jdk8u-jdk8u242-ga.orig/jdk/make/gensrc/GensrcMisc.gmk
4+++ jdk8u-jdk8u242-ga/jdk/make/gensrc/GensrcMisc.gmk
5@@ -76,7 +76,7 @@ $(eval $(call SetupNativeCompilation,BUI
6 INCLUDE_FILES := $(GENSRC_SOR_SRC_FILE), \
7 LANG := C, \
8 CC := $(BUILD_CC), \
9- LDEXE := $(BUILD_LD), \
10+ LDEXE := $(BUILD_CC), \
11 OBJECT_DIR := $(GENSRC_SOR_BIN), \
12 OUTPUT_DIR := $(GENSRC_SOR_BIN), \
13 PROGRAM := genSocketOptionRegistry))
diff --git a/recipes-core/openjdk/patches-openjdk-8/aarch32-hotspot-fix-shark-build-pt2.patch b/recipes-core/openjdk/patches-openjdk-8/aarch32-hotspot-fix-shark-build-pt2.patch
deleted file mode 100644
index b09745c..0000000
--- a/recipes-core/openjdk/patches-openjdk-8/aarch32-hotspot-fix-shark-build-pt2.patch
+++ /dev/null
@@ -1,11 +0,0 @@
1--- hotspot/src/cpu/zero/vm/entry_zero.hpp
2+++ hotspot/src/cpu/zero/vm/entry_zero.hpp
3@@ -26,6 +26,8 @@
4 #ifndef CPU_ZERO_VM_ENTRY_ZERO_HPP
5 #define CPU_ZERO_VM_ENTRY_ZERO_HPP
6
7+#include "utilities/globalDefinitions.hpp"
8+#include "utilities/exceptions.hpp"
9 #include "interpreter/cppInterpreter.hpp"
10
11 class ZeroEntry {
diff --git a/recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-shark-build-pt2.patch b/recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-shark-build-pt2.patch
deleted file mode 100644
index b09745c..0000000
--- a/recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-shark-build-pt2.patch
+++ /dev/null
@@ -1,11 +0,0 @@
1--- hotspot/src/cpu/zero/vm/entry_zero.hpp
2+++ hotspot/src/cpu/zero/vm/entry_zero.hpp
3@@ -26,6 +26,8 @@
4 #ifndef CPU_ZERO_VM_ENTRY_ZERO_HPP
5 #define CPU_ZERO_VM_ENTRY_ZERO_HPP
6
7+#include "utilities/globalDefinitions.hpp"
8+#include "utilities/exceptions.hpp"
9 #include "interpreter/cppInterpreter.hpp"
10
11 class ZeroEntry {