diff --git a/packaging/el10 b/packaging/el10 new file mode 120000 index 00000000000..4dad90d45e0 --- /dev/null +++ b/packaging/el10 @@ -0,0 +1 @@ +el8 \ No newline at end of file diff --git a/packaging/el8/cloud.spec b/packaging/el8/cloud.spec index 9c2f8d29bed..7e97957473c 100644 --- a/packaging/el8/cloud.spec +++ b/packaging/el8/cloud.spec @@ -17,7 +17,7 @@ %define __os_install_post %{nil} %global debug_package %{nil} -%global __requires_exclude libc\\.so\\..* +%global __requires_exclude libc\\.so\\..*|libc\\.so\\.6\\(GLIBC_.*\\) %define _binaries_in_noarch_packages_terminate_build 0 # DISABLE the post-percentinstall java repacking and line number stripping @@ -39,7 +39,7 @@ Source0: %{name}-%{_maventag}.tgz BuildRoot: %{_tmppath}/%{name}-%{_maventag}-%{release}-build BuildArch: noarch -BuildRequires: (java-11-openjdk-devel or java-17-openjdk-devel) +BuildRequires: (java-11-openjdk-devel or java-17-openjdk-devel or java-21-openjdk-devel) #BuildRequires: ws-commons-util BuildRequires: jpackage-utils BuildRequires: gcc @@ -55,7 +55,7 @@ intelligent IaaS cloud implementation. %package management Summary: CloudStack management server UI -Requires: java-17-openjdk +Requires: (java-17-openjdk or java-21-openjdk) Requires: (tzdata-java or timezone-java) Requires: python3 Requires: bash @@ -66,12 +66,12 @@ Requires: tar Requires: bzip2 Requires: gzip Requires: unzip -Requires: /sbin/mount.nfs +Requires: (/sbin/mount.nfs or /usr/sbin/mount.nfs) Requires: (openssh-clients or openssh) Requires: (nfs-utils or nfs-client) Requires: iproute Requires: wget -Requires: (mysql or mariadb) +Requires: (mysql or mariadb or mysql8.4) Requires: sudo Requires: /sbin/service Requires: /sbin/chkconfig @@ -96,12 +96,12 @@ Requires: python3 Group: System Environment/Libraries %description common The Apache CloudStack files shared between agent and management server -%global __requires_exclude ^(libuuid\\.so\\.1|/usr/bin/python)$ +%global __requires_exclude libc\\.so\\..*|libc\\.so\\.6\\(GLIBC_.*\\)|^(libuuid\\.so\\.1|/usr/bin/python)$ %package agent Summary: CloudStack Agent for KVM hypervisors Requires: (openssh-clients or openssh) -Requires: java-17-openjdk +Requires: (java-17-openjdk or java-21-openjdk) Requires: (tzdata-java or timezone-java) Requires: %{name}-common = %{_ver} Requires: libvirt @@ -142,7 +142,7 @@ The CloudStack baremetal agent %package usage Summary: CloudStack Usage calculation server -Requires: java-17-openjdk +Requires: (java-17-openjdk or java-21-openjdk) Requires: (tzdata-java or timezone-java) Group: System Environment/Libraries %description usage diff --git a/scripts/installer/pre-check.sh b/scripts/installer/pre-check.sh index ce8772ed606..44c1e07a068 100755 --- a/scripts/installer/pre-check.sh +++ b/scripts/installer/pre-check.sh @@ -28,8 +28,8 @@ if [ -z $JAVA_MAJOR_VERSION ];then exit 0 fi -if [ "$JAVA_MAJOR_VERSION" != "17" ] && [ "$JAVA_MAJOR_VERSION" != "11" ];then - echo "ERROR: JAVA $JAVA_MAJOR_VERSION is not supported. Currently only JAVA 17 and JAVA 11 are supported." +if [ "$JAVA_MAJOR_VERSION" != "21" ] && [ "$JAVA_MAJOR_VERSION" != "17" ] && [ "$JAVA_MAJOR_VERSION" != "11" ];then + echo "ERROR: JAVA $JAVA_MAJOR_VERSION is not supported. Currently only JAVA versions 11, 17 and 21 are supported." exit 1 fi