openjdk-8: fix build on machines with linux kernel 5.0+
PATCH 1/1 openjdk-8: fix build on machines with linux kernel 5.0+
--- .../openjdk-8-release-172b11-common.inc | 1 + ...fixing-build-for-kernel-versions-5.x.patch | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 recipes-core/openjdk/patches-openjdk-8/0001-fixing-build-for-kernel-versions-5.x.patch
recipes-core/openjdk/openjdk-8-release-172b11-common.inc +1 -0
@@ -21,6 +21,7 @@ PATCHES_URI = "\ ${LIBPNG_NEON_PATCH} \ file://handle_extra_output.patch \ file://hotspot-handle-gcc7-format-overflow.patch \ + file://0001-fixing-build-for-kernel-versions-5.x.patch \ " HOTSPOT_UB_PATCH = "\ file://0014-hotspot-zero-fix-undefined-behaviour-gcc-v8-fix.patch \
recipes-core/openjdk/patches-openjdk-8/0001-fixing-build-for-kernel-versions-5.x.patch new file +27 -0
@@ -0,0 +1,27 @@ +From 51b022bcc596aa85e72e8d8bb93ffc3be843b8b9 Mon Sep 17 00:00:00 2001 +From: Matthias Schoepfer <[email protected]> +Date: Wed, 21 Aug 2019 14:33:02 +0200 +Subject: [PATCH] fixing build for kernel versions 5.x + +This simply extends the possibility of having a version 5+ linux kernel + + +Signed-off-by: Matthias Schoepfer <[email protected]> + +--- + hotspot/make/linux/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/hotspot/make/linux/Makefile b/hotspot/make/linux/Makefile +index 17c14097..02cb0b33 100644 +--- a/hotspot/make/linux/Makefile ++++ b/hotspot/make/linux/Makefile +@@ -233,7 +233,7 @@ checks: check_os_version check_j2se_version + # Solaris 2.5.1, 2.6). + # Disable this check by setting DISABLE_HOTSPOT_OS_VERSION_CHECK=ok. + +-SUPPORTED_OS_VERSION = 2.4% 2.5% 2.6% 3% 4% ++SUPPORTED_OS_VERSION = 2.4% 2.5% 2.6% 3% 4% 5% + OS_VERSION := $(shell uname -r) + EMPTY_IF_NOT_SUPPORTED = $(filter $(SUPPORTED_OS_VERSION),$(OS_VERSION)) +
Signature · 1 line
2.21.0
Quoted 43 lines · Matthias Schoepfer via Openembedded-devel
Signed-off-by Matthias Schoepfer <[email protected]>--- .../openjdk-8-release-172b11-common.inc | 1 + ...fixing-build-for-kernel-versions-5.x.patch | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+)create mode 100644
recipes-core/openjdk/patches-openjdk-8/0001-fixing-build-for-kernel-versions-5.x.patchrecipes-core/openjdk/openjdk-8-release-172b11-common.inc +1
-0@@ -21,6 +21,7 @@ PATCHES_URI = "\ ${LIBPNG_NEON_PATCH} \ file://handle_extra_output.patch \ file://hotspot-handle-gcc7-format-overflow.patch \ + file://0001-fixing-build-for-kernel-versions-5.x.patch \ " HOTSPOT_UB_PATCH = "\ file://0014-hotspot-zero-fix-undefined-behaviour-gcc-v8-fix.patch \recipes-core/openjdk/patches-openjdk-8/0001-fixing-build-for-kernel-versions-5.x.patch new file +17
-0@@ -0,0 +1,27 @@ +From 51b022bcc596aa85e72e8d8bb93ffc3be843b8b9 Mon Sep 17 00:00:00 2001 +From: Matthias Schoepfer <[email protected]> +Date: Wed, 21 Aug 2019 14:33:02 +0200 +Subject: [PATCH] fixing build for kernel versions 5.x + +This simply extends the possibility of having a version 5+ linux kernel + + +Signed-off-by: Matthias Schoepfer <[email protected]> + +--- + hotspot/make/linux/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/hotspot/make/linux/Makefile b/hotspot/make/linux/Makefile +index 17c14097..02cb0b33 100644 +--- a/hotspot/make/linux/Makefile
recipes-core/openjdk/patches-openjdk-8/0001-fixing-build-for-kernel-versions-5.x.patch line 27
Quoted 10 lines
recipes-core/openjdk/patches-openjdk-8/0001-fixing-build-for-kernel-versions-5.x.patch new file +10
-0++++ b/hotspot/make/linux/Makefile +@@ -233,7 +233,7 @@ checks: check_os_version check_j2se_version + # Solaris 2.5.1, 2.6). + # Disable this check by setting DISABLE_HOTSPOT_OS_VERSION_CHECK=ok. + +-SUPPORTED_OS_VERSION = 2.4% 2.5% 2.6% 3% 4% ++SUPPORTED_OS_VERSION = 2.4% 2.5% 2.6% 3% 4% 5% + OS_VERSION := $(shell uname -r) + EMPTY_IF_NOT_SUPPORTED = $(filter $(SUPPORTED_OS_VERSION),$(OS_VERSION)) +
This is already fixed in master-next.
/me wonders when those patches will be merged to master.
/Jacob
Quoted 53 lines · Jacob Kroon
Quoted 52 lines · Matthias Schoepfer via Openembedded-devel
Signed-off-by Matthias Schoepfer <[email protected]>---
.../openjdk-8-release-172b11-common.inc | 1 + ...fixing-build-for-kernel-versions-5.x.patch | 27 +++++++++++++++++++2 files changed, 28 insertions(+)create mode 100644
recipes-core/openjdk/patches-openjdk-8/0001-fixing-build-for-kernel-versions-5.x.patchrecipes-core/openjdk/openjdk-8-release-172b11-common.inc +1
-0@@ -21,6 +21,7 @@ PATCHES_URI = "\ ${LIBPNG_NEON_PATCH} \ file://handle_extra_output.patch \ file://hotspot-handle-gcc7-format-overflow.patch \ + file://0001-fixing-build-for-kernel-versions-5.x.patch \"
HOTSPOT_UB_PATCH= "\
file://0014-hotspot-zero-fix-undefined-behaviour-gcc-v8-fix.patch \recipes-core/openjdk/patches-openjdk-8/0001-fixing-build-for-kernel-versions-5.x.patch +0
-0new file mode 100644
index 0000000..9b17b66
---/dev/null
+++b/recipes-core/openjdk/patches-openjdk-8/0001-fixing-build-for-kernel-versions-5.x.patchrecipes-core/openjdk/patches-openjdk-8/0001-fixing-build-for-kernel-versions-5.x.patch +23
-0@@ -0,0 +1,27 @@ +From 51b022bcc596aa85e72e8d8bb93ffc3be843b8b9 Mon Sep 17 00:00:00 2001 +From: Matthias Schoepfer <[email protected]> +Date: Wed, 21 Aug 2019 14:33:02 +0200 +Subject: [PATCH] fixing build for kernel versions 5.x + +This simply extends the possibility of having a version 5+ linux kernel + + +Signed-off-by: Matthias Schoepfer <[email protected]> + +--- + hotspot/make/linux/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/hotspot/make/linux/Makefile b/hotspot/make/linux/Makefile +index 17c14097..02cb0b33 100644 +--- a/hotspot/make/linux/Makefile ++++ b/hotspot/make/linux/Makefile +@@ -233,7 +233,7 @@ checks: check_os_version check_j2se_version + # Solaris 2.5.1, 2.6). + # Disable this check by setting DISABLE_HOTSPOT_OS_VERSION_CHECK=ok. + +-SUPPORTED_OS_VERSION = 2.4% 2.5% 2.6% 3% 4%
Quoted 8 lines
Quoted 6 lines
recipes-core/openjdk/patches-openjdk-8/0001-fixing-build-for-kernel-versions-5.x.patch +3
-0++SUPPORTED_OS_VERSION = 2.4% 2.5% 2.6% 3% 4% 5% + OS_VERSION := $(shell uname -r) + EMPTY_IF_NOT_SUPPORTED = $(filter$(SUPPORTED_OS_VERSION),$(OS_VERSION))
+This is already fixed in master-next.
True ;-)
Quoted 2 lines
/me wonders when those patches will be merged to master.
If the tests pass, likely today afternoon or tomorrow morning (CET).
regards;Richard.L
Quoted 2 lines
/Jacob