summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/strace/strace/mips-SIGEMT.patch24
-rw-r--r--meta/recipes-devtools/strace/strace_4.13.bb1
2 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-devtools/strace/strace/mips-SIGEMT.patch b/meta/recipes-devtools/strace/strace/mips-SIGEMT.patch
new file mode 100644
index 0000000000..b24378bfee
--- /dev/null
+++ b/meta/recipes-devtools/strace/strace/mips-SIGEMT.patch
@@ -0,0 +1,24 @@
1SIGEMT is not defined everywhere e.g musl does
2not define it. Therefore check it being defined
3before using it.
4
5Fixes errors e.g.
6../../strace-4.13/tests/signal2name.c:45:7: error: 'SIGEMT' undeclared (first use in this function)
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9Upstream-Status: Pending
10
11Index: strace-4.13/tests/signal2name.c
12===================================================================
13--- strace-4.13.orig/tests/signal2name.c
14+++ strace-4.13/tests/signal2name.c
15@@ -42,7 +42,9 @@ signal2name(int sig)
16 CASE(SIGEMT);
17 CASE(SIGLOST);
18 #elif defined MIPS
19+#ifdef SIGEMT
20 CASE(SIGEMT);
21+#endif
22 CASE(SIGIOT);
23 CASE(SIGPWR);
24 #else
diff --git a/meta/recipes-devtools/strace/strace_4.13.bb b/meta/recipes-devtools/strace/strace_4.13.bb
index 51ff41eb67..cae7f2138e 100644
--- a/meta/recipes-devtools/strace/strace_4.13.bb
+++ b/meta/recipes-devtools/strace/strace_4.13.bb
@@ -12,6 +12,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/strace/strace-${PV}.tar.xz \
12 file://Makefile-ptest.patch \ 12 file://Makefile-ptest.patch \
13 file://run-ptest \ 13 file://run-ptest \
14 file://0001-Fix-build-when-using-non-glibc-libc-implementation-o.patch \ 14 file://0001-Fix-build-when-using-non-glibc-libc-implementation-o.patch \
15 file://mips-SIGEMT.patch \
15 " 16 "
16 17
17SRC_URI[md5sum] = "4b78c7febdd24c79d5147824d1a080a3" 18SRC_URI[md5sum] = "4b78c7febdd24c79d5147824d1a080a3"