Skip to content

Commit 87b5093

Browse files
authored
Merge pull request #2530 from Unidata/v4.9.1-wellspring.wif
Merge subset of v4.9.1 files back into main development branch
2 parents e57e742 + 3c8c8d6 commit 87b5093

16 files changed

Lines changed: 87 additions & 29 deletions

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ set(PACKAGE "netCDF" CACHE STRING "")
3131

3232
SET(NC_VERSION_MAJOR 4)
3333
SET(NC_VERSION_MINOR 9)
34-
SET(NC_VERSION_PATCH 1)
34+
SET(NC_VERSION_PATCH 2)
3535
SET(NC_VERSION_NOTE "-development")
3636
SET(netCDF_VERSION ${NC_VERSION_MAJOR}.${NC_VERSION_MINOR}.${NC_VERSION_PATCH}${NC_VERSION_NOTE})
3737
SET(VERSION ${netCDF_VERSION})

RELEASE_NOTES.md

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

88
## 4.9.1 - T.B.D.
99

10+
### 4.9.1 - Release Candidate 1 - October 20, 2022
11+
12+
#### Known Issues
13+
14+
* A test in the `main` branch of `netcdf-cxx4` is broken by this rc; this will bear further investigation, but not being treated as a roadblock for the release candidate.
15+
* The new document, `netcdf-c/docs/filter_quickstart.md` is in rough-draft form.
16+
17+
#### Changes
18+
19+
* [Enhancement][Documentation] Add Plugins Quick Start Guide. See [GitHub #2524](https://github.com/Unidata/netcdf-c/pull/2524) for more information.
1020
* [Enhancement] Add new entries in `netcdf_meta.h`, `NC_HAS_BLOSC` and `NC_HAS_BZ2`. See [Github #2511](https://github.com/Unidata/netcdf-c/issues/2511) and [Github #2512](https://github.com/Unidata/netcdf-c/issues/2512) for more information.
1121
* [Enhancement] Add new options to `nc-config`: `--has-multifilters`, `--has-stdfilters`, `--has-quantize`, `--plugindir`. See [Github #2509](https://github.com/Unidata/netcdf-c/pull/2509) for more information.
1222
* [Bug Fix] Fix some errors detected in PR 2497. [PR #2497](https://github.com/Unidata/netcdf-c/pull/2497) . See [Github #2503](https://github.com/Unidata/netcdf-c/pull/2503).

configure.ac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
AC_PREREQ([2.59])
1111

1212
# Initialize with name, version, and support email address.
13-
AC_INIT([netCDF],[4.9.1-development],[support-netcdf@unidata.ucar.edu],[netcdf-c])
13+
AC_INIT([netCDF],[4.9.2-development],[support-netcdf@unidata.ucar.edu],[netcdf-c])
1414

1515
##
1616
# Prefer an empty CFLAGS variable instead of the default -g -O2.
@@ -21,15 +21,15 @@ AC_INIT([netCDF],[4.9.1-development],[support-netcdf@unidata.ucar.edu],[netcdf-c
2121

2222
AC_SUBST([NC_VERSION_MAJOR]) NC_VERSION_MAJOR=4
2323
AC_SUBST([NC_VERSION_MINOR]) NC_VERSION_MINOR=9
24-
AC_SUBST([NC_VERSION_PATCH]) NC_VERSION_PATCH=1
24+
AC_SUBST([NC_VERSION_PATCH]) NC_VERSION_PATCH=2
2525
AC_SUBST([NC_VERSION_NOTE]) NC_VERSION_NOTE="-development"
2626

2727
##
2828
# These linker flags specify libtool version info.
2929
# See http://www.gnu.org/software/libtool/manual/libtool.html#Libtool-versioning
3030
# for information regarding incrementing `-version-info`.
3131
# These values should match those in CMakeLists.txt
32-
AC_SUBST([netCDF_SO_VERSION]) netCDF_SO_VERSION=20:0:1
32+
AC_SUBST([netCDF_SO_VERSION]) netCDF_SO_VERSION=21:0:2
3333

3434
#####
3535
# Set some variables used to generate a libnetcdf.settings file,

dap4_test/Makefile.am

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
# Put together AM_CPPFLAGS and AM_LDFLAGS.
77
include $(top_srcdir)/lib_flags.am
8+
LDADD = ${top_builddir}/liblib/libnetcdf.la
89

910
# Un comment to use a more verbose test driver
1011
#SH_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
@@ -15,7 +16,7 @@ include $(top_srcdir)/lib_flags.am
1516
# Note which tests depend on other tests. Necessary for make -j check.
1617
TEST_EXTENSIONS = .sh
1718

18-
LDADD = ${top_builddir}/liblib/libnetcdf.la
19+
1920
AM_CPPFLAGS += -I$(top_srcdir)/liblib
2021
AM_CPPFLAGS += -I$(top_srcdir)/libdap4
2122
AM_CPPFLAGS += -DTOPSRCDIR=${abs_top_srcdir}

dap4_test/d4test_common.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ fi
1717

1818
# Define input paths
1919
WD=`pwd`
20-
cd ${srcdir}/daptestfiles; DAPTESTFILES=`pwd` ; cd ${WD}
21-
cd ${srcdir}/dmrtestfiles; DMRTESTFILES=`pwd` ; cd ${WD}
22-
cd ${srcdir}/cdltestfiles; CDLTESTFILES=`pwd` ; cd ${WD}
23-
cd ${srcdir}/baseline; BASELINE=`pwd` ; cd ${WD}
24-
cd ${srcdir}/baselineraw; BASELINERAW=`pwd` ; cd ${WD}
25-
cd ${srcdir}/baselineremote; BASELINEREM=`pwd` ; cd ${WD}
26-
cd ${srcdir}/baselinehyrax; BASELINEH=`pwd` ; cd ${WD}
27-
cd ${builddir}/baselinethredds; BASELINETH=`pwd` ; cd ${WD}
20+
cd ${top_srcdir}/dap4_test/daptestfiles; DAPTESTFILES=`pwd` ; cd ${WD}
21+
cd ${top_srcdir}/dap4_test/dmrtestfiles; DMRTESTFILES=`pwd` ; cd ${WD}
22+
cd ${top_srcdir}/dap4_test/cdltestfiles; CDLTESTFILES=`pwd` ; cd ${WD}
23+
cd ${top_srcdir}/dap4_test/baseline; BASELINE=`pwd` ; cd ${WD}
24+
cd ${top_srcdir}/dap4_test/baselineraw; BASELINERAW=`pwd` ; cd ${WD}
25+
cd ${top_srcdir}/dap4_test/baselineremote; BASELINEREM=`pwd` ; cd ${WD}
26+
cd ${top_srcdir}/dap4_test/baselinehyrax; BASELINEH=`pwd` ; cd ${WD}
27+
cd ${top_srcdir}/dap4_test/baselinethredds; BASELINETH=`pwd` ; cd ${WD}
2828

2929
setresultdir() {
3030
rm -fr ${builddir}/$1

dap4_test/test_data.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if test "x$srcdir" = x ; then srcdir=`pwd`; fi
55

66
set -e
77

8-
. ${srcdir}/d4test_common.sh
8+
. ${top_srcdir}/dap4_test/d4test_common.sh
99

1010
echo "test_data.sh:"
1111

docs/Doxyfile.developer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = netCDF-C
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = 4.9.1-development
41+
PROJECT_NUMBER = 4.9.2-development
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

docs/Doxyfile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,12 +814,12 @@ INPUT = @abs_top_srcdir@/docs/mainpage.dox \
814814
@abs_top_srcdir@/docs/all-error-codes.md \
815815
@abs_top_srcdir@/docs/inmemory.md \
816816
@abs_top_srcdir@/docs/filters.md \
817+
@abs_top_srcdir@/docs/filter_quickstart.md \
817818
@abs_top_srcdir@/docs/byterange.dox \
818819
@abs_top_srcdir@/docs/nczarr.md \
819820
@abs_top_srcdir@/docs/notes.md \
820821
@abs_top_srcdir@/docs/building-with-cmake.md \
821822
@abs_top_srcdir@/docs/FAQ.md \
822-
@abs_top_srcdir@/docs/known_problems.md \
823823
@abs_top_srcdir@/docs/COPYRIGHT.md \
824824
@abs_top_srcdir@/docs/credits.md \
825825
@abs_top_srcdir@/docs/tutorial.dox \

docs/all-error-codes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ may occur.
7777
# NetCDF-4 Error Codes {#nc4-error-codes}
7878

7979
NetCDF-4 uses all error codes from NetCDF-3 (see section [NetCDF-3 Error
80-
Codes](#NetCDF_002d3-Error-Codes)). The following additional error codes
80+
Codes](#nc3-error-codes)). The following additional error codes
8181
were added for new errors unique to netCDF-4.
8282

8383
~~~~

docs/filter_quickstart.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
NetCDF-4 Filter QuickStart
2+
==============================
3+
4+
\tableofcontents
5+
6+
<!-- double header is needed to workaround doxygen bug -->
7+
8+
NetCDF-4 Filter QuickStart {#nc_filters_quickstart}
9+
==============================
10+
11+
> For full **Filters** documentation, see \ref filters.
12+
13+
**The `libnetcdf.so` library cannot talk to plugin libraries directly. Instead, it requires an "interface" library, which acts as a go-between. The interface libraries are built by the netCDF libraries, when the underlying plugin libraries are detected during configure/build.**
14+
15+
Building and Installing the Interface Libraries {#nc_filters_qs_building}
16+
----------------------------------
17+
18+
When configuring netcdf via either the `configure` script or via `cmake`, you'll need to specify the location to install the interface libraries, as follows:
19+
20+
* configure: `--with-plugin-dir=<absolutely directory>`
21+
* cmake: `-DPLUGIN_INSTALL_DIR=<absolutely directory>`
22+
23+
After compiling and installing `libnetcdf`, the interface libraries for those filters detected will be installed in the user-specified `<absolute directory>`.
24+
25+
26+
Using the Interface Libraries at Run-time {#nc_filters_qs_runtime}
27+
---------------------------------
28+
29+
For historical reasons, `libnetcdf` uses the environmental variable `HDF5_PLUGIN_PATH` to local the interface libraries at run-time.
30+
31+
32+
Example Workflow (blosc) {#nc_filters_qs_workflow_example}
33+
--------------------------------------------------
34+
35+
From scratch, the steps to get this to work are as follows, and assumes `libhdf5` was installed.
36+
37+
1. Install the filter library, and the associate development headers.
38+
2. Configure netCDF with `--enable-plugins` and `--with-plugin-dir=$HOME/netcdf-plugins`
39+
3. Ensure `blosc` is specified in the generated `libnetcdf.settings` file.
40+
4. Run make, make install.
41+
42+
Once built and installed, set the environmental variable `HDF5_PLUGIN_PATH=$HOME/netcdf-plugins`.
43+
44+
The reason this works is because:
45+
46+
1. NetCDF builds the interface library.
47+
2. `ncdump` knows where to find the interface library because `HDF5_PLUGIN_PATH` is set.
48+

0 commit comments

Comments
 (0)