From 70926cc85e13323ccd9da3777c00e773fc801f08 Mon Sep 17 00:00:00 2001 From: Jack Green Date: Thu, 7 Nov 2024 16:56:41 +0000 Subject: [PATCH 1/2] Replace Debian Java requirement with an available version In https://github.com/hazelcast/hazelcast-packaging/pull/195, Debian was _intended_ to upgrade it's dependant JRE to `21` - but the JDK specified does not exist (`docker run --interactive --rm debian:stable bash -c "apt-get update && apt list | grep jdk"`) Instead we should request the _latest_ JDK which currently is `17` (`docker run --interactive --rm debian:stable bash -c "apt-get update && apt-get install -y default-jdk-headless && java -version"`). Fixes: https://github.com/hazelcast/hazelcast-packaging/issues/237 --- packages/deb/hazelcast/DEBIAN/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/deb/hazelcast/DEBIAN/control b/packages/deb/hazelcast/DEBIAN/control index 7afe3ea2..7c75269f 100644 --- a/packages/deb/hazelcast/DEBIAN/control +++ b/packages/deb/hazelcast/DEBIAN/control @@ -5,7 +5,7 @@ Section: imdg Priority: optional Architecture: all Conflicts: ${CONFLICTS} -Depends: java21-sdk-headless +Depends: default-jdk-headless Maintainer: Hazelcast Platform Team Description: A tool that allows users to install & run Hazelcast Homepage: https://www.hazelcast.com/ From cc6d2401166bedeb3749f79eeef6359b00e7db61 Mon Sep 17 00:00:00 2001 From: Jack Green Date: Fri, 8 Nov 2024 08:13:10 +0000 Subject: [PATCH 2/2] Add fallback default --- packages/deb/hazelcast/DEBIAN/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/deb/hazelcast/DEBIAN/control b/packages/deb/hazelcast/DEBIAN/control index 7c75269f..5e57279f 100644 --- a/packages/deb/hazelcast/DEBIAN/control +++ b/packages/deb/hazelcast/DEBIAN/control @@ -5,7 +5,7 @@ Section: imdg Priority: optional Architecture: all Conflicts: ${CONFLICTS} -Depends: default-jdk-headless +Depends: java21-sdk-headless | default-jdk-headless Maintainer: Hazelcast Platform Team Description: A tool that allows users to install & run Hazelcast Homepage: https://www.hazelcast.com/