aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludovic.courtes@inria.fr>2024-05-28 12:50:06 +0200
committerLudovic Courtès <ludo@gnu.org>2024-08-31 10:45:04 +0200
commita8625652e09fb4db2afdf34772f311d6119b98b3 (patch)
treecc9b408d2715e46069c64119710267cb1e506d19
parent60e069e48424fa09a05f44e2b41109888eed4131 (diff)
downloadguix-a8625652e09fb4db2afdf34772f311d6119b98b3.tar
guix-a8625652e09fb4db2afdf34772f311d6119b98b3.tar.gz
gnu: psm: Allow compilation with glibc 2.39.
* gnu/packages/linux.scm (psm)[source]: Add snippet. Change-Id: I366fcaa8bbc6a5c755cb958a2fd7a71883973415
-rw-r--r--gnu/packages/linux.scm10
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index ea79c003e1..4492d8963a 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -8939,7 +8939,15 @@ libraries, which are often integrated directly into libfabric.")
"psm-arch.patch" ; uname -p returns "unknown" on Debian 9
"psm-ldflags.patch" ; build shared lib with LDFLAGS
"psm-repro.patch" ; reproducibility
- "psm-disable-memory-stats.patch"))))
+ "psm-disable-memory-stats.patch"))
+ (modules '((guix build utils)))
+ (snippet
+ ;; That file declares its own 'strlcat' as static. To avoid a
+ ;; conflict with the function now in glibc 2.39, give it a
+ ;; different name.
+ #~(substitute* "ptl_ips/ips_proto_dump.c"
+ (("strlcat")
+ "psm_custom_strlcat")))))
(build-system gnu-build-system)
(outputs '("out" "debug"))
(inputs `(("libuuid" ,util-linux "lib")))