diff --git a/storage/innobase/xtrabackup/utils/percona-xtrabackup-8.0_builder.sh b/storage/innobase/xtrabackup/utils/percona-xtrabackup-8.0_builder.sh index 8f7917137a85..2cf2fcf8fe53 100644 --- a/storage/innobase/xtrabackup/utils/percona-xtrabackup-8.0_builder.sh +++ b/storage/innobase/xtrabackup/utils/percona-xtrabackup-8.0_builder.sh @@ -190,9 +190,9 @@ get_sources(){ } get_system(){ - if [ -f /etc/redhat-release ]; then + if [ -f /etc/redhat-release ] || [ -f /etc/amazon-linux-release ]; then GLIBC_VER_TMP="$(rpm glibc -qa --qf %{VERSION})" - export RHEL=$(rpm --eval %rhel) + export RHEL=$(rpm --eval "%{?rhel}%{?amzn}") export ARCH=$(echo $(uname -m) | sed -e 's:i686:i386:g') export OS_NAME="el$RHEL" export OS="rpm" @@ -250,12 +250,12 @@ install_deps() { yum -y install epel-release fi - if [ ${RHEL} = 8 -o ${RHEL} = 9 ]; then + if [[ "${RHEL}" = "8" || "${RHEL}" = "9" || "${RHEL}" = "2023" ]]; then PKGLIST+=" binutils-devel python3-pip python3-setuptools" PKGLIST+=" libcurl-devel cmake libaio-devel zlib-devel libev-devel bison make gcc" PKGLIST+=" rpm-build libgcrypt-devel ncurses-devel readline-devel openssl-devel gcc-c++" PKGLIST+=" vim-common rpmlint patchelf python3-wheel libudev-devel" - if [ $RHEL = 9 ]; then + if [[ "${RHEL}" = "9" || "${RHEL}" = "2023" ]]; then PKGLIST+=" rsync procps-ng-devel python3-sphinx" else if [ x"$ARCH" = "xx86_64" ]; then