Skip to content

Commit 44271fc

Browse files
Fix random SSL / TLS verification errors on downloading curl.
1 parent 978e711 commit 44271fc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docker/build_scripts/build_utils.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ PYTHON_DOWNLOAD_URL=https://www.python.org/ftp/python
77
# to the ftp mirror:
88
OPENSSL_DOWNLOAD_URL=ftp://ftp.openssl.org/source
99
# Ditto the curl sources
10-
CURL_DOWNLOAD_URL=http://curl.askapache.com/download
10+
CURL_DOWNLOAD_URL=https://github.com/curl/curl/releases/download/curl-7_57_0
1111

1212
GET_PIP_URL=https://bootstrap.pypa.io/get-pip.py
1313

@@ -153,7 +153,11 @@ function build_curl {
153153
local curl_sha256=$2
154154
check_var ${curl_sha256}
155155
check_var ${CURL_DOWNLOAD_URL}
156-
curl -sSLO ${CURL_DOWNLOAD_URL}/${curl_fname}.tar.bz2
156+
# FIXME: Unfortunately, this old version of curl fails on the official curl
157+
# site as well as its mirrors due to random SSL / TLS verification errors.
158+
# Therefore, we skips these checks for now. In any case, we do check the
159+
# hash of the updated curl out-of-band anyway.
160+
curl -kLO ${CURL_DOWNLOAD_URL}/${curl_fname}.tar.bz2
157161
check_sha256sum ${curl_fname}.tar.bz2 ${curl_sha256}
158162
tar -jxf ${curl_fname}.tar.bz2
159163
(cd ${curl_fname} && do_curl_build)

0 commit comments

Comments
 (0)