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 7741f6a
Showing 1 changed file with 42 additions and 18 deletions.
60 changes: 42 additions & 18 deletions storage/innobase/xtrabackup/utils/percona-xtrabackup-8.0_builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ enable_venv(){
source /opt/rh/devtoolset-7/enable
source /opt/rh/rh-python36/enable
export CMAKE_BIN="cmake3"
elif [ "${RHEL}" -eq 8 ]; then
source /opt/rh/gcc-toolset-12/enable
fi
fi
}
Expand All @@ -236,27 +238,39 @@ 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"
PKGLIST+=" rpm-build libgcrypt-devel ncurses-devel readline-devel openssl-devel gcc-c++"
PKGLIST+=" vim-common rpmlint patchelf python3-wheel libudev-devel"
PKGLIST+=" vim-common rpmlint patchelf python3-wheel libudev-devel libuuid-devel"
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 +280,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 ${DEVTOOLSET12_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 7741f6a

Please sign in to comment.