Commit Graph

9284 Commits

Author SHA1 Message Date
DWesl
c805b02143 TST: Mark tst_filter.sh XFAIL on MinGW
Attempting to add a filter to a netCDF file using `nccopy` results in
a file without `_Filter` attribute set.  I suspect this is a problem
with HDF5, but I don't remember why and never got around to testing
that.  The rest of the plugin tests pass, so I'm telling the test
runner to expect this one test to fail and see if there are other
failures.
2022-10-12 12:58:01 -04:00
DWesl
5c9722f5bf TST: Add code for MinGW to findplugin.sh. 2022-10-12 12:55:37 -04:00
DWesl
1ef000cae1 CI, DBG: Upload MinGW test logs on failure. 2022-10-12 12:55:37 -04:00
DWesl
f000e15cb5 BLD: Try fixing the export-symbols problem on MinGW
It's not exporting symbols at the moment, and I'd prefer to avoid -Wl,--export-all-symbols.
2022-10-12 12:55:35 -04:00
DWesl
927829e267 DEV, TST: Move test plugins to check_LTLIBRARIES instead of tmp_LTLIBRARIES.
Don't install test plugins; don't install any plugins if not
requested.

DEV: Remove plugins installed to ALTPLUGINDIR.

These get put in the build tree if ENABLE_PLUGIN_DIR is not true.
I want to remove these first, then look into skipping the plugins
directory if plugins are disabled.

DEV: don't install plugins if there's no install dir

Still build them, since they might be needed for tests, but don't mark them for install.

BLD, FIX: Add -rpath to noinst plugin links.

Since I stopped installing the plugins, I need to manually add `-rpath` to their link line so `libtool` actually bothers linking them.
2022-10-12 11:05:06 -04:00
DWesl
0eed60a295 BLD: Get netCDF4 build working on Windows.
Most changes are to get plugins working.
libdispatchdreg.c went in in unidata/netcdf-c#2460,
after I'd done it here.

Summary of individual changes below.

BLD: Remove declspec(dllexport); in dreg.c.

By removing the explicit handling, the automatic handling
(equivalent to --export-all-symbols with recent GNU tools)
will be enabled again, so the generated library will have
more than one function exported.

BLD: Link plugins against libnetcdf on Cygwin.

BLD: Add AM_LDFLAGS to plugin _LDFLAGS to pass -no-undefined.

BLD: Link ncz*filters plugins against libnetcdf.

BLD: Add AM_LDFLAGS to test plugin _LDFLAGS.

Also move rpath from AM_LDFLAGS to test plugin _LDFLAGS.

TST: Don't run nczarr_test/run_specific_filters.sh on Cygwin.

It takes over half an hour to complete, where the others take a minute or less.

