Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Feb 2025 21:33:39 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 9f4a0cfc5a8e - main - science/seacas: Fix build with science/netcdf 4.9.3
Message-ID:  <202502102133.51ALXdd0080969@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9f4a0cfc5a8e658daf86515686cdb088fe3c4207

commit 9f4a0cfc5a8e658daf86515686cdb088fe3c4207
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-02-10 13:59:33 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-02-10 21:33:37 +0000

    science/seacas: Fix build with science/netcdf 4.9.3
    
    Reported by:    fallout
---
 ...tch-packages_seacas_libraries_exodus_src_ex__put__prop.c | 13 +++++++++++++
 ...kages_seacas_libraries_exodus_src_ex__put__prop__names.c | 13 +++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/science/seacas/files/patch-packages_seacas_libraries_exodus_src_ex__put__prop.c b/science/seacas/files/patch-packages_seacas_libraries_exodus_src_ex__put__prop.c
new file mode 100644
index 000000000000..5993012a9378
--- /dev/null
+++ b/science/seacas/files/patch-packages_seacas_libraries_exodus_src_ex__put__prop.c
@@ -0,0 +1,13 @@
+- fix build with science/netcdf 4.9.3
+
+--- packages/seacas/libraries/exodus/src/ex_put_prop.c.orig	2025-02-10 17:08:12 UTC
++++ packages/seacas/libraries/exodus/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/science/seacas/files/patch-packages_seacas_libraries_exodus_src_ex__put__prop__names.c b/science/seacas/files/patch-packages_seacas_libraries_exodus_src_ex__put__prop__names.c
new file mode 100644
index 000000000000..dd3badcc0e07
--- /dev/null
+++ b/science/seacas/files/patch-packages_seacas_libraries_exodus_src_ex__put__prop__names.c
@@ -0,0 +1,13 @@
+- fix build with science/netcdf 4.9.3
+
+--- packages/seacas/libraries/exodus/src/ex_put_prop_names.c.orig	2025-02-10 20:32:48 UTC
++++ packages/seacas/libraries/exodus/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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202502102133.51ALXdd0080969>