[oe] [meta-java][PATCH] openjdk-8: fix build on machines with linux kernel 5.0+

Jacob Kroon jacob.kroon at gmail.com
Wed Aug 21 14:24:28 UTC 2019


On 8/21/19 3:46 PM, Matthias Schoepfer via Openembedded-devel wrote:
> Signed-off-by: Matthias Schoepfer <matthias.schoepfer at ithinx.io>
> ---
>   .../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
> 
> diff --git a/recipes-core/openjdk/openjdk-8-release-172b11-common.inc b/recipes-core/openjdk/openjdk-8-release-172b11-common.inc
> index ad20585..eb7e38a 100644
> --- a/recipes-core/openjdk/openjdk-8-release-172b11-common.inc
> +++ b/recipes-core/openjdk/openjdk-8-release-172b11-common.inc
> @@ -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 \
> diff --git a/recipes-core/openjdk/patches-openjdk-8/0001-fixing-build-for-kernel-versions-5.x.patch b/recipes-core/openjdk/patches-openjdk-8/0001-fixing-build-for-kernel-versions-5.x.patch
> new file mode 100644
> index 0000000..9b17b66
> --- /dev/null
> +++ b/recipes-core/openjdk/patches-openjdk-8/0001-fixing-build-for-kernel-versions-5.x.patch
> @@ -0,0 +1,27 @@
> +From 51b022bcc596aa85e72e8d8bb93ffc3be843b8b9 Mon Sep 17 00:00:00 2001
> +From: Matthias Schoepfer <matthias.schoepfer at ithinx.io>
> +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 <matthias.schoepfer at ithinx.io>
> +
> +---
> + 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))
> +
> 

This is already fixed in master-next.

/me wonders when those patches will be merged to master.

/Jacob


More information about the Openembedded-devel mailing list