git: dc62791cb719 - main - science/pnetcdf: Update to 1.15.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 11 Jul 2026 12:23:11 UTC
The branch main has been updated by sunpoet:

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

commit dc62791cb7196443192a68fc15c289a041824b6c
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-07-11 11:46:16 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-07-11 12:20:52 +0000

    science/pnetcdf: Update to 1.15.0
    
    - Remove my LOCAL from MASTER_SITES
    - Bump PORTREVISION of dependent ports for shlib change
    
    Changes:        https://github.com/Parallel-NetCDF/PnetCDF/blob/master/RELEASE_NOTES
                    https://github.com/Parallel-NetCDF/Parallel-NetCDF.github.io/tree/master/Release_notes
---
 science/pnetcdf/Makefile                  | 10 +++----
 science/pnetcdf/distinfo                  |  6 ++--
 science/pnetcdf/files/patch-configure     | 12 ++++----
 science/pnetcdf/files/patch-gio-configure | 47 +++++++++++++++++++++++++++++++
 science/pnetcdf/pkg-plist                 |  4 +--
 science/py-pnetcdf/Makefile               |  2 +-
 6 files changed, 64 insertions(+), 17 deletions(-)

diff --git a/science/pnetcdf/Makefile b/science/pnetcdf/Makefile
index a9c8a9fa816d..abf0b9716bf4 100644
--- a/science/pnetcdf/Makefile
+++ b/science/pnetcdf/Makefile
@@ -1,9 +1,7 @@
 PORTNAME=	pnetcdf
-PORTVERSION=	1.14.1
-PORTREVISION=	1
+PORTVERSION=	1.15.0
 CATEGORIES=	science parallel
-MASTER_SITES=	https://parallel-netcdf.github.io/Release/ \
-		LOCAL/sunpoet
+MASTER_SITES=	https://parallel-netcdf.github.io/Release/
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Library providing high-performance I/O
@@ -19,7 +17,9 @@ USES=		fortran gmake libtool mpi:${FLAVOR} perl5
 USE_PERL5=	build
 
 CFLAGS+=	-fPIC
-CONFIGURE_ARGS=	--with-mpi=${MPI_HOME} ac_cv_fc_compiler_nag=no
+CONFIGURE_ARGS=	--enable-gio \
+		--with-mpi=${MPI_HOME} \
+		ac_cv_fc_compiler_nag=no
 # Workaround for GCC 10+ for Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(8)/CHARACTER(*)).
 FCFLAGS+=	-fallow-argument-mismatch
 GNU_CONFIGURE=	yes
diff --git a/science/pnetcdf/distinfo b/science/pnetcdf/distinfo
index 17dd83110f2f..bba427e39c6b 100644
--- a/science/pnetcdf/distinfo
+++ b/science/pnetcdf/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1757120530
-SHA256 (pnetcdf-1.14.1.tar.gz) = 6f0f7221006c211fce9ddd2c008796b8c69dd717b2ad1be0b4027fc328fd3220
-SIZE (pnetcdf-1.14.1.tar.gz) = 2512984
+TIMESTAMP = 1783563980
+SHA256 (pnetcdf-1.15.0.tar.gz) = 39813fe91ec901c7cfca3212731edbb5201029ebf55caeaaaa08d9e33c6bad65
+SIZE (pnetcdf-1.15.0.tar.gz) = 3146725
diff --git a/science/pnetcdf/files/patch-configure b/science/pnetcdf/files/patch-configure
index f64b509f1ddc..adc02403f987 100644
--- a/science/pnetcdf/files/patch-configure
+++ b/science/pnetcdf/files/patch-configure
@@ -1,11 +1,11 @@
---- configure.orig	2025-01-21 18:53:29 UTC
+--- configure.orig	2026-07-01 21:33:15 UTC
 +++ configure
-@@ -40769,7 +40769,7 @@ else
+@@ -45816,7 +45816,7 @@ else
        FSTYPE_PREFIX=
     else
-       # check if name prefix is one of file system types known to ROMIO
--      romio_known_fstypes=(ufs nfs xfs pvfs2 gpfs panfs lustre daos testfs ime quobyte)
-+      romio_known_fstypes=ufs nfs xfs pvfs2 gpfs panfs lustre daos testfs ime quobyte
+       # check if name prefix is one of file system types known to MPI-IO and GIO
+-      known_fstypes=(ufs nfs xfs pvfs2 gpfs panfs lustre daos testfs ime quobyte)
++      known_fstypes=ufs nfs xfs pvfs2 gpfs panfs lustre daos testfs ime quobyte
        known_fstype=
-       for pre in $romio_known_fstypes ; do
+       for pre in $known_fstypes ; do
            if test "$FSTYPE_PREFIX" = $pre ; then
diff --git a/science/pnetcdf/files/patch-gio-configure b/science/pnetcdf/files/patch-gio-configure
new file mode 100644
index 000000000000..ac7864aee5ca
--- /dev/null
+++ b/science/pnetcdf/files/patch-gio-configure
@@ -0,0 +1,47 @@
+--- gio/configure.orig	2026-07-01 21:33:13 UTC
++++ gio/configure
+@@ -16161,7 +16161,7 @@ func_cc_basename ()
+            # For Cray PrgEnv-intel, cc is a wrapper of icc
+            # For Cray PrgEnv-gnu, cc is a wrapper of gcc
+            # For Cray PrgEnv-nvidia, cc is a wrapper of nvc
+-           # func_cc_basename_result=`$cc_temp --version |& head -n 1 | cut -d' ' -f1 | xargs basename`
++           # func_cc_basename_result=`$cc_temp --version 2>&1 | head -n 1 | cut -d' ' -f1 | xargs basename`
+            eval "$cc_temp --version" < /dev/null >& conftest.ver
+            func_cc_basename_result=`head -n1 conftest.ver |cut -d' ' -f1`
+            ${RM} -f conftest.ver
+@@ -16179,7 +16179,7 @@ func_cc_basename ()
+            # For Cray PrgEnv-nvidia, cc is a wrapper of nvc
+            # 'cc --version' may also include error of ld error
+            # Output of 'nvc --version -c' contains a blank line, must skip it.
+-           func_cc_basename_result=`$cc_temp --version -c |& grep -v '^$' | head -n1 | cut -d' ' -f1`
++           func_cc_basename_result=`$cc_temp --version -c 2>&1 | grep -v '^$' | head -n1 | cut -d' ' -f1`
+            if test "x${func_cc_basename_result}" = xnvc ||
+               test "x${func_cc_basename_result}" = xnvc++ ||
+               test "x${func_cc_basename_result}" = xnvfortran ; then
+@@ -16187,14 +16187,14 @@ func_cc_basename ()
+            fi
+ 
+            # For Cray PrgEnv-intel that uses oneAPI, cc/CC is a wrapper of icx/icpx
+-           func_cc_basename_result=`$cc_temp --version -c |& grep -v '^$' | head -n1 | cut -d' ' -f1`
++           func_cc_basename_result=`$cc_temp --version -c 2>&1 | grep -v '^$' | head -n1 | cut -d' ' -f1`
+            if test "x${func_cc_basename_result}" = "xIntel(R)" ; then
+-              compile_cmd=`$cc_temp --version -c |& grep icx`
++              compile_cmd=`$cc_temp --version -c 2>&1 | grep icx`
+               if test "x${compile_cmd}" != x ; then
+                  func_cc_basename_result=icx
+                  return
+               else
+-                 compile_cmd=`$cc_temp --version -c |& grep icpx`
++                 compile_cmd=`$cc_temp --version -c 2>&1 | grep icpx`
+                  if test "x${compile_cmd}" != x ; then
+                     func_cc_basename_result=icpx
+                     return
+@@ -18886,7 +18886,7 @@ else
+       FSTYPE_PREFIX=
+    else
+       # check if name prefix is one of file system types known to GIO
+-      known_fstypes=(ufs nfs xfs pvfs2 gpfs panfs lustre daos testfs ime quobyte)
++      known_fstypes=ufs nfs xfs pvfs2 gpfs panfs lustre daos testfs ime quobyte
+       known_fstype=
+       for pre in $known_fstypes ; do
+           if test "$FSTYPE_PREFIX" = $pre ; then
diff --git a/science/pnetcdf/pkg-plist b/science/pnetcdf/pkg-plist
index 303359f6614a..eab84792feb1 100644
--- a/science/pnetcdf/pkg-plist
+++ b/science/pnetcdf/pkg-plist
@@ -12,8 +12,8 @@ include/pnetcdf.inc
 include/pnetcdf.mod
 lib/libpnetcdf.a
 lib/libpnetcdf.so
-lib/libpnetcdf.so.7
-lib/libpnetcdf.so.7.0.0
+lib/libpnetcdf.so.8
+lib/libpnetcdf.so.8.0.0
 libdata/pkgconfig/pnetcdf.pc
 share/man/man1/cdfdiff.1.gz
 share/man/man1/ncmpidiff.1.gz
diff --git a/science/py-pnetcdf/Makefile b/science/py-pnetcdf/Makefile
index 8459bd6f1f8d..4b4284c57c18 100644
--- a/science/py-pnetcdf/Makefile
+++ b/science/py-pnetcdf/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	pnetcdf
 PORTVERSION=	1.0.0
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	science python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}