Skip to content

Commit 18b07df

Browse files
author
Jeff Whitaker
committed
build old openssl
1 parent c1c0836 commit 18b07df

File tree

1 file changed

+4
-29
lines changed

1 file changed

+4
-29
lines changed

config.sh

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ export NO_NET=1
77
export MACOSX_DEPLOYMENT_TARGET="10.9"
88
export NETCDF_VERSION="4.7.4"
99
export HDF5_VERSION="1.12.0"
10-
export PERL_VERSION="5.16.0"
10+
# old openssl, since building new version requires perl 5.10.0
11+
export OPENSSL_ROOT=openssl-1.0.2u
12+
export OPENSSL_HASH=ecd0c6ffb493dd06707d38b14bb4d8c2288bb7033735606569d8f90f89669d16
1113

1214
source h5py-wheels/config.sh
1315

1416
function build_libs {
1517
build_hdf5
16-
build_curl2
18+
build_curl
1719
if [ -z "$IS_OSX" ] && [ $MB_ML_VER -eq 1 ]; then
1820
export CFLAGS="-std=gnu99 -Wl,-strip-all"
1921
fi
@@ -29,30 +31,3 @@ function run_tests {
2931
cp ../netcdf4-python/test/* .
3032
python run_all.py
3133
}
32-
33-
function build_curl2 {
34-
if [ -e curl-stamp ]; then return; fi
35-
local flags="--prefix=$BUILD_PREFIX"
36-
if [ -n "$IS_OSX" ]; then
37-
flags="$flags --with-darwinssl"
38-
else # manylinux
39-
flags="$flags --with-ssl"
40-
# Install new Perl because OpenSSL configure scripts require > 5.10.0.
41-
echo "Old Perl version `perl -v`"
42-
curl -L https://install.perlbrew.pl | bash
43-
export PERLBREW_ROOT=/root/perl5/perlbrew
44-
source ${PERLBREW_ROOT}/etc/bashrc
45-
perlbrew install perl-${PERL_VERSION}
46-
perlbrew use perl-${PERL_VERSION}
47-
echo "New Perl version `perl -v`"
48-
build_openssl
49-
fi
50-
fetch_unpack https://curl.haxx.se/download/curl-${CURL_VERSION}.tar.gz
51-
(cd curl-${CURL_VERSION} \
52-
&& if [ -z "$IS_OSX" ]; then \
53-
LIBS=-ldl ./configure $flags; else \
54-
./configure $flags; fi\
55-
&& make -j4 \
56-
&& make install)
57-
touch curl-stamp
58-
}

0 commit comments

Comments
 (0)