This is an automated email from the ASF dual-hosted git repository.

mingliang 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 12eb8f6f5a [VL] Add mirror for ftp.gnu.org (#9760)
12eb8f6f5a is described below

commit 12eb8f6f5aab74bf74263cf317ae956806151f46
Author: Mingliang Zhu <[email protected]>
AuthorDate: Wed May 28 14:18:28 2025 +0800

    [VL] Add mirror for ftp.gnu.org (#9760)
---
 dev/vcpkg/CONTRIBUTING.md               |  2 +-
 dev/vcpkg/ports/gsasl/portfile.cmake    |  2 +-
 dev/vcpkg/setup-build-depends.sh        | 10 +++++++++-
 tools/gluten-te/centos/centos-7-deps.sh |  7 ++++++-
 4 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/dev/vcpkg/CONTRIBUTING.md b/dev/vcpkg/CONTRIBUTING.md
index 719bc91db0..ed78f53ca9 100644
--- a/dev/vcpkg/CONTRIBUTING.md
+++ b/dev/vcpkg/CONTRIBUTING.md
@@ -161,7 +161,7 @@ vcpkg_from_github(
 
 # Download from source archive
 vcpkg_download_distfile(ARCHIVE
-    URLS "https://ftp.gnu.org/gnu/gsasl/gsasl-2.2.0.tar.gz";
+    URLS "https://ftp.gnu.org/gnu/gsasl/gsasl-2.2.0.tar.gz"; 
"https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/gsasl/gsasl-2.2.0.tar.gz";
     FILENAME "gsasl-2.2.0.tar.gz"
     SHA512 
0ae318a8616fe675e9718a3f04f33731034f9a7ba03d83ccb1a72954ded54ced35dc7c7e173fdcb6fa0f0813f8891c6cbcedf8bf70b37d00b8ec512eb9f07f5f
 )
diff --git a/dev/vcpkg/ports/gsasl/portfile.cmake 
b/dev/vcpkg/ports/gsasl/portfile.cmake
index 36637d29cc..56d451bf9e 100644
--- a/dev/vcpkg/ports/gsasl/portfile.cmake
+++ b/dev/vcpkg/ports/gsasl/portfile.cmake
@@ -1,5 +1,5 @@
 vcpkg_download_distfile(ARCHIVE
-    URLS "https://ftp.gnu.org/gnu/gsasl/gsasl-2.2.0.tar.gz";
+    URLS "https://ftp.gnu.org/gnu/gsasl/gsasl-2.2.0.tar.gz"; 
"https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/gsasl/gsasl-2.2.0.tar.gz";
     FILENAME "gsasl-2.2.0.tar.gz"
     SHA512 
0ae318a8616fe675e9718a3f04f33731034f9a7ba03d83ccb1a72954ded54ced35dc7c7e173fdcb6fa0f0813f8891c6cbcedf8bf70b37d00b8ec512eb9f07f5f
 )
diff --git a/dev/vcpkg/setup-build-depends.sh b/dev/vcpkg/setup-build-depends.sh
index 1fc694da62..4bfb2a2c9d 100755
--- a/dev/vcpkg/setup-build-depends.sh
+++ b/dev/vcpkg/setup-build-depends.sh
@@ -49,6 +49,9 @@ install_gcc11_from_source() {
             cd /tmp
             if [ ! -d $gcc_version ]; then
                 wget 
https://ftp.gnu.org/gnu/gcc/${gcc_version}/${gcc_version}.tar.gz
+                if [ $? -ne 0 ]; then
+                    wget 
https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/gcc/${gcc_version}/${gcc_version}.tar.gz
+                fi
                 tar -xvf ${gcc_version}.tar.gz
             fi
             cd ${gcc_version}
@@ -116,7 +119,12 @@ install_centos_7() {
     installed_automake_version="$(aclocal --version | sed -En "1s/^.* 
([1-9\.]*)$/\1/p")"
     if [ "$(semver "$installed_automake_version")" -lt "$(semver 1.14)" ]; then
         mkdir -p /tmp/automake
-        wget -O - http://ftp.gnu.org/gnu/automake/automake-1.16.5.tar.xz | tar 
-x --xz -C /tmp/automake --strip-components=1
+        AUTOMAKE_URL1="https://ftp.gnu.org/gnu/automake/automake-1.16.5.tar.xz";
+        
AUTOMAKE_URL2="https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/automake/automake-1.16.5.tar.xz";
+        wget -O - "$AUTOMAKE_URL1" | tar -x --xz -C /tmp/automake 
--strip-components=1
+        if [ $? -ne 0 ]; then
+            wget -O - "$AUTOMAKE_URL2" | tar -x --xz -C /tmp/automake 
--strip-components=1
+        fi
         cd /tmp/automake
         ./configure
         make install -j
diff --git a/tools/gluten-te/centos/centos-7-deps.sh 
b/tools/gluten-te/centos/centos-7-deps.sh
index 0a23f2f5ac..4a5f56b643 100755
--- a/tools/gluten-te/centos/centos-7-deps.sh
+++ b/tools/gluten-te/centos/centos-7-deps.sh
@@ -72,7 +72,12 @@ fi
 installed_automake_version="$(aclocal --version | sed -En "1s/^.* 
([1-9\.]*)$/\1/p")"
 if [ "$(semver "$installed_automake_version")" -lt "$(semver 1.14)" ]; then
   mkdir -p /tmp/automake
-  wget -O - http://ftp.gnu.org/gnu/automake/automake-1.16.5.tar.xz | tar -x 
--xz -C /tmp/automake --strip-components=1
+  AUTOMAKE_URL1="https://ftp.gnu.org/gnu/automake/automake-1.16.5.tar.xz";
+  
AUTOMAKE_URL2="https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/automake/automake-1.16.5.tar.xz";
+  wget -O - "$AUTOMAKE_URL1" | tar -x --xz -C /tmp/automake 
--strip-components=1
+  if [ $? -ne 0 ]; then
+    wget -O - "$AUTOMAKE_URL2" | tar -x --xz -C /tmp/automake 
--strip-components=1
+  fi
   cd /tmp/automake
   ./configure
   make install -j


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to