gnu: psm: Allow compilation with glibc 2.39.

* gnu/packages/linux.scm (psm)[source]: Add snippet.

Change-Id: I366fcaa8bbc6a5c755cb958a2fd7a71883973415
This commit is contained in:
Ludovic Courtès 2024-05-28 12:50:06 +02:00 committed by Ludovic Courtès
parent 60e069e484
commit a8625652e0
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -8939,7 +8939,15 @@ (define-public psm
"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")))