Skip to content

Commit bd32d24

Browse files
committed
Merge branch 'main' into bugfix
2 parents 195a9a9 + 9b9c170 commit bd32d24

26 files changed

+234
-65
lines changed

.github/workflows/run_tests_osx.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
build-deps-osx:
1818

19-
runs-on: macos-13
19+
runs-on: macos-14
2020

2121
strategy:
2222
matrix:
@@ -62,7 +62,7 @@ jobs:
6262
nc-autotools-osx:
6363

6464
needs: [ nc-cmake-tests-oneoff-osx-shared, nc-cmake-tests-oneoff-osx-static, nc-ac-tests-oneoff-osx ]
65-
runs-on: macos-13
65+
runs-on: macos-14
6666

6767
strategy:
6868
matrix:
@@ -125,7 +125,7 @@ jobs:
125125
###
126126
- name: Install autoconf
127127
shell: bash -l {0}
128-
run: brew install automake m4
128+
run: brew install libtool autoconf automake coreutils m4
129129

130130
- name: Run autoconf
131131
shell: bash -l {0}
@@ -175,7 +175,7 @@ jobs:
175175
nc-cmake-osx:
176176

177177
needs: [ nc-cmake-tests-oneoff-osx-shared, nc-cmake-tests-oneoff-osx-static, nc-ac-tests-oneoff-osx ]
178-
runs-on: macos-13
178+
runs-on: macos-14
179179

180180
strategy:
181181
matrix:
@@ -277,7 +277,7 @@ jobs:
277277
nc-ac-tests-oneoff-osx:
278278

279279
needs: build-deps-osx
280-
runs-on: macos-13
280+
runs-on: macos-14
281281

282282
strategy:
283283
matrix:
@@ -316,11 +316,20 @@ jobs:
316316

317317
- name: Install autoconf
318318
shell: bash -l {0}
319-
run: brew install automake
319+
run: |
320+
brew update
321+
echo ""
322+
echo "Checking installed packagesin homebrew"
323+
brew list
324+
echo ""
325+
brew install libtool autoconf automake coreutils m4
320326
321327
- name: Run autoconf
322328
shell: bash -l {0}
323-
run: autoreconf -if
329+
run: |
330+
which autoreconf
331+
ls /opt/homebrew/share/aclocal
332+
autoreconf -if
324333
325334
- name: Configure
326335
shell: bash -l {0}
@@ -358,7 +367,7 @@ jobs:
358367
nc-cmake-tests-oneoff-osx-shared:
359368

360369
needs: build-deps-osx
361-
runs-on: macos-13
370+
runs-on: macos-14
362371

363372
strategy:
364373
matrix:
@@ -432,7 +441,7 @@ jobs:
432441
nc-cmake-tests-oneoff-osx-static:
433442

434443
needs: build-deps-osx
435-
runs-on: macos-13
444+
runs-on: macos-14
436445

437446
strategy:
438447
matrix:

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,7 @@ CHECK_INCLUDE_file("io.h" HAVE_IO_H)
11811181
endif(MSVC)
11821182
CHECK_INCLUDE_file("stdlib.h" HAVE_STDLIB_H)
11831183
CHECK_INCLUDE_file("ctype.h" HAVE_CTYPE_H)
1184-
CHECK_INCLUDE_file("sys/xattr_h" HAVE_SYS_XATTR_H)
1184+
CHECK_INCLUDE_file("sys/xattr.h" HAVE_SYS_XATTR_H)
11851185
CHECK_INCLUDE_file("stdarg.h" HAVE_STDARG_H)
11861186
CHECK_INCLUDE_file("strings.h" HAVE_STRINGS_H)
11871187
CHECK_INCLUDE_file("signal.h" HAVE_SIGNAL_H)

