Skip to content

Commit 2d7dedd

Browse files
Fix Apache Ant download by using original Apache servers.
1 parent 282171c commit 2d7dedd

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

get_deps.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ EOF
7575

7676
source deps/env.sh
7777

78+
# Older Apache releases get cut from the mirrors too aggressively, so
79+
# in order to have a stable build we need to use the original servers.
80+
APACHE_MIRROR="https://archive.apache.org/dist"
81+
7882
if [[ $USE_GASNET -eq 1 ]]; then
7983
if [ -z ${CONDUIT+x} ]; then
8084
echo "CONDUIT is required for GASNet build."
@@ -251,7 +255,7 @@ EOF
251255
tar -zxf jdk-8u131-linux-x64.tar.gz -C "$X10_DIR"
252256
rm jdk-8u131-linux-x64.tar.gz
253257

254-
wget http://mirrors.sonic.net/apache//ant/binaries/apache-ant-1.10.7-bin.tar.gz
258+
wget "$APACHE_MIRROR"/ant/binaries/apache-ant-1.10.7-bin.tar.gz
255259
tar xfz apache-ant-1.10.7-bin.tar.gz -C "$X10_DIR"
256260
rm apache-ant-1.10.7-bin.tar.gz
257261

@@ -332,7 +336,7 @@ EOF
332336
rm jdk-8u131-linux-x64.tar.gz
333337

334338
# Spark 2.3.0
335-
wget https://archive.apache.org/dist/spark/spark-2.3.0/spark-2.3.0-bin-hadoop2.7.tgz #spark-shell doesn't work without hadoop
339+
wget "$APACHE_MIRROR"/spark/spark-2.3.0/spark-2.3.0-bin-hadoop2.7.tgz #spark-shell doesn't work without hadoop
336340
tar -zxf spark-2.3.0-bin-hadoop2.7.tgz -C "$SPARK_DIR" #didn't add to path-put full paths in emtg script
337341
rm spark-2.3.0-bin-hadoop2.7.tgz
338342

@@ -384,7 +388,7 @@ EOF
384388
tar xfz openjdk-10.0.2_linux-x64_bin.tar.gz -C "$SWIFT_DIR"/java --strip-components=1
385389
rm openjdk-10.0.2_linux-x64_bin.tar.gz
386390

387-
wget http://mirrors.sonic.net/apache//ant/binaries/apache-ant-1.10.7-bin.tar.gz
391+
wget "$APACHE_MIRROR"/ant/binaries/apache-ant-1.10.7-bin.tar.gz
388392
mkdir "$SWIFT_DIR"/ant
389393
tar xfz apache-ant-1.10.7-bin.tar.gz -C "$SWIFT_DIR"/ant --strip-components=1
390394
rm apache-ant-1.10.7-bin.tar.gz

0 commit comments

Comments
 (0)