From 7203e3c522472dbbcd3f080524f2544389f89add Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 5 Dec 2025 10:58:39 +0100 Subject: [PATCH] gnu: ucx: Update to 1.19.0. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/fabric-management.scm (ucx): Update to 1.19.0. * gnu/packages/patches/ucx-tcp-iface-ioctl.patch: Update. Change-Id: I40dafb5173048804cb2368d0c45e71d1ed014482 Signed-off-by: Ludovic Courtès Merges: #4675 --- gnu/packages/fabric-management.scm | 4 ++-- gnu/packages/patches/ucx-tcp-iface-ioctl.patch | 18 ++++-------------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/gnu/packages/fabric-management.scm b/gnu/packages/fabric-management.scm index db333cf9f89a6e79e4e3ce027b289e41e88fbfa9..2a15d9d441a3c6673aa8ee7d25fb12c46dee2362 100644 --- a/gnu/packages/fabric-management.scm +++ b/gnu/packages/fabric-management.scm @@ -185,7 +185,7 @@ testing InfiniBand networks.") (define-public ucx (package (name "ucx") - (version "1.17.0") + (version "1.19.0") (source (origin (method git-fetch) (uri (git-reference @@ -195,7 +195,7 @@ testing InfiniBand networks.") (patches (search-patches "ucx-tcp-iface-ioctl.patch")) (sha256 (base32 - "09182kx60kq7iyjyz3mpcrgp1mm0lnpc0f4hd4hlw5yyabkxrpa1")) + "12j9200iyg6d0yr84r25hcpq8qqzfaa08klbhvgrqpflpfcljz4z")) (snippet ;; As seen in commit b0a275a5492125a13020cd095fe9934e0b5e7c6a. #~(begin (use-modules (guix build utils)) diff --git a/gnu/packages/patches/ucx-tcp-iface-ioctl.patch b/gnu/packages/patches/ucx-tcp-iface-ioctl.patch index 49038b90f6cf12479a0ec3a56b8df88d6044ac11..7ee72cc165c79f0b2a85362ea8ff7ec97619c202 100644 --- a/gnu/packages/patches/ucx-tcp-iface-ioctl.patch +++ b/gnu/packages/patches/ucx-tcp-iface-ioctl.patch @@ -5,8 +5,6 @@ names of the available TCP network interfaces. Initially submitted at . -diff --git a/src/uct/tcp/tcp_iface.c b/src/uct/tcp/tcp_iface.c -index f90d54fef..a2f74dc32 100644 --- a/src/uct/tcp/tcp_iface.c +++ b/src/uct/tcp/tcp_iface.c @@ -18,6 +18,8 @@ @@ -18,8 +16,8 @@ index f90d54fef..a2f74dc32 100644 #define UCT_TCP_IFACE_NETDEV_DIR "/sys/class/net" -@@ -873,6 +875,85 @@ static int uct_tcp_is_bridge(const char *if_name) - return (stat(path, &st) == 0) && S_ISDIR(st.st_mode); +@@ -921,6 +923,85 @@ out: + return ret; } +/* Fetch information about available network devices through an ioctl. */ @@ -36,7 +34,7 @@ index f90d54fef..a2f74dc32 100644 + conf.ifc_len = 0; + conf.ifc_req = NULL; + -+ status = ucs_socket_create(AF_INET, SOCK_STREAM, &sock); ++ status = ucs_socket_create(AF_INET, SOCK_STREAM, 0, &sock); + if (status != UCS_OK) { + goto out; + } @@ -104,7 +102,7 @@ index f90d54fef..a2f74dc32 100644 ucs_status_t uct_tcp_query_devices(uct_md_h md, uct_tl_device_resource_t **devices_p, unsigned *num_devices_p) -@@ -890,9 +971,9 @@ ucs_status_t uct_tcp_query_devices(uct_md_h md, +@@ -938,9 +1019,9 @@ ucs_status_t uct_tcp_query_devices(uct_md_h md, n = scandir(UCT_TCP_IFACE_NETDEV_DIR, &entries, NULL, alphasort); if (n == -1) { @@ -117,11 +115,3 @@ index f90d54fef..a2f74dc32 100644 } devices = NULL; -@@ -959,7 +1040,6 @@ out_release: - } - - free(entries); --out: - return status; - } -