TST: Try to find the hanging Cygwin test.
2022-10-12 10:56:17 -04:00
DWesl
086eed0e39 CI, TST: Check that test plugins don't get installed with DESTDIR
This caused problems for packagers (unidata/netcdf-c#2431)
2022-10-12 10:54:40 -04:00
DWesl
a69308e5b7 CI: Add Cygwin CI run. 2022-10-12 10:54:38 -04:00
DWesl
844480aa37 DEV: Add autools-generated files to .gitignore.
They weren't in git; I'm assuming that's on purpose.
2022-10-12 10:54:31 -04:00
Ward Fisher
8f1d1034fb Further editing. 2022-10-11 16:17:29 -06:00
Ward Fisher
d28922a2f5 Continuing to flesh out the quick-start guide. 2022-10-11 11:15:06 -06:00
Ward Fisher
1bbaa66f32
Merge pull request #2527 from DennisHeimbigner/versionfix.dmh
Move construction of VERSION file to end of the build
2022-10-11 10:00:33 -06:00
Dennis Heimbigner
52a4ecad60 Move construction of VERSION file to end of the build
re: https://github.com/Unidata/netcdf-c/issues/2521

Charlie Zender has discovered that the netcdf created file VERSION
conflicts with the C++ version file on OSX case-insensitive file systems,
and maybe other case-insensitvie file systems.

Note:
1. Cmake does not create the VERSION file
2. The VERSION file is not installed
3. It turns out that the VERSION file is not required by the autoconf build.

It is possible that clients or package build system (e.g apt or brew)
might use the VERSION file, so we cannot delete it altogether.

So as a fix, we move the creation of the VERSION file to after the
build is complete by inserting a all-local hook into netcdf-c/Makefile.am.

# Misc. other changes
1. Suppressed warning by making use of the systeminfo command contingent on the platform being Windows.
2022-10-09 19:32:20 -06:00
Ward Fisher
1ba435edd8 Working on filter quickstart document. 2022-10-06 15:34:08 -06:00
Ward Fisher
4eb601dbac Roughed in initial quickstart 2022-10-05 15:28:50 -06:00
Ward Fisher
a0184d7678 Working towards writing the quick start for plugins and integrating it into doxygen. 2022-10-05 13:31:49 -06:00
Dennis Heimbigner
0f198c6a72 Merge remote-tracking branch 'Unidata/main' 2022-10-04 11:06:20 -06:00
Ward Fisher
62f39e2eb3 Updated release notes. 2022-10-03 17:49:19 -06:00
Ward Fisher
6754be1223 Add blank filter quickstart guide file. 2022-10-03 15:40:51 -06:00
Ward Fisher
632fef4a14
Merge pull request #2520 from WardF/fix-ncdump-prereq.wif
Fix prereqs in ncdump/tst_nccopy4 in order to avoid race conditions.
2022-09-30 23:56:53 -06:00
Ward Fisher
9696f2656b
Merge pull request #2519 from WardF/gh2478.wif
Update plugins/Makefile.am
2022-09-30 13:23:22 -06:00
Ward Fisher
4b815432e3 Add prepreqs to ncdump/tst_nccopy4, revising some race condition related errors. 2022-09-30 13:21:24 -06:00
Ward Fisher
b26348c21c Add LDFLAGS for two plugins, nczstdfilters and nczhdf5filters, in support of https://github.com/Unidata/netcdf-c/issues/2478 2022-09-30 12:34:33 -06:00
Ward Fisher
052e7e8840
Merge pull request #2518 from WardF/fix_nccopy_dependency.wif
Fix some dependencies in tst_nccopy3
2022-09-28 12:15:49 -06:00
Ward Fisher
6befdad33a Added additional dependencies. 2022-09-28 11:32:57 -06:00
Ward Fisher
96b285922b Added a dependency to tst_nans to nccopy4 2022-09-28 10:47:40 -06:00
Ward Fisher
c73967b0c2 Correct nccopy4 dependency on tst_fillbug. 2022-09-28 10:38:35 -06:00
Ward Fisher
4a00921357
Merge pull request #2517 from gsjaardema/patch-55
For loop initial declarations are only allowed in C99 mode
2022-09-26 14:44:41 -06:00
Greg Sjaardema
90ed6b8aa0
For loop initial declarations are only allowed in C99 mode
I get an error about "for loop initial declarations are only allowed in C99 mode" with the current code.  Not sure why it hasn't shown up before.  I am configuring with `BUILD_SHARED_LIBS=NO ENABLE_PLUGINS=NO ENABLE_MULTIFILTERS=NO ENABLE_NCZARR_FILTERS=NO` when the error shows up using gcc-7.2.0.
2022-09-26 13:04:10 -06:00
Ward Fisher
94bac62446
Merge pull request #2513 from WardF/nc-config-fix.wif
Small fix in nc-config.in
2022-09-22 14:04:16 -06:00
Ward Fisher
f396913e1e Corrected an error. 2022-09-22 13:29:41 -06:00
Ward Fisher
d0208901bb Updated test logic in nc-config.in file. 2022-09-22 13:09:00 -06:00
Dennis Heimbigner
f8e80a078d Merge remote-tracking branch 'Unidata/main' 2022-09-22 11:00:25 -06:00
Ward Fisher
f28d0e2ef7
Merge pull request #2512 from WardF/meta_h_change.wif
Fix inconsistency in netcdf_meta.h
2022-09-20 16:15:15 -06:00
Ward Fisher
59bfd82f0e Updated release notes. 2022-09-20 15:27:32 -06:00
Ward Fisher
32b53c9483 Update cmakelists.txt in support of https://github.com/Unidata/netcdf-c/issues/2511 2022-09-20 15:24:33 -06:00
Ward Fisher
ec7cc936fa Adding NC_HAS_BLOSC and NC_HAS_BZ2 to netcdf_meta.h in support of https://github.com/Unidata/netcdf-c/issues/2511 2022-09-20 15:11:23 -06:00
Ward Fisher
79a43be7c0 Merge remote-tracking branch 'upstream/main' 2022-09-20 14:53:17 -06:00
Ward Fisher
7fec75df6b
Merge pull request #2508 from DennisHeimbigner/builtsrc.dmh
Cleanup built test sources in nczarr_test
2022-09-20 14:52:00 -06:00
Dennis Heimbigner
70dd39d77d Merge remote-tracking branch 'Unidata/main' 2022-09-20 14:36:33 -06:00
Dennis Heimbigner
0c883b26e9 restore 2022-09-20 14:35:27 -06:00
Dennis Heimbigner
ff4f1621f5 Merge branch 'master' of https://github.com/DennisHeimbigner/netcdf-c 2022-09-20 14:24:07 -06:00
Ward Fisher
6665dab949
Merge pull request #2509 from WardF/plugin-ncconfig.wif
Add new options to nc-config
2022-09-20 09:27:28 -06:00
Ward Fisher
2ab4d27a99 Updated release notes. 2022-09-20 09:05:05 -06:00
Ward Fisher
320161f2e6 Updated release notes. 2022-09-20 09:04:03 -06:00
Ward Fisher
92c489fbb5 Add various newer options to nc-config 2022-09-19 15:56:16 -06:00
Ward Fisher
3649364217 Added plugin directory to nc-config 2022-09-19 15:21:27 -06:00
Ward Fisher
7e62782daf Adding additional flags to nc-config to indicate presence of newer functionality, and plugin directory location. 2022-09-19 15:02:01 -06:00
Dennis Heimbigner
46ed3a1da7 Cleanup built test sources in nczarr_test
re: https://github.com/conda-forge/libnetcdf-feedstock/pull/140

Some test are BUILTSOURCE in nczarr_test. But apparently
I did not do it correctly. SO try to cleanup their construction.
2022-09-16 18:58:36 -06:00
Dennis Heimbigner
600885cb34 update file permission 2022-09-16 18:35:08 -06:00