From 99f8a21a229e9fd19620de9167982547d92ab73a Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Sun, 9 Feb 2025 18:51:52 -0800 Subject: [PATCH] math/vtk9: Fix build with science/netcdf version 4.9.3 PR: 284680 Reported by: Martin Birgmeier --- ...dParty_exodusII_vtkexodusII_src_ex__put__prop.c | 14 ++++++++++++++ ...exodusII_vtkexodusII_src_ex__put__prop__names.c | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 math/vtk9/files/patch-ThirdParty_exodusII_vtkexodusII_src_ex__put__prop.c create mode 100644 math/vtk9/files/patch-ThirdParty_exodusII_vtkexodusII_src_ex__put__prop__names.c diff --git a/math/vtk9/files/patch-ThirdParty_exodusII_vtkexodusII_src_ex__put__prop.c b/math/vtk9/files/patch-ThirdParty_exodusII_vtkexodusII_src_ex__put__prop.c new file mode 100644 index 000000000000..eb29a277f139 --- /dev/null +++ b/math/vtk9/files/patch-ThirdParty_exodusII_vtkexodusII_src_ex__put__prop.c @@ -0,0 +1,14 @@ +- fix build with science/netcdf 4.9.3 +- see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284680 + +--- ThirdParty/exodusII/vtkexodusII/src/ex_put_prop.c.orig 2025-02-10 02:00:23 UTC ++++ ThirdParty/exodusII/vtkexodusII/src/ex_put_prop.c +@@ -243,7 +243,7 @@ int ex_put_prop(int exoid, ex_entity_type obj_type, ex + vals[0] = 0; /* fill value */ + /* create attribute to cause variable to fill with zeros per routine spec + */ +- if ((status = nc_put_att_longlong(exoid, propid, _FillValue, int_type, 1, vals)) != NC_NOERR) { ++ if ((status = nc_put_att_longlong(exoid, propid, NC_FillValue, int_type, 1, vals)) != NC_NOERR) { + snprintf(errmsg, MAX_ERR_LENGTH, + "ERROR: failed to create property name fill attribute in file id %d", exoid); + ex_err_fn(exoid, __func__, errmsg, status); diff --git a/math/vtk9/files/patch-ThirdParty_exodusII_vtkexodusII_src_ex__put__prop__names.c b/math/vtk9/files/patch-ThirdParty_exodusII_vtkexodusII_src_ex__put__prop__names.c new file mode 100644 index 000000000000..335822e40906 --- /dev/null +++ b/math/vtk9/files/patch-ThirdParty_exodusII_vtkexodusII_src_ex__put__prop__names.c @@ -0,0 +1,14 @@ +- fix build with science/netcdf 4.9.3 +- see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284680 + +--- ThirdParty/exodusII/vtkexodusII/src/ex_put_prop_names.c.orig 2025-02-10 02:01:23 UTC ++++ ThirdParty/exodusII/vtkexodusII/src/ex_put_prop_names.c +@@ -172,7 +172,7 @@ int ex_put_prop_names(int exoid, ex_entity_type obj_ty + + /* create attribute to cause variable to fill with zeros per routine spec + */ +- if ((status = nc_put_att_longlong(exoid, propid, _FillValue, int_type, 1, vals)) != NC_NOERR) { ++ if ((status = nc_put_att_longlong(exoid, propid, NC_FillValue, int_type, 1, vals)) != NC_NOERR) { + snprintf(errmsg, MAX_ERR_LENGTH, + "ERROR: failed to create property name fill attribute in file id %d", exoid); + ex_err_fn(exoid, __func__, errmsg, status);