From a0cf2bb5f1d28b636574fb6b974dd7ba1ded6d2d Mon Sep 17 00:00:00 2001 From: Andreas Enge Date: Wed, 5 Apr 2023 15:50:24 +0200 Subject: gnu: openjdk10: Add patches to fix build. * gnu/packages/patches/openjdk-10-pointer-comparison.patch, gnu/packages/patches/openjdk-10-setsignalhandler.patch: New files. * gnu/local.mk (dist_patch_DATA): Register patches. * gnu/packages/java.scm (openjdk10)[origin]: Use patches. --- gnu/packages/patches/openjdk-10-pointer-comparison.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 gnu/packages/patches/openjdk-10-pointer-comparison.patch (limited to 'gnu/packages/patches/openjdk-10-pointer-comparison.patch') diff --git a/gnu/packages/patches/openjdk-10-pointer-comparison.patch b/gnu/packages/patches/openjdk-10-pointer-comparison.patch new file mode 100644 index 0000000000..9c09f8e391 --- /dev/null +++ b/gnu/packages/patches/openjdk-10-pointer-comparison.patch @@ -0,0 +1,14 @@ +Patch inspired by file comparison with openjdk@19. + +diff -u -r openjdk-10.alt/src/hotspot/os/linux/os_linux.cpp openjdk-10/src/hotspot/os/linux/os_linux.cpp +--- openjdk-10.alt/src/hotspot/os/linux/os_linux.cpp 2023-04-05 15:02:56.994779480 +0200 ++++ openjdk-10/src/hotspot/os/linux/os_linux.cpp 2023-04-05 15:07:47.267537301 +0200 +@@ -2155,7 +2155,7 @@ + } + + p = OSContainer::cpu_cpuset_memory_nodes(); +- if (p < 0) ++ if (p == NULL) + st->print("cpu_memory_nodes() failed\n"); + else { + st->print("cpu_memory_nodes: %s\n", p); -- cgit v1.2.3