From 79a9da31dddb5966af66a750c5ceef00de4ad49d Mon Sep 17 00:00:00 2001 From: Valera V Harseko Date: Fri, 3 Jul 2026 12:42:56 +0300 Subject: [PATCH 1/2] Declare the packages' runtime dependencies (deb Depends, rpm Requires) The rpm declared no dependencies at all: it installed on a Java-less host (setup then fails), its scripts locate java via "which" (absent on minimal RHEL9 - setup fails with "Please set OPENDJ_JAVA_HOME"), and the postinstall/preuninstall scriptlets call /sbin/chkconfig unconditionally. Declare java-headless >= 1:11, which and chkconfig. The deb Depends listed only the full javaNN-runtime virtual packages, so a server with only openjdk-NN-jre-headless (the common server setup) did not satisfy them and apt pulled a second JRE; the list also stopped at Java 21. Add the javaNN-runtime-headless alternatives and Java 25. --- opendj-packages/opendj-deb/resources/control/control | 2 +- opendj-packages/opendj-rpm/pom.xml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/opendj-packages/opendj-deb/resources/control/control b/opendj-packages/opendj-deb/resources/control/control index 4e372a188c..16b1c77011 100644 --- a/opendj-packages/opendj-deb/resources/control/control +++ b/opendj-packages/opendj-deb/resources/control/control @@ -3,7 +3,7 @@ Version: [[parsedVersion.majorVersion]].[[parsedVersion.minorVersion]].[[parsedV Section: misc Priority: optional Architecture: all -Depends: default-jre-headless | default-jre | java11-runtime | java17-runtime | java21-runtime +Depends: default-jre-headless | default-jre | java25-runtime-headless | java25-runtime | java21-runtime-headless | java21-runtime | java17-runtime-headless | java17-runtime | java11-runtime-headless | java11-runtime Homepage: [[deb.doc.homepage.url]] Maintainer: [[deb.maintainer]] Description: [[deb.product.name]] diff --git a/opendj-packages/opendj-rpm/pom.xml b/opendj-packages/opendj-rpm/pom.xml index 213e8b7f71..a779321a63 100644 --- a/opendj-packages/opendj-rpm/pom.xml +++ b/opendj-packages/opendj-rpm/pom.xml @@ -13,6 +13,7 @@ information: "Portions Copyright [year] [name of copyright owner]". Copyright 2015-2016 ForgeRock AS. + Portions Copyright 2026 3A Systems, LLC --> 4.0.0 @@ -151,6 +152,14 @@ ${doc.homepage.url} noarch linux + + + java-headless >= 1:11 + + which + + chkconfig + ${rpm.description.header} OpenDJ is an LDAPv3 compliant directory service, developed for the Java From 0eca70a4aaa62adc88a263b5021e9351ab9c2b34 Mon Sep 17 00:00:00 2001 From: Valera V Harseko Date: Sat, 4 Jul 2026 09:48:30 +0300 Subject: [PATCH 2/2] rpm: also require initscripts The shipped /etc/init.d/opendj sources /etc/init.d/functions whenever /etc/redhat-release exists, and that file is provided by the optional initscripts package - on minimal RHEL-family systems the service script aborted with "No such file or directory" (reproduced in CI against the released 5.1.1 rpm). --- opendj-packages/opendj-rpm/pom.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opendj-packages/opendj-rpm/pom.xml b/opendj-packages/opendj-rpm/pom.xml index a779321a63..5143423699 100644 --- a/opendj-packages/opendj-rpm/pom.xml +++ b/opendj-packages/opendj-rpm/pom.xml @@ -159,6 +159,8 @@ which chkconfig + + initscripts ${rpm.description.header}