Skip to content

Commit 7841f9d

Browse files
vishesh92dhslove
authored andcommitted
Add support EL10 (apache#11546)
1 parent 5a6baa9 commit 7841f9d

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

packaging/centos7/cloud.spec

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
%define __os_install_post %{nil}
1919
%global debug_package %{nil}
20-
%global __requires_exclude libc\\.so\\..*
20+
%global __requires_exclude libc\\.so\\..*|libc\\.so\\.6\\(GLIBC_.*\\)
2121
%define _binaries_in_noarch_packages_terminate_build 0
2222

2323
# DISABLE the post-percentinstall java repacking and line number stripping
@@ -42,8 +42,8 @@ Source0: %{name}-%{_maventag}.tgz
4242
BuildRoot: %{_tmppath}/%{name}-%{_maventag}-%{release}-build
4343
BuildArch: noarch
4444

45-
BuildRequires: java-11-openjdk-devel
46-
BuildRequires: ws-commons-util
45+
BuildRequires: (java-11-openjdk-devel or java-17-openjdk-devel or java-21-openjdk-devel)
46+
#BuildRequires: ws-commons-util
4747
BuildRequires: jpackage-utils
4848
BuildRequires: gcc
4949
BuildRequires: glibc-devel
@@ -63,9 +63,8 @@ intelligent IaaS cloud implementation.
6363

6464
%package management
6565
Summary: CloudStack management server UI
66-
Requires: java-11-openjdk
67-
Requires: tzdata-java
68-
Requires: python
66+
Requires: (java-17-openjdk or java-21-openjdk)
67+
Requires: (tzdata-java or timezone-java)
6968
Requires: python3
7069
Requires: bash
7170
Requires: gawk
@@ -74,12 +73,12 @@ Requires: file
7473
Requires: bzip2
7574
Requires: gzip
7675
Requires: unzip
77-
Requires: /sbin/mount.nfs
78-
Requires: openssh-clients
79-
Requires: nfs-utils
76+
Requires: (/sbin/mount.nfs or /usr/sbin/mount.nfs)
77+
Requires: (openssh-clients or openssh)
78+
Requires: (nfs-utils or nfs-client)
8079
Requires: iproute
8180
Requires: wget
82-
Requires: mysql
81+
Requires: (mysql or mariadb or mysql8.4)
8382
Requires: sudo
8483
Requires: /sbin/service
8584
Requires: /sbin/chkconfig
@@ -105,12 +104,12 @@ Requires: python3-pip
105104
Group: System Environment/Libraries
106105
%description common
107106
The Apache CloudStack files shared between agent and management server
108-
%global __requires_exclude ^libuuid\\.so\\.1$
107+
%global __requires_exclude libc\\.so\\..*|libc\\.so\\.6\\(GLIBC_.*\\)|^(libuuid\\.so\\.1|/usr/bin/python)$
109108

110109
%package agent
111110
Summary: CloudStack Agent for KVM hypervisors
112111
Requires: (openssh-clients or openssh)
113-
Requires: java-17-openjdk
112+
Requires: (java-17-openjdk or java-21-openjdk)
114113
Requires: (tzdata-java or timezone-java)
115114
Requires: %{name}-common = %{_ver}
116115
Requires: libvirt
@@ -152,7 +151,7 @@ The CloudStack baremetal agent
152151

153152
%package usage
154153
Summary: CloudStack Usage calculation server
155-
Requires: java-17-openjdk
154+
Requires: (java-17-openjdk or java-21-openjdk)
156155
Requires: (tzdata-java or timezone-java)
157156
Group: System Environment/Libraries
158157
%description usage

packaging/el10

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
el8

scripts/installer/pre-check.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ if [ -z $JAVA_MAJOR_VERSION ];then
2828
exit 0
2929
fi
3030

31-
if [ "$JAVA_MAJOR_VERSION" != "17" ] && [ "$JAVA_MAJOR_VERSION" != "11" ];then
32-
echo "ERROR: JAVA $JAVA_MAJOR_VERSION is not supported. Currently only JAVA 17 and JAVA 11 are supported."
31+
if [ "$JAVA_MAJOR_VERSION" != "21" ] && [ "$JAVA_MAJOR_VERSION" != "17" ] && [ "$JAVA_MAJOR_VERSION" != "11" ];then
32+
echo "ERROR: JAVA $JAVA_MAJOR_VERSION is not supported. Currently only JAVA versions 11, 17 and 21 are supported."
3333
exit 1
3434
fi
3535

0 commit comments

Comments
 (0)