Skip to content

Commit

Permalink
fix ftp.unidata refs
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Jun 6, 2024
1 parent fa99463 commit 1b89f7a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ source:
- patches/do_not_use_16_processes_in_tests.patch # [ppc64le]
- patches/0001-Fix-issue-2674.patch
- patches/0001-Switch-custom-Bzip2-cmake-module-to-standard.patch
# removeme once 4.9.3 is released
- patches/update_ftp_refs.patch

build:
number: {{ build }}
Expand Down
24 changes: 24 additions & 0 deletions recipe/patches/update_ftp_refs.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
diff -ur netcdf-c-4.9.2.orig/hdf4_test/run_get_hdf4_files.sh netcdf-c-4.9.2/hdf4_test/run_get_hdf4_files.sh
--- netcdf-c-4.9.2.orig/hdf4_test/run_get_hdf4_files.sh 2023-03-14 15:34:25.000000000 -0500
+++ netcdf-c-4.9.2/hdf4_test/run_get_hdf4_files.sh 2024-06-05 09:42:23.957332835 -0500
@@ -14,7 +14,7 @@

# Get a file from the ftp site; retry several times
getfile() {
- FTPFILE="ftp://ftp.unidata.ucar.edu/pub/netcdf/sample_data/hdf4/$1.gz"
+ FTPFILE="https://resources.unidata.ucar.edu/netcdf/sample_data/hdf4/$1.gz"

for try in 1 2 3 4 ; do # try 4 times

diff -ur netcdf-c-4.9.2.orig/nc_perf/run_knmi_bm.sh netcdf-c-4.9.2/nc_perf/run_knmi_bm.sh
--- netcdf-c-4.9.2.orig/nc_perf/run_knmi_bm.sh 2023-03-14 15:34:25.000000000 -0500
+++ netcdf-c-4.9.2/nc_perf/run_knmi_bm.sh 2024-06-05 09:42:51.909632837 -0500
@@ -15,7 +15,7 @@
for f1 in $file_list
do
if ! test -f $f1; then
- wget ftp://ftp.unidata.ucar.edu/pub/netcdf/sample_data/$f1.gz
+ wget https://resources.unidata.ucar.edu//netcdf/sample_data/$f1.gz
gunzip $f1.gz
fi
done

0 comments on commit 1b89f7a

Please sign in to comment.