Skip to content

Commit 7450bf6

Browse files
committed
Swap to "old" link for OpenSSL download with Travis
The previous download link only worked for the most recent version. The new form only works for old versions. That will encourage us not to use the latest version, but for tests that's probably not a big deal. We haven't noticed the breakage sooner because the build results are cached.
1 parent d41a0fa commit 7450bf6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

buildscripts/make_dependencies.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ if [ -f ${INSTALL_DIR}/lib/libssl.so ]; then
3030
elif [ "$(uname)" = Darwin ]; then
3131
brew install openssl
3232
else
33-
wget -O - https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz | tar xz -C $DOWNLOAD_DIR
33+
# The version without the patch letter (e.g., 1.0.2 provided 1.0.2d)
34+
VERSION_BASE=${OPENSSL_VERSION%%[a-z]*}
35+
wget -O - https://www.openssl.org/source/old/$VERSION_BASE/openssl-${OPENSSL_VERSION}.tar.gz \
36+
| tar xz -C $DOWNLOAD_DIR
3437
pushd $DOWNLOAD_DIR/openssl-${OPENSSL_VERSION}
3538
./Configure linux-x86_64 shared no-ssl2 no-comp --prefix=${INSTALL_DIR}
3639
make -j$(nproc)

0 commit comments

Comments
 (0)