File tree 3 files changed +10
-15
lines changed 3 files changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ before_install:
28
28
brew tap staticfloat/julia;
29
29
brew rm --force $(brew deps --HEAD julia);
30
30
brew update;
31
- sed -i '' -e "s@https://downloads.sf.net/project/machomebrew/Bottles@http ://cache.e.ip.saba.us/https://downloads.sf.net/project/machomebrew/Bottles@" /usr/local/Library/Homebrew/software_spec.rb;
32
- sed -i '' -e "s@https://homebrew.bintray.com@http ://cache.e.ip.saba.us/https://homebrew.bintray.com@" /usr/local/Library/Homebrew/software_spec.rb;
31
+ sed -i '' -e "s@https://downloads.sf.net/project/machomebrew/Bottles@https ://cache.e.ip.saba.us/https://downloads.sf.net/project/machomebrew/Bottles@" /usr/local/Library/Homebrew/software_spec.rb;
32
+ sed -i '' -e "s@https://homebrew.bintray.com@https ://cache.e.ip.saba.us/https://homebrew.bintray.com@" /usr/local/Library/Homebrew/software_spec.rb;
33
33
brew install -v --only-dependencies --HEAD julia;
34
34
BUILDOPTS="USECLANG=1 LLVM_CONFIG=$(brew --prefix llvm33-julia)/bin/llvm-config-3.3 VERBOSE=1 USE_BLAS64=0 SUITESPARSE_INC=-I$(brew --prefix suite-sparse-julia)/include";
35
35
BUILDOPTS="$BUILDOPTS LIBBLAS=-lopenblas LIBBLASNAME=libopenblas LIBLAPACK=-lopenblas LIBLAPACKNAME=libopenblas";
Original file line number Diff line number Diff line change @@ -1687,7 +1687,7 @@ compile-patchelf: install-patchelf
1687
1687
install-patchelf : $(PATCHELF_TARGET )
1688
1688
1689
1689
patchelf-$(PATCHELF_VER ) .tar.gz :
1690
- $(JLDOWNLOAD ) $@ https ://ia601003.us.archive. org/29/items/julialang/mirror /patchelf-$(PATCHELF_VER ) .tar.gz
1690
+ $(JLDOWNLOAD ) $@ http ://nixos. org/releases/patchelf/patchelf- $( PATCHELF_VER ) /patchelf-$(PATCHELF_VER ) .tar.gz
1691
1691
patchelf-$(PATCHELF_VER ) /configure : patchelf-$(PATCHELF_VER ) .tar.gz
1692
1692
$(JLCHECKSUM ) $<
1693
1693
$(TAR ) zxf $<
Original file line number Diff line number Diff line change 3
3
# usage: jldownload [<output-filename>] <url>
4
4
#
5
5
6
- MIRROR_HOST=http ://d304tytmzqn1fl.cloudfront.net
6
+ CACHE_HOST=https ://cache.e.ip.saba.us
7
7
8
8
WGET=$( which wget 2> /dev/null)
9
9
CURL=$( which curl 2> /dev/null)
26
26
exit 1
27
27
fi
28
28
29
- MIRROR_BASENAME=` basename $1 `
30
- MIRROR_URL=" $MIRROR_HOST /$MIRROR_BASENAME "
29
+ CACHE_URL=" $CACHE_HOST /$2 "
31
30
32
31
if [ -x " $CURL " ] && $CURL -V > /dev/null; then
33
32
GETURL=" $CURL $CURL_OPTS "
41
40
exit 1
42
41
fi
43
42
44
- if [ -z " $JLDOWNLOAD_PREFER_MIRROR " ]; then
45
- $GETURL $URL || $GETURL $MIRROR_URL
46
- else
47
- # Still try downloading from the original URL if the mirror fails.
48
- # User may want to get around a single failure, only to run into a dep
49
- # that we haven't mirrored yet, so better to be safe than sorry and try
50
- # the original URL in that case
51
- $GETURL $MIRROR_URL || $GETURL $URL
52
- fi
43
+ # Try to get from the cache if it is possible. Note that the cache will
44
+ # forward to the original URL if it has not cached this download yet, or
45
+ # if the URL is not cacheable. We fallback to directly querying the
46
+ # uncached URL to protect against cache service downtime
47
+ $GETURL $CACHE_URL || $GETURL $URL
You can’t perform that action at this time.
0 commit comments