Skip to content

Commit d4109b2

Browse files
authored
Merge pull request #1 from Unidata/master
Resync with master, 2020 Oct 16
2 parents f9dab7e + 45d2a44 commit d4109b2

File tree

35 files changed

+83
-91
lines changed

35 files changed

+83
-91
lines changed

RELEASE_NOTES.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,11 @@ This file contains a high-level description of this package's evolution. Release
77

88
## 4.8.0 - TBD
99

10+
11+
* [Bug Fix] Fix time zone parser bug. See more information at [Github #1866](https://github.com/Unidata/netcdf-c/pull/1866) for more information.
1012
* [Documentation] Migrated the documents in the NUG/ directory to the dedicated NUG repository found at https://github.com/Unidata/netcdf
11-
* [Bug Fix] Revert the internal filter code to simplify it. From
12-
the user's point of view, the only visible change should be that
13-
(1) the functions that convert text to filter specs have had
14-
their signature reverted and renamed and have been moved to
15-
netcdf_aux.h, and (2) Some filter API functions now return
16-
NC_ENOFILTER when inquiry is made about some filter. Internally,
17-
the dispatch table has been modified to get rid of the complex
18-
structures.
19-
* [Bug Fix] If the HDF5 byte-range Virtual File Driver is available )HDf5 1.10.6 or later) then use
20-
it because it has better performance than the one currently built into the netcdf library.
13+
* [Bug Fix] Revert the internal filter code to simplify it. From the user's point of view, the only visible change should be that (1) the functions that convert text to filter specs have had their signature reverted and renamed and have been moved to netcdf_aux.h, and (2) Some filter API functions now return NC_ENOFILTER when inquiry is made about some filter. Internally, the dispatch table has been modified to get rid of the complex structures.
14+
* [Bug Fix] If the HDF5 byte-range Virtual File Driver is available )HDf5 1.10.6 or later) then use it because it has better performance than the one currently built into the netcdf library.
2115
* [Bug Fix] Fixed byte-range support with cURL > 7.69. See [https://github.com/Unidata/netcdf-c/pull/1798].
2216
* [Enhancement] Added new test for using compression with parallel I/O: nc_test4/tst_h_par_compress.c. See [https://github.com/Unidata/netcdf-c/pull/1784].
2317
* [Bug Fix] Don't return error for extra calls to nc_redef() for netCDF/HDF5 files, unless classic model is in use. See [https://github.com/Unidata/netcdf-c/issues/1779].

dap4_test/dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#include "netcdf.h"
2424
#include "ncbytes.h"
25-
#include "ncwinpath.h"
25+
#include "ncpathmgr.h"
2626

2727
extern void NCD4_dumpbytes(size_t size, const void* data0, int swap);
2828
extern void NCD4_tagdump(size_t size, const void* data0, int swap, const char* tag);

debug/cf

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ FAST=1
1111
#PROF=1
1212
#BENCH=1
1313

14-
#NCZARR=1
15-
#HDF5=1
14+
NCZARR=1
15+
HDF5=1
1616
DAP=1
1717
#S3=1
1818
#S3TEST=1
19-
#SZIP=1
19+
SZIP=1
2020
#HDF4=1
2121
#PNETCDF=1
2222
#PAR4=1
@@ -129,7 +129,7 @@ else
129129
FLAGS="$FLAGS --disable-s3-sdk"
130130
fi
131131
if test "x$S3TEST" != x ; then
132-
FLAGS="$FLAGS --enable-s3-tests"
132+
FLAGS="$FLAGS --enable-nczarr-s3-tests"
133133
export AWSSDK_DIR="${AWSSDK_DIR}"
134134
LDFLAGS="$LDFLAGS $AWSSDK_DIR/bin/aws-cpp-sdk-s3.dll"
135135
CPPFLAGS="$CPPFLAGS -I${AWSSDK_DIR}/include"
@@ -144,6 +144,8 @@ if test "x${BENCH}" = x1 ; then
144144
FLAGS="$FLAGS --enable-benchmarks"
145145
fi
146146

147+
FLAGS="$FLAGS --enable-byterange"
148+
147149
export PATH
148150
export CC
149151
export CPPFLAGS

debug/cf.cmake

Lines changed: 31 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# Visual Studio
22

3-
NCC="c:/tools/hdf5"
3+
NCC="c:/tools/hdf5-1.10.6"
4+
HDF5_DIR="$NCC/cmake/hdf5"
5+
AWSSDK_DIR="c:/tools/aws-cpp-sdk-all"
46

57
# Is netcdf-4 and/or DAP enabled?
68
NCZARR=1
79
HDF5=1
810
DAP=1
9-
S3=1
11+
#S3=1
1012
#S3TEST=1
1113
#CDF5=1
1214
#HDF4=1
@@ -25,26 +27,9 @@ notest|nt) NOTEST=1 ;;
2527
esac
2628
done
2729

28-
if test "x$VS" = x1 ; then
29-
if test "x$2" = xsetup ; then
30-
VSSETUP=1
31-
else
32-
unset VSSETUP
33-
fi
34-
fi
35-
36-
#TESTSERVERS="localhost:8080,remotetest.unidata.ucar.edu"
37-
3830
#export NCPATHDEBUG=1
3931

40-
if test "x$VSSETUP" = x1 ; then
41-
CFG="Debug"
42-
else
43-
CFG="Release"
44-
fi
45-
4632
FLAGS=
47-
4833
FLAGS="$FLAGS -DNC_FIND_SHARED_LIBS=ON"
4934

5035
if test "x$VS" != x -a "x$INSTALL" != x ; then
@@ -55,10 +40,13 @@ mkdir -p /tmp/netcdf
5540

5641
if test "x$NCZARR" != x ; then
5742
FLAGS="$FLAGS -DENABLE_NCZARR=true"
43+
else
44+
FLAGS="$FLAGS -DENABLE_NCZARR=false"
5845
fi
5946

6047
if test "x$DAP" = x ; then
6148
FLAGS="$FLAGS -DENABLE_DAP=false"
49+
#FLAGS="$FLAGS -DENABLE_DAP_REMOTE_TESTS=true"
6250
fi
6351

6452
if test "x$HDF5" = x ; then
@@ -68,7 +56,7 @@ ignore=1
6856
#FLAGS="$FLAGS -DDEFAULT_API_VERSION:STRING=v110"
6957
#FLAGS="$FLAGS -DHDF5_ROOT=c:/tools/hdf5"
7058
#FLAGS="$FLAGS -DHDF5_ROOT_DIR_HINT=c:/tools/hdf5/cmake/hdf5/hdf5-config.cmake"
71-
FLAGS="$FLAGS -DHDF5_DIR=c:/tools/hdf5/cmake/hdf5"
59+
FLAGS="$FLAGS -DHDF5_DIR=$HDF5_DIR"
7260
#hdf5-config.cmake
7361
#FLAGS="-DHDF5_LIBRARIES=${NCC}/lib/hdf5 -DHDF5_HL_LIBRARY=${NCC}/lib/hdf5_hl -DHDF5_INCLUDE_DIR=${NCC}/include"
7462
fi
@@ -89,23 +77,21 @@ else
8977
FLAGS="$FLAGS -DENABLE_S3_SDK=false"
9078
fi
9179
if test "x$S3TEST" != x ; then
92-
FLAGS="$FLAGS -DENABLE_S3_TESTS=true"
80+
FLAGS="$FLAGS -DENABLE_NCZARR_S3_TESTS=true"
81+
FLAGS="$FLAGS -DAWSSDK_DIR=${AWSSDK_DIR}"
9382
fi
9483

9584
# Enables
96-
FLAGS="$FLAGS -DENABLE_DAP_REMOTE_TESTS=true"
9785
FLAGS="$FLAGS -DENABLE_LOGGING=true"
86+
FLAGS="$FLAGS -DENABLE_BYTERANGE=true"
9887
#FLAGS="$FLAGS -DENABLE_DOXYGEN=true -DENABLE_INTERNAL_DOCS=true"
9988
#FLAGS="$FLAGS -DENABLE_LARGE_FILE_TESTS=true"
100-
#FLAGS="$FLAGS -DENABLE_FILTER_TESTING=true"
101-
102-
# Disables
89+
FLAGS="$FLAGS -DENABLE_FILTER_TESTING=true"
10390
FLAGS="$FLAGS -DENABLE_EXAMPLES=false"
104-
FLAGS="$FLAGS -DENABLE_CONVERSION_WARNINGS=false"
91+
#FLAGS="$FLAGS -DENABLE_CONVERSION_WARNINGS=false"
10592
#FLAGS="$FLAGS -DENABLE_TESTS=false"
10693
#FLAGS="$FLAGS -DENABLE_DISKLESS=false"
107-
FLAGS="$FLAGS -DBUILD_UTILITIES=true"
108-
FLAGS="$FLAGS -DENABLE_FILTER_TESTING=false"
94+
#FLAGS="$FLAGS -DBUILD_UTILITIES=false"
10995

11096
FLAGS="$FLAGS -DCURL_NO_CURL_CMAKE=TRUE"
11197

@@ -116,19 +102,31 @@ rm -fr build
116102
mkdir build
117103
cd build
118104

119-
NCLIB=`pwd`
105+
NCWD=`pwd`
120106

121107
if test "x$VS" != x ; then
122108

109+
NCLIB=`cygpath -w ${NCWD}/liblib |tr -d ''`
110+
NCCYGLIB=`cygpath -u ${NCLIB} |tr -d ''`
111+
NCCBIN=`cygpath -u "${NCC}/bin" |tr -d ''`
112+
AWSSDKBIN="/cygdrive/c/tools/aws-cpp-sdk-all/bin"
113+
123114
# Visual Studio
115+
PATH="${NCCBIN}:$PATH:$NCCYGLIB"
116+
if test "x$S3" != x ; then
117+
PATH="$PATH:${AWSSDKBIN}"
118+
fi
119+
export PATH
120+
121+
export LD_LIBRARY_PATH="${NCCBIN}:$LD_LIBRARY_PATH:${AWSSDKBIN}:${NCCYGLIB}"
122+
124123
CFG="Release"
125-
NCLIB="${NCLIB}/liblib"
126-
export PATH="${NCLIB}:${PATH}"
124+
127125
#G=
128126
#TR=--trace
129127
cmake ${TR} "$G" -DCMAKE_BUILD_TYPE=${CFG} $FLAGS ..
130128
if test "x$NOBUILD" = x ; then
131-
cmake ${TR} --build . --config ${CFG}
129+
cmake ${TR} --build . -v --config ${CFG}
132130
#cmake ${TR} --build . --config ${CFG} --target ZERO_CHECK
133131
#cmake ${TR} --build . --config ${CFG} --target ALL_BUILD
134132
if test "x$NOTEST" = x ; then
@@ -137,7 +135,7 @@ fi
137135
fi
138136
else
139137
# GCC
140-
NCLIB="${NCLIB}/build/liblib"
138+
NCLIB="${NCWD}/build/liblib"
141139
#G="-GUnix Makefiles"
142140
#T="--trace-expand"
143141
cmake "${G}" $FLAGS ..

include/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ncuri.h ncutf8.h ncdispatch.h ncdimscale.h netcdf_f.h err_macros.h \
1818
ncbytes.h nchashmap.h ceconstraints.h rnd.h nclog.h ncconfigure.h \
1919
nc4internal.h nctime.h nc3internal.h onstack.h ncrc.h ncauth.h \
2020
ncoffsets.h nctestserver.h nc4dispatch.h nc3dispatch.h ncexternl.h \
21-
ncwinpath.h ncindex.h hdf4dispatch.h hdf5internal.h nc_provenance.h \
21+
ncpathmgr.h ncindex.h hdf4dispatch.h hdf5internal.h nc_provenance.h \
2222
hdf5dispatch.h ncmodel.h isnan.h
2323

2424
if USE_DAP
File renamed without changes.

libdap4/d4read.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See \ref copyright file for more info.
1414
#ifdef HAVE_FCNTL_H
1515
#include <fcntl.h>
1616
#endif
17-
#include "ncwinpath.h"
17+
#include "ncpathmgr.h"
1818

1919
/* Do conversion if this code was compiled via Vis. Studio or Mingw */
2020

libdispatch/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# University Corporation for Atmospheric Research/Unidata.
55

66
# See netcdf-c/COPYRIGHT file for more info.
7-
SET(libdispatch_SOURCES dparallel.c dcopy.c dfile.c ddim.c datt.c dattinq.c dattput.c dattget.c derror.c dvar.c dvarget.c dvarput.c dvarinq.c ddispatch.c nclog.c dstring.c dutf8.c dinternal.c doffsets.c ncuri.c nclist.c ncbytes.c nchashmap.c nctime.c nc.c nclistmgr.c utf8proc.h utf8proc.c dwinpath.c dutil.c drc.c dauth.c dreadonly.c dnotnc4.c dnotnc3.c crc32.c daux.c dinfermodel.c)
7+
SET(libdispatch_SOURCES dparallel.c dcopy.c dfile.c ddim.c datt.c dattinq.c dattput.c dattget.c derror.c dvar.c dvarget.c dvarput.c dvarinq.c ddispatch.c nclog.c dstring.c dutf8.c dinternal.c doffsets.c ncuri.c nclist.c ncbytes.c nchashmap.c nctime.c nc.c nclistmgr.c utf8proc.h utf8proc.c dpathmgr.c dutil.c drc.c dauth.c dreadonly.c dnotnc4.c dnotnc3.c crc32.c daux.c dinfermodel.c)
88

99
# Netcdf-4 only functions. Must be defined even if not used
1010
SET(libdispatch_SOURCES ${libdispatch_SOURCES} dgroup.c dvlen.c dcompound.c dtype.c denum.c dopaque.c dfilter.c)

libdispatch/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ libdispatch_la_SOURCES = dparallel.c dcopy.c dfile.c ddim.c datt.c \
1919
dattinq.c dattput.c dattget.c derror.c dvar.c dvarget.c dvarput.c \
2020
dvarinq.c dinternal.c ddispatch.c dutf8.c nclog.c dstring.c ncuri.c \
2121
nclist.c ncbytes.c nchashmap.c nctime.c nc.c nclistmgr.c dauth.c \
22-
doffsets.c dwinpath.c dutil.c dreadonly.c dnotnc4.c dnotnc3.c crc32.c \
22+
doffsets.c dpathmgr.c dutil.c dreadonly.c dnotnc4.c dnotnc3.c crc32.c \
2323
crc32.h daux.c dinfermodel.c
2424

2525
# Add the utf8 codebase

libdispatch/dauth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ See COPYRIGHT for license information.
1919
#include "ncuri.h"
2020
#include "ncauth.h"
2121
#include "nclog.h"
22-
#include "ncwinpath.h"
22+
#include "ncpathmgr.h"
2323

2424
#ifdef _MSC_VER
2525
#include <windows.h>

0 commit comments

Comments
 (0)