Skip to content

Commit

Permalink
PKG-20 Create arm based packages for PXB
Browse files Browse the repository at this point in the history
  • Loading branch information
surbhat1595 committed Mar 18, 2024
1 parent 26318c3 commit a361057
Showing 1 changed file with 39 additions and 17 deletions.
56 changes: 39 additions & 17 deletions storage/innobase/xtrabackup/utils/percona-xtrabackup-8.0_builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -236,14 +236,19 @@ install_deps() {
then
yum -y install git wget yum-utils curl
yum install -y https://repo.percona.com/yum/percona-release-latest.noarch.rpm
if [ $RHEL = 9 ]; then
yum-config-manager --enable ol9_distro_builder
yum-config-manager --enable ol9_codeready_builder
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
if [ x"$ARCH" = "xx86_64" ]; then
if [ $RHEL = 9 ]; then
yum-config-manager --enable ol9_distro_builder
yum-config-manager --enable ol9_codeready_builder
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
else
add_percona_yum_repo
percona-release enable tools testing
fi
else
add_percona_yum_repo
yum-config-manager --enable ol"${RHEL}"_codeready_builder
yum -y install epel-release
fi
percona-release enable tools testing
if [ ${RHEL} = 8 -o ${RHEL} = 9 ]; then
PKGLIST+=" binutils-devel python3-pip python3-setuptools"
PKGLIST+=" libcurl-devel cmake libaio-devel zlib-devel libev-devel bison make gcc"
Expand All @@ -252,11 +257,18 @@ install_deps() {
if [ $RHEL = 9 ]; then
PKGLIST+=" rsync procps-ng-devel python3-sphinx"
else
yum-config-manager --enable powertools
wget https://jenkins.percona.com/downloads/rpm/procps-ng-devel-3.3.15-6.el8.x86_64.rpm
yum -y install ./procps-ng-devel-3.3.15-6.el8.x86_64.rpm
rm procps-ng-devel-3.3.15-6.el8.x86_64.rpm
PKGLIST+=" libarchive"
if [ x"$ARCH" = "xx86_64" ]; then
yum-config-manager --enable powertools
wget https://jenkins.percona.com/downloads/rpm/procps-ng-devel-3.3.15-6.el8.x86_64.rpm
yum -y install ./procps-ng-devel-3.3.15-6.el8.x86_64.rpm
rm procps-ng-devel-3.3.15-6.el8.x86_64.rpm
PKGLIST+=" libarchive"
else
wget https://download.rockylinux.org/vault/rocky/8.5/Devel/aarch64/os/Packages/p/procps-ng-devel-3.3.15-6.el8.aarch64.rpm
yum -y install ./procps-ng-devel-3.3.15-6.el8.aarch64.rpm
rm procps-ng-devel-3.3.15-6.el8.aarch64.rpm
PKGLIST+=" rsync python3-sphinx libarchive"
fi
fi
until yum -y install ${PKGLIST}; do
echo "waiting"
Expand All @@ -266,12 +278,22 @@ install_deps() {
DEVTOOLSET10_PKGLIST+=" gcc-toolset-10-gcc-c++ gcc-toolset-10-binutils"
DEVTOOLSET10_PKGLIST+=" gcc-toolset-10-valgrind gcc-toolset-10-valgrind-devel gcc-toolset-10-libatomic-devel"
DEVTOOLSET10_PKGLIST+=" gcc-toolset-10-libasan-devel gcc-toolset-10-libubsan-devel gcc-toolset-10-annobin"
yum -y install centos-release-stream
until yum -y install ${DEVTOOLSET10_PKGLIST}; do
echo "waiting"
sleep 1
done
yum -y remove centos-release-stream
DEVTOOLSET12_PKGLIST+=" gcc-toolset-12-gcc-c++ gcc-toolset-12-binutils"
#DEVTOOLSET12_PKGLIST+=" gcc-toolset-12-valgrind gcc-toolset-12-valgrind-devel gcc-toolset-12-libatomic-devel"
DEVTOOLSET12_PKGLIST+=" gcc-toolset-12-libasan-devel gcc-toolset-12-libubsan-devel gcc-toolset-12-annobin-annocheck gcc-toolset-12-annobin-plugin-gcc"
if [ x"$ARCH" = "xx86_64" ]; then
yum -y install centos-release-stream
until yum -y install ${DEVTOOLSET10_PKGLIST}; do
echo "waiting"
sleep 1
done
yum -y remove centos-release-stream
else
until yum -y install ${DEVTOOLSET10_PKGLIST}; do
echo "waiting"
sleep 1
done
fi
fi
else
until yum -y install epel-release centos-release-scl; do
Expand Down

0 comments on commit a361057

Please sign in to comment.