summaryrefslogtreecommitdiff
path: root/package/strace
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2022-01-08 20:47:59 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2022-01-15 15:02:40 +0100
commitbe87bc0d59bbf96461567a05693af5a380bae103 (patch)
treecf14cd8492a4ef14705af433d7e788fd4c6b6c0d /package/strace
parent4c17f8c941a321c8136f7341ebe561c6df650ee4 (diff)
strace: fix compile issue on c-sky
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Diffstat (limited to 'package/strace')
-rw-r--r--package/strace/Makefile4
-rw-r--r--package/strace/patches/patch-src_stage_output_c20
2 files changed, 22 insertions, 2 deletions
diff --git a/package/strace/Makefile b/package/strace/Makefile
index 4bcee572d..ae9ea18b0 100644
--- a/package/strace/Makefile
+++ b/package/strace/Makefile
@@ -4,9 +4,9 @@
include ${ADK_TOPDIR}/rules.mk
PKG_NAME:= strace
-PKG_VERSION:= 5.14
+PKG_VERSION:= 5.15
PKG_RELEASE:= 1
-PKG_HASH:= 901bee6db5e17debad4530dd9ffb4dc9a96c4a656edbe1c3141b7cb307b11e73
+PKG_HASH:= ebcac22f297335294dc654425cbc3ce013343bece6da2699e3aec86aee8d72dc
PKG_DESCR:= system call trace program
PKG_SECTION:= app/debug
PKG_URL:= https://strace.io
diff --git a/package/strace/patches/patch-src_stage_output_c b/package/strace/patches/patch-src_stage_output_c
new file mode 100644
index 000000000..0762e4a6c
--- /dev/null
+++ b/package/strace/patches/patch-src_stage_output_c
@@ -0,0 +1,20 @@
+--- strace-5.15.orig/src/stage_output.c 2021-02-16 09:00:00.000000000 +0100
++++ strace-5.15/src/stage_output.c 2021-12-15 15:05:58.500813814 +0100
+@@ -26,7 +26,7 @@ strace_open_memstream(struct tcb *tcp)
+ {
+ FILE *fp = NULL;
+
+-#if HAVE_OPEN_MEMSTREAM
++#if defined(HAVE_OPEN_MEMSTREAM)
+ tcp->staged_output_data = xmalloc(sizeof(*tcp->staged_output_data));
+ fp = open_memstream(&tcp->staged_output_data->memfptr,
+ &tcp->staged_output_data->memfloc);
+@@ -49,7 +49,7 @@ strace_open_memstream(struct tcb *tcp)
+ void
+ strace_close_memstream(struct tcb *tcp, bool publish)
+ {
+-#if HAVE_OPEN_MEMSTREAM
++#if defined(HAVE_OPEN_MEMSTREAM)
+ if (!tcp->staged_output_data) {
+ debug_msg("memstream already closed");
+ return;