From 481dc4f0ab4ff56b387723297d77641502d11ec9b3cbd70a1f1ad684136e62f8 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 23 May 2024 15:09:36 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-1_8_0-openj9?expand=0&rev=118 --- java-1_8_0-openj9.spec | 2 ++ openj9-openssl.patch | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 openj9-openssl.patch diff --git a/java-1_8_0-openj9.spec b/java-1_8_0-openj9.spec index 6df74f4..cba07a1 100644 --- a/java-1_8_0-openj9.spec +++ b/java-1_8_0-openj9.spec @@ -123,6 +123,7 @@ Patch201: system-libjpeg.patch Patch202: system-libpng.patch Patch203: system-lcms.patch Patch210: openj9-no-werror.patch +Patch211: openj9-openssl.patch BuildRequires: alsa-lib-devel BuildRequires: autoconf BuildRequires: automake @@ -353,6 +354,7 @@ rm -rvf jdk/src/share/native/sun/java2d/cmm/lcms/lcms2* %patch -P 203 -p1 %patch -P 210 +%patch -P 211 -p1 %patch -P 1 -p1 %patch -P 2 -p1 diff --git a/openj9-openssl.patch b/openj9-openssl.patch new file mode 100644 index 0000000..ee392f5 --- /dev/null +++ b/openj9-openssl.patch @@ -0,0 +1,13 @@ +--- a/openj9/runtime/compiler/runtime/Listener.cpp ++++ b/openj9/runtime/compiler/runtime/Listener.cpp +@@ -44,6 +44,10 @@ + #include "runtime/CompileService.hpp" + #include "runtime/Listener.hpp" + ++#ifndef SSL_R_UNEXPECTED_EOF_WHILE_READING ++#define SSL_R_UNEXPECTED_EOF_WHILE_READING 294 ++#endif ++ + static bool + handleOpenSSLConnectionError(int connfd, SSL *&ssl, BIO *&bio, const char *errMsg, int ret, TR::CompilationInfo *compInfo) + {