summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-08-07 23:47:57 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-10 10:46:32 +0100
commit6d84986631803bdb77dcb2d0f036025646e10728 (patch)
tree0950bf0cc492b274b42294160df9b62efb90b326
parentfeb125eb1726cad64e6ff973fdb814554ed13290 (diff)
downloadpoky-6d84986631803bdb77dcb2d0f036025646e10728.tar.gz
strace: Fix build with mips/mips64 on musl
SIGEMT doesnt exist on musl (From OE-Core rev: a18457e3318da21b642018897a0df29cb543deea) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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"