RELEASE_NOTES.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ Release Notes {#RELEASE_NOTES}
55

66
This file contains a high-level description of this package's evolution. Releases are in reverse chronological order (most recent first). Note that, as of netcdf 4.2, the `netcdf-c++` and `netcdf-fortran` libraries have been separated into their own libraries.
77

8-
## 4.9.4 - TBD
8+
## 4.10.0 - TBD
99

10+
* Fix the problems around ncdap_test/test_manyurls.c. See [Github ????](https://github.com/Unidata/netcdf-c/issues/????) for more information.
11+
* Fix bug in ncdump when printing FQNs ([Issue 3184](https://github.com/Unidata/netcdf-c/issues/3184)). See [Github ????](https://github.com/Unidata/netcdf-c/issues/????) for more information.
12+
* Update `macOS` github runners from macos-13 to macos-14, due to deprecation.
13+
* Fix an error compiling netCDF with AWS-S3-SDK support using cmake. See [Github 3155](https://github.com/Unidata/netcdf-c/issues/3155) for more information.
14+
* Add new environmental logging variable for `netCDF4` related logging subsystem, `NC4LOGGING`. If `libnetcdf` is compiled with logging enabled, logs can be enabled at runtime by setting this environmental variable to the desired log level.
1015
* Clean up the S3 API for all non-libnczarr code. This continues the splitting of PR [Github #3068](https://github.com/Unidata/netcdf-c/pull/3068).
1116
See [Github #3090](https://github.com/Unidata/netcdf-c/pull/3090) for more information.
1217
* Step 1 in splitting PR [Github #3068](https://github.com/Unidata/netcdf-c/pull/3068). Update ncjson.[ch] and ncproplist.[ch]. Also fix references to old API. Also fix include/netcdf_ncjson.h and include/netcdf_proplist.h builds. See [Github #3086](https://github.com/Unidata/netcdf-c/pull/3086) for more information.

cmake/dependencies.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ if(NETCDF_ENABLE_S3)
446446
else(AWSSDK_FOUND)
447447
set(NETCDF_ENABLE_S3_AWS OFF CACHE BOOL "S3 AWS" FORCE)
448448
endif(AWSSDK_FOUND)
449-
else(NETCDF_ENABLE_S3_INTERNAL)
449+
else(NETCDF_ENABLE_S3_AWS)
450450
# Find crypto libraries required with testing with the internal s3 api.
451451
#find_library(SSL_LIB NAMES ssl openssl)
452452
find_package(OpenSSL REQUIRED)

config.h.cmake.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ are set when opening a binary file on Windows. */
148148
/* if true, build DAP4 Client */
149149
#cmakedefine NETCDF_ENABLE_DAP4 1
150150

151+
/* if true, do long dap tests */
152+
#cmakedefine NETCDF_ENABLE_DAP_LONG_TESTS 1
153+
151154
/* if true, do remote tests */
152155
#cmakedefine NETCDF_ENABLE_DAP_REMOTE_TESTS 1
153156

configure.ac

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,10 @@ AC_ARG_ENABLE([dap-long-tests],
734734
[enable dap long tests])])
735735
test "x$enable_dap_long_tests" = xyes || enable_dap_long_tests=no
736736
AC_MSG_RESULT([$enable_dap_long_tests])
737+
if test "x$enable_dap_long_tests" = xyes; then
738+
AC_DEFINE([NETCDF_ENABLE_DAP_LONG_TESTS], [1], [if true, execute long dap tests])
739+
fi
740+
737741
if test "x$enable_dap_remote_tests" = "xno" || test "x$enable_external_server_tests" = "xno" ; then
738742
AC_MSG_NOTICE([--disable-dap-remote|external-server-tests => --disable_dap_long_tests])
739743
enable_dap_long_tests=no
@@ -1390,7 +1394,7 @@ AC_MSG_NOTICE([checking types, headers, and functions])
13901394
AC_CHECK_HEADERS([sys/param.h])
13911395
AC_CHECK_HEADERS([libgen.h])
13921396
#AC_CHECK_HEADERS([locale.h])
1393-
AC_CHECK_HEADERS([locale.h stdio.h stdarg.h fcntl.h malloc.h stdlib.h string.h strings.h unistd.h sys/stat.h getopt.h sys/time.h sys/types.h time.h dirent.h stdint.h ctype.h sys/xattr_h])
1397+
AC_CHECK_HEADERS([locale.h stdio.h stdarg.h fcntl.h malloc.h stdlib.h string.h strings.h unistd.h sys/stat.h getopt.h sys/time.h sys/types.h time.h dirent.h stdint.h ctype.h sys/xattr.h])
13941398

13951399
# Do sys/resource.h separately
13961400
#AC_CHECK_HEADERS([sys/resource.h],[havesysresource=1],[havesysresource=0])

docs/building-with-cmake.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ The following packages are required to build netCDF-C using CMake.
2222

2323
* netCDF-C Source Code
2424
* CMake version 2.8.12 or greater.
25+
* m4
2526
* Optional Requirements:
2627
* HDF5 Libraries for netCDF4/HDF5 support.
2728
* libcurl for DAP support.

include/ncrc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and accessing rc files (e.g. .daprc).
1616
#include "ncuri.h"
1717
#include "nclist.h"
1818
#include "ncbytes.h"
19+
#include "ncs3sdk.h"
1920

2021
/* getenv() keys */
2122
#define NCRCENVIGNORE "NCRCENV_IGNORE"

libdispatch/dinfermodel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ isdaoscontainer(const char* path)
16611661
}
16621662
#else /*!HAVE_GETFATTR*/
16631663
/* We just can't test for DAOS container.*/
1664-
stat = 0;
1664+
rc = 0;
16651665
#endif /*HAVE_GETFATTR*/
16661666
#endif /*HAVE_SYS_XATTR_H*/
16671667
}

libdispatch/ds3util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ NC_getdefaults3region(NCURI* uri, const char** regionp)
761761
}
762762
}
763763
if(region == NULL)
764-
region = NC_getglobalstate()->aws.default_region; /* Force use of the Amazon default */
764+
region = (NC_getglobalstate()->aws.default_region ? NC_getglobalstate()->aws.default_region : "us-east-1"); /* Force use of the Amazon default */
765765
#ifdef AWSDEBUG
766766
fprintf(stderr,">>> activeregion = |%s|\n",region);
767767
#endif

0 commit comments

Comments
 (0)