@@ -111,9 +111,10 @@ function build_zstd {
111111function build_netcdf {
112112 if [ -e netcdf-stamp ]; then return ; fi
113113 # $fetch_unpack https://downloads.unidata.ucar.edu/netcdf-c/${NETCDF_VERSION}/netcdf-c-${NETCDF_VERSION}.tar.gz
114- git clone https://github.com/DennisHeimbigner/netcdf-c netcdf-c-${NETCDF_VERSION}
114+ # this has fix for setting CURL path to find SSL certificates
115+ git clone https://github.com/Unidata/netcdf-c netcdf-c-${NETCDF_VERSION}
115116 cd netcdf-c-${NETCDF_VERSION}
116- git checkout verifyhost.dmh
117+ git checkout 43b03a4da72dfaaa004adb1a288111c06eaa60ae
117118 autoreconf -i
118119 cd ..
119120 if [ -n " $IS_MACOS " ]; then
@@ -281,16 +282,7 @@ function run_tests {
281282 cp ../netcdf4-python/test/* .
282283 python run_all.py
283284 # add test for netcdf4-python issue #1246 (opendap with ssl)
284- export CURLOPT_VERBOSE=1
285+ # export CURLOPT_VERBOSE=1
285286 URL=' https://icdc.cen.uni-hamburg.de/thredds/dodsC/ftpthredds/hamtide/m2.hamtide11a.nc'
286- # if [ -z "$IS_MACOS" ]; then # only needed for Linux
287- # # these should work, but don't
288- # #echo "HTTP.SSL.CAINFO=/etc/ssl/certs/ca-certificates.crt" > $HOME/.ncrc
289- # #export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
290- # #echo "cacert=/etc/ssl/certs/ca-certificates.crt" > $HOME/.curlrc
291- # # this works
292- # mkdir -p /etc/pki/tls/certs
293- # ln -s /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
294- # fi
295287 python -c " from netCDF4 import Dataset; nc=Dataset(\" ${URL} \" ); print(nc)"
296288}
0 commit comments