From ef36fe4afe1c599e66de27cfae45684f705541f1 Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Wed, 08 Jul 2026 16:09:22 +0000
Subject: [PATCH] Declare the deb/rpm runtime dependencies (java, which, chkconfig) (#677)
---
opendj-packages/opendj-deb/resources/control/control | 2 +-
opendj-packages/opendj-rpm/pom.xml | 11 +++++++++++
2 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/opendj-packages/opendj-deb/resources/control/control b/opendj-packages/opendj-deb/resources/control/control
index 4e372a1..16b1c77 100644
--- a/opendj-packages/opendj-deb/resources/control/control
+++ b/opendj-packages/opendj-deb/resources/control/control
@@ -3,7 +3,7 @@
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 213e8b7..5143423 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
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
@@ -151,6 +152,16 @@
<url>${doc.homepage.url}</url>
<needarch>noarch</needarch>
<targetOS>linux</targetOS>
+ <requires>
+ <!-- The server needs a JRE (11+) at run time. -->
+ <require>java-headless >= 1:11</require>
+ <!-- _script-util.sh locates java via "which java". -->
+ <require>which</require>
+ <!-- postinstall/preuninstall register the service via /sbin/chkconfig. -->
+ <require>chkconfig</require>
+ <!-- /etc/init.d/opendj sources /etc/init.d/functions on RedHat-family. -->
+ <require>initscripts</require>
+ </requires>
<description>
${rpm.description.header}
OpenDJ is an LDAPv3 compliant directory service, developed for the Java
--
Gitblit v1.10.0