git: 141ef0c64111 - main - net/mpich: fix with Slurm-23.11.1

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Mon, 18 Dec 2023 21:27:03 UTC
The branch main has been updated by thierry:

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

commit 141ef0c641119a06a15c13e4ebcece7c9e857f92
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2023-12-18 21:23:19 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2023-12-18 21:26:58 +0000

    net/mpich: fix with Slurm-23.11.1
    
    See <https://github.com/pmodels/mpich/issues/6806>.
    
    Patch from <https://github.com/pmodels/mpich/pull/6820>.
---
 net/mpich/Makefile                                            |  1 +
 ...ra_lib_tools_bootstrap_external_slurm__query__node__list.c | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/net/mpich/Makefile b/net/mpich/Makefile
index 3d9686bd29f0..115f15a2d9fc 100644
--- a/net/mpich/Makefile
+++ b/net/mpich/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	mpich
 PORTVERSION=	4.1.2
+PORTREVISION=	1
 CATEGORIES=	net parallel
 MASTER_SITES=	https://www.mpich.org/static/downloads/${DISTVERSION}/
 
diff --git a/net/mpich/files/patch-src_pm_hydra_lib_tools_bootstrap_external_slurm__query__node__list.c b/net/mpich/files/patch-src_pm_hydra_lib_tools_bootstrap_external_slurm__query__node__list.c
new file mode 100644
index 000000000000..920a91348c9a
--- /dev/null
+++ b/net/mpich/files/patch-src_pm_hydra_lib_tools_bootstrap_external_slurm__query__node__list.c
@@ -0,0 +1,11 @@
+--- src/pm/hydra/lib/tools/bootstrap/external/slurm_query_node_list.c.orig	2023-06-06 14:38:37 UTC
++++ src/pm/hydra/lib/tools/bootstrap/external/slurm_query_node_list.c
+@@ -26,7 +26,7 @@ static HYD_status list_to_nodes(char *str)
+ #if defined(HAVE_SLURM)
+ static HYD_status list_to_nodes(char *str)
+ {
+-    hostlist_t hostlist;
++    hostlist_t *hostlist;
+     char *host;
+     int k = 0;
+     HYD_status status = HYD_SUCCESS;