[oe-commits] [openembedded-core] 25/51: strace: Fix build with mips/mips64 on musl

git at git.openembedded.org git at git.openembedded.org
Wed Aug 10 09:47:50 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit a18457e3318da21b642018897a0df29cb543deea
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Sun Aug 7 23:47:57 2016 -0700

    strace: Fix build with mips/mips64 on musl
    
    SIGEMT doesnt exist on musl
    
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 .../strace/strace/mips-SIGEMT.patch                | 24 ++++++++++++++++++++++
 meta/recipes-devtools/strace/strace_4.13.bb        |  1 +
 2 files changed, 25 insertions(+)

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 0000000..b24378b
--- /dev/null
+++ b/meta/recipes-devtools/strace/strace/mips-SIGEMT.patch
@@ -0,0 +1,24 @@
+SIGEMT is not defined everywhere e.g musl does
+not define it. Therefore check it being defined
+before using it.
+
+Fixes errors e.g.
+../../strace-4.13/tests/signal2name.c:45:7: error: 'SIGEMT' undeclared (first use in this function)
+
+Signed-off-by: Khem Raj <raj.khem at gmail.com>
+Upstream-Status: Pending
+
+Index: strace-4.13/tests/signal2name.c
+===================================================================
+--- strace-4.13.orig/tests/signal2name.c
++++ strace-4.13/tests/signal2name.c
+@@ -42,7 +42,9 @@ signal2name(int sig)
+ 	CASE(SIGEMT);
+ 	CASE(SIGLOST);
+ #elif defined MIPS
++#ifdef SIGEMT
+ 	CASE(SIGEMT);
++#endif
+ 	CASE(SIGIOT);
+ 	CASE(SIGPWR);
+ #else
diff --git a/meta/recipes-devtools/strace/strace_4.13.bb b/meta/recipes-devtools/strace/strace_4.13.bb
index 51ff41e..cae7f21 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 \
            file://Makefile-ptest.patch \
            file://run-ptest \
            file://0001-Fix-build-when-using-non-glibc-libc-implementation-o.patch \
+           file://mips-SIGEMT.patch \
            "
 
 SRC_URI[md5sum] = "4b78c7febdd24c79d5147824d1a080a3"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list