Skip to content

Commit

Permalink
Build PXB on Amazon Linux 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
surbhat1595 committed Nov 21, 2024
1 parent 55ec21d commit 4118cd7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4118cd7

Please sign in to comment.