Skip to content

Commit 092fc3b

Browse files
authored
netcdf: 4.9.2 -> 4.9.3 (#380393)
2 parents fc52422 + 81677e6 commit 092fc3b

File tree

4 files changed

+55
-2
lines changed

4 files changed

+55
-2
lines changed

pkgs/applications/science/biology/minc-tools/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ stdenv.mkDerivation rec {
5050
"-DNIFTI_INCLUDE_DIR=${nifticlib}/include/nifti"
5151
];
5252

53+
env.NIX_CFLAGS_COMPILE = "-D_FillValue=NC_FillValue";
54+
5355
postFixup = ''
5456
for prog in minccomplete minchistory mincpik; do
5557
wrapProgram $out/bin/$prog --prefix PERL5LIB : $PERL5LIB
@@ -62,5 +64,6 @@ stdenv.mkDerivation rec {
6264
maintainers = with maintainers; [ bcdarwin ];
6365
platforms = platforms.unix;
6466
license = licenses.free;
67+
broken = stdenv.hostPlatform.isDarwin;
6568
};
6669
}

pkgs/by-name/ne/netcdf/package.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ let
2020
in
2121
stdenv.mkDerivation rec {
2222
pname = "netcdf" + lib.optionalString mpiSupport "-mpi";
23-
version = "4.9.2";
23+
version = "4.9.3";
2424

2525
src = fetchurl {
2626
url = "https://downloads.unidata.ucar.edu/netcdf-c/${version}/netcdf-c-${version}.tar.gz";
27-
hash = "sha256-zxG6u725lj8J9VB54LAZ9tA3H1L44SZKW6jp/asabEg=";
27+
hash = "sha256-pHQUmETmFEVmZz+s8Jf+olPchDw3vAp9PeBH3Irdpd0=";
2828
};
2929

3030
postPatch = ''
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
From b819b3616b96352d23cdf0840df9e6674437948c Mon Sep 17 00:00:00 2001
2+
From: Orion Poplawski <[email protected]>
3+
Date: Mon, 17 Feb 2025 15:17:28 -0700
4+
Subject: [PATCH] Use HAVE_NC_SET_LOG_LEVEL to determine usage of
5+
nc_set_log_level (fixes #161)
6+
7+
---
8+
cxx4/test_filter.cpp | 2 ++
9+
examples/pres_temp_4D_plugin_wr.cpp | 4 ++++
10+
2 files changed, 6 insertions(+)
11+
12+
diff --git a/cxx4/test_filter.cpp b/cxx4/test_filter.cpp
13+
index 879ba71..f442c64 100644
14+
--- a/cxx4/test_filter.cpp
15+
+++ b/cxx4/test_filter.cpp
16+
@@ -30,7 +30,9 @@ int main()
17+
try
18+
{
19+
NcFile test("pres_temp_plugin_4D.nc", NcFile::replace);
20+
+#ifdef HAVE_NC_SET_LOG_LEVEL
21+
nc_set_log_level(5);
22+
+#endif
23+
// Define the dimensions. NetCDF will hand back an ncDim object for
24+
// each.
25+
NcDim latDim = test.addDim(LAT_NAME, NLAT);
26+
diff --git a/examples/pres_temp_4D_plugin_wr.cpp b/examples/pres_temp_4D_plugin_wr.cpp
27+
index 832d2a6..584e8be 100644
28+
--- a/examples/pres_temp_4D_plugin_wr.cpp
29+
+++ b/examples/pres_temp_4D_plugin_wr.cpp
30+
@@ -71,7 +71,9 @@ string LON_UNITS = "degrees_east";
31+
32+
int main()
33+
{
34+
+#ifdef HAVE_NC_SET_LOG_LEVEL
35+
nc_set_log_level(5);
36+
+#endif
37+
// We will write latitude and longitude fields.
38+
float lats[NLAT],lons[NLON];
39+
40+
@@ -103,7 +105,9 @@ int main()
41+
42+
// Create the file.
43+
NcFile test(FILE_NAME, NcFile::replace);
44+
+#ifdef HAVE_NC_SET_LOG_LEVEL
45+
nc_set_log_level(5);
46+
+#endif
47+
// Define the dimensions. NetCDF will hand back an ncDim object for
48+
// each.
49+
NcDim lvlDim = test.addDim(LVL_NAME, NLVL);

pkgs/by-name/ne/netcdfcxx4/package.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ stdenv.mkDerivation rec {
2222
patches = [
2323
# This fix is included upstream, remove with next upgrade
2424
./cmake-h5free.patch
25+
./netcdf.patch
2526
];
2627

2728
preConfigure = ''

0 commit comments

Comments
 (0)