This is an automated email from the ASF dual-hosted git repository.
yuanzhou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git
The following commit(s) were added to refs/heads/main by this push:
new 6b4e5a806 [GLUTEN-6437][BUILD] Fix vcpkg setup-build-dependens.sh for
centos (#6438)
6b4e5a806 is described below
commit 6b4e5a80685ebb48605473899216212effb37a6e
Author: Wechar Yu <[email protected]>
AuthorDate: Tue Jul 16 20:51:30 2024 +0800
[GLUTEN-6437][BUILD] Fix vcpkg setup-build-dependens.sh for centos (#6438)
---
dev/vcpkg/setup-build-depends.sh | 37 +++++++++++++++++++++++++++++++------
1 file changed, 31 insertions(+), 6 deletions(-)
diff --git a/dev/vcpkg/setup-build-depends.sh b/dev/vcpkg/setup-build-depends.sh
index f8aa2651f..da104b6df 100755
--- a/dev/vcpkg/setup-build-depends.sh
+++ b/dev/vcpkg/setup-build-depends.sh
@@ -20,7 +20,7 @@ install_maven_from_source() {
cd /tmp
wget
https://archive.apache.org/dist/maven/maven-3/$maven_version/binaries/apache-maven-$maven_version-bin.tar.gz
tar -xvf apache-maven-$maven_version-bin.tar.gz
- rm apache-maven-$maven_version-bin.tar.gz
+ rm -f apache-maven-$maven_version-bin.tar.gz
mv apache-maven-$maven_version "${maven_install_dir}"
ln -s "${maven_install_dir}/bin/mvn" /usr/local/bin/mvn
fi
@@ -52,14 +52,31 @@ install_gcc9_from_source() {
install_centos_7() {
export PATH=/usr/local/bin:$PATH
+ sed -i \
+ -e 's/^mirrorlist/#mirrorlist/' \
+ -e 's/^# *baseurl *=/baseurl=/' \
+ -e 's/mirror\.centos\.org/vault.centos.org/' \
+ /etc/yum.repos.d/*.repo
+
yum -y install epel-release centos-release-scl
+ sed -i \
+ -e 's/^mirrorlist/#mirrorlist/' \
+ -e 's/^# *baseurl *=/baseurl=/' \
+ -e 's/mirror\.centos\.org/vault.centos.org/' \
+ /etc/yum.repos.d/*.repo
+
yum -y install \
- wget curl tar zip unzip which \
- cmake3 ninja-build perl-IPC-Cmd autoconf autoconf-archive automake
libtool \
- devtoolset-9 \
+ wget curl tar zip unzip which patch sudo \
+ ninja-build perl-IPC-Cmd autoconf autoconf-archive automake libtool \
+ devtoolset-9 python3 pip dnf \
bison \
java-1.8.0-openjdk java-1.8.0-openjdk-devel
+ pip3 install --upgrade pip
+
+ # Requires cmake >= 3.28.3
+ pip3 install cmake==3.28.3
+
# Requires git >= 2.7.4
if [[ "$(git --version)" != "git version 2."* ]]; then
[ -f /etc/yum.repos.d/ius.repo ] || yum -y install
https://repo.ius.io/ius-release-el7.rpm
@@ -100,13 +117,21 @@ install_centos_7() {
}
install_centos_8() {
+ sed -i \
+ -e 's/^mirrorlist/#mirrorlist/' \
+ -e 's/^# *baseurl *=/baseurl=/' \
+ -e 's/mirror\.centos\.org/vault.centos.org/' \
+ /etc/yum.repos.d/*.repo
+
yum -y install \
- wget curl tar zip unzip git which \
- cmake ninja-build perl-IPC-Cmd autoconf autoconf-archive automake
libtool \
+ wget curl tar zip unzip git which sudo patch \
+ cmake perl-IPC-Cmd autoconf automake libtool \
gcc-toolset-9-gcc gcc-toolset-9-gcc-c++ \
flex bison python3 \
java-1.8.0-openjdk java-1.8.0-openjdk-devel
+ dnf -y --enablerepo=powertools install autoconf-archive ninja-build
+
install_maven_from_source
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]