1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: systemtap: Fix build.

* gnu/packages/instrumentation.scm (systemtap)[arguments] <phases>: Add
'patch-source, fixing missing include.
<configure_flags>: Add flags allowing calloc-transposed-args warning.

Change-Id: I9a334b75630144195d54263e39205cca430898bf
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Brennan Vincent
2025-10-02 13:08:26 -07:00
committed by Sharlatan Hellseher
parent 10923ddef1
commit 0a865d5587

View File

@@ -571,6 +571,17 @@ ftrace.")
(base32
"161smpv4ajqfncmgylvs89bbix1id60nf0g7clmga2lxxax3646h"))))
(build-system gnu-build-system)
(arguments
(list
#:configure-flags
#~(list "CXXFLAGS=-g -O2 -Wno-error=calloc-transposed-args"
"CFLAGS=-g -O2 -Wno-error=calloc-transposed-args")
#:phases #~(modify-phases %standard-phases
(add-after 'unpack 'patch-source
(lambda _
(substitute* "language-server/jsonrpc.h"
(("#include <unistd.h>")
"#include <unistd.h>\n#include<stdint.h>")))))))
(native-inputs (list cpio python))
(inputs (list elfutils))