guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 4d6c74eaaf6615ee528829730d64bfa454828a45
Author: Ludovic Courtès <[email protected]>
AuthorDate: Tue Jun 9 20:30:19 2026 +0200
gnu: cassini-headers: Add missing include in ‘cxi_prov_hw.h’.
* gnu/packages/patches/cassini-headers-memset.patch: New file.
* gnu/packages/linux.scm (cassini-headers)[source]: Use it.
* gnu/local.mk (dist_patch_DATA): Add it.
Change-Id: I67b3b0ba40a0b71414add9ba1d7d550bfb53ecb9
Signed-off-by: Ludovic Courtès <[email protected]>
---
gnu/local.mk | 1 +
gnu/packages/linux.scm | 3 ++-
gnu/packages/patches/cassini-headers-memset.patch | 26 +++++++++++++++++++++++
3 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index fc69c79a84..3cf3da283c 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1098,6 +1098,7 @@ dist_patch_DATA =
\
%D%/packages/patches/camlboot-dynamically-allocate-stack-signal.patch
\
%D%/packages/patches/capstone-fix-python-constants.patch \
%D%/packages/patches/cartridges-fix-non-parallel-build.patch \
+ %D%/packages/patches/cassini-headers-memset.patch \
%D%/packages/patches/catdoc-CVE-2017-11110.patch \
%D%/packages/patches/chez-scheme-bin-sh.patch \
%D%/packages/patches/circos-remove-findbin.patch \
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 05070f7594..b5995e2098 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -10164,7 +10164,8 @@ comparing system environments.")
(file-name (git-file-name name version))
(sha256
(base32
- "074r1snc682f1b6vgswyz55n8zjf5rhqnsl31xsswih7q9q38jda"))))
+ "074r1snc682f1b6vgswyz55n8zjf5rhqnsl31xsswih7q9q38jda"))
+ (patches (search-patches "cassini-headers-memset.patch"))))
(build-system copy-build-system)
(arguments
(list #:install-plan
diff --git a/gnu/packages/patches/cassini-headers-memset.patch
b/gnu/packages/patches/cassini-headers-memset.patch
new file mode 100644
index 0000000000..7fcfb2fab0
--- /dev/null
+++ b/gnu/packages/patches/cassini-headers-memset.patch
@@ -0,0 +1,26 @@
+Add missing header needed for 'memset'.
+
+Lack of this include would lead to misdiagnostics by libfabric's 'configure'
script:
+
+ checking whether cxil_svc_get_vni_range is declared... no
+
+... where the real problem is lack of a 'memset' declaration:
+
+ configure:37208: checking whether cxil_svc_get_vni_range is declared
+ configure:37208: gcc -c -O2 -DNDEBUG -pipe -fvisibility=hidden -Wall -Wundef
-Wpointer-arith -I/include conftest.c >&5
+ In file included from /gnu/store/…-libcxi-14.0.0/include/libcxi/libcxi.h:22,
+ from conftest.c:134:
+ /gnu/store/…-cassini-headers-14.0.0/include/cxi_prov_hw.h: In function
'cxi_cq_update_wp':
+ /gnu/store/…-cassini-headers-14.0.0/include/cxi_prov_hw.h:638:17: error:
implicit declaration of function 'memset' [-Wimplicit-function-declaration]
+
+--- a/include/cxi_prov_hw.h
++++ b/include/cxi_prov_hw.h
+@@ -11,6 +11,7 @@
+ #ifndef __KERNEL__
+ #include <stdbool.h>
+ #include <errno.h>
++#include <string.h>
+ #endif
+
+ /*
+