Skip to content

Commit

Permalink
Merge branch '8.0' into release-8.0.37
Browse files Browse the repository at this point in the history
  • Loading branch information
adivinho authored Sep 18, 2024
2 parents d29a325 + 4b9c283 commit f1d0876
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
5 changes: 0 additions & 5 deletions build-ps/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,9 @@ override_dh_install:
patchelf --debug --set-rpath $(rpath) debian/percona-xtradb-cluster-server/usr/lib/mysql/plugin/authentication_fido.so
@echo "RULES.$@"

ifeq ($(OS_VERSION), 18.04)
override_dh_strip:
dh_strip --dbg-package=percona-xtradb-cluster-dbg --exclude=authentication_fido.so --exclude=libprotobuf-lite.so*
else
override_dh_strip:
dh_strip --dbg-package=percona-xtradb-cluster-dbg
dh_strip -Xlibprotobuf-lite
endif

override_dh_installinit:
@echo "RULES.$@"
Expand Down
30 changes: 24 additions & 6 deletions build-ps/pxc_builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ install_deps() {
yum install -y perl
yum install -y https://repo.percona.com/yum/percona-release-latest.noarch.rpm
percona-release enable tools testing
percona-release enable pxb-24 testing
if [ "x$RHEL" = "x8" -o "x$RHEL" = "x9" ]; then
yum -y install dnf-plugins-core epel-release
yum config-manager --set-enabled powertools
Expand All @@ -326,12 +327,17 @@ install_deps() {
yum -y install readline-devel rpm-build rsync tar time unzip wget zlib-devel selinux-policy-devel
yum -y install bison boost-devel check-devel cmake libaio-devel libcurl-devel libudev-devel
yum -y install redhat-rpm-config
wget https://downloads.percona.com/downloads/packaging/rpcgen-1.4-2.fc30.x86_64.rpm
wget https://downloads.percona.com/downloads/packaging/gperf-3.1-6.fc29.x86_64.rpm
yum -y install rpcgen-1.4-2.fc30.x86_64.rpm gperf-3.1-6.fc29.x86_64.rpm

if [ x"$ARCH" = "xx86_64" ]; then
wget https://downloads.percona.com/downloads/packaging/rpcgen-1.4-2.fc30.x86_64.rpm
wget https://downloads.percona.com/downloads/packaging/gperf-3.1-6.fc29.x86_64.rpm
yum -y install rpcgen-1.4-2.fc30.x86_64.rpm gperf-3.1-6.fc29.x86_64.rpm
else
yum -y install yum-utils
dnf config-manager --enable ol${RHEL}_codeready_builder
yum -y install gperf rpcgen
fi
if [ "x${RHEL}" = "x9" ]; then
yum install -y https://yum.oracle.com/repo/OracleLinux/OL9/distro/builder/x86_64/getPackage/procps-ng-devel-3.3.17-8.el9.x86_64.rpm
yum install -y https://yum.oracle.com/repo/OracleLinux/OL9/distro/builder/${ARCH}/getPackage/procps-ng-devel-3.3.17-8.el9.${ARCH}.rpm
yum -y install dnf-utils
dnf config-manager --enable ol9_codeready_builder
yum -y install libedit-devel
Expand Down Expand Up @@ -472,7 +478,7 @@ install_deps() {
apt-get -y install doxygen doxygen-gui graphviz rsync libcurl4-openssl-dev
apt-get -y install libcurl4-openssl-dev libre2-dev pkg-config libtirpc-dev libev-dev
apt-get -y install --download-only percona-xtrabackup-24=2.4.29-1.${DIST}
apt-get -y install --download-only percona-xtrabackup-80=8.0.35-30-1.${DIST}
apt-get -y install --download-only percona-xtrabackup-80=8.0.35-31-1.${DIST}
fi
return;
}
Expand Down Expand Up @@ -615,6 +621,7 @@ build_srpm(){
}

build_mecab_lib(){
ARCH=$(echo $(uname -m) | sed -e 's:i686:i386:g')
MECAB_TARBAL="mecab-0.996.tar.gz"
MECAB_LINK="https://downloads.percona.com/downloads/packaging/mecab/${MECAB_TARBAL}"
MECAB_DIR="${WORKDIR}/${MECAB_TARBAL%.tar.gz}"
Expand All @@ -625,6 +632,12 @@ build_mecab_lib(){
mkdir ${MECAB_INSTALL_DIR}
wget ${MECAB_LINK}
tar xf ${MECAB_TARBAL}
if [ x"$ARCH" = "xaarch64" ]; then
git clone git://git.savannah.gnu.org/config.git
unalias cp
cp config/config.guess ${MECAB_DIR}
cp config/config.sub ${MECAB_DIR}
fi
cd ${MECAB_DIR} || exit
./configure --with-pic --prefix=/usr
make
Expand Down Expand Up @@ -906,6 +919,11 @@ build_deb(){
sed -i 's/export CXXFLAGS=/export CXXFLAGS=-Wno-error=nonnull-compare /' debian/rules
fi

if [ ${DEBIAN_VERSION} = "noble" -a ${ARCH} = "aarch64" ]; then
sed -i 's:dh_strip --dbg-package=percona-xtradb-cluster-dbg:mv debian/percona-xtradb-cluster-server/usr/lib/mysql/plugin/authentication_fido.so /tmp\n\tdh_strip --dbg-package=percona-xtradb-cluster-dbg\n\tmv /tmp/authentication_fido.so debian/percona-xtradb-cluster-server/usr/lib/mysql/plugin/authentication_fido.so:' debian/rules
sed -i 's:dh_strip -Xlibprotobuf-lite:dh_strip -Xlibprotobuf-lite --exclude=debian/percona-xtradb-cluster-server/usr/lib/mysql/plugin/authentication_fido.so:' debian/rules
fi

GALERA_REVNO="${GALERA_REVNO}" SCONS_ARGS=' strict_build_flags=0' MAKE_JFLAG=-j4 dpkg-buildpackage -rfakeroot -uc -us -b
#
cd ${WORKSPACE} || exit
Expand Down

0 comments on commit f1d0876

Please sign in to comment.