summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/strace
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/strace')
-rw-r--r--meta/recipes-devtools/strace/strace/0001-Fix-build-when-using-non-glibc-libc-implementation-o.patch36
-rw-r--r--meta/recipes-devtools/strace/strace_4.11.bb3
2 files changed, 38 insertions, 1 deletions
diff --git a/meta/recipes-devtools/strace/strace/0001-Fix-build-when-using-non-glibc-libc-implementation-o.patch b/meta/recipes-devtools/strace/strace/0001-Fix-build-when-using-non-glibc-libc-implementation-o.patch
new file mode 100644
index 0000000000..7f59210ca9
--- /dev/null
+++ b/meta/recipes-devtools/strace/strace/0001-Fix-build-when-using-non-glibc-libc-implementation-o.patch
@@ -0,0 +1,36 @@
1From 1f0c22b79045cfcdc976643f383c1d09589d3087 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 30 Apr 2016 16:23:56 +0000
4Subject: [PATCH] Fix build when using non-glibc libc implementation on ppc
5
6glibc includes the kernel header into its own header for macros
7musl does not
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 ptrace.h | 8 +++++++-
13 1 file changed, 7 insertions(+), 1 deletion(-)
14
15diff --git a/ptrace.h b/ptrace.h
16index d8af976..4978a69 100644
17--- a/ptrace.h
18+++ b/ptrace.h
19@@ -52,7 +52,13 @@ extern long ptrace(int, int, char *, long);
20 # define ptrace_peeksiginfo_args XXX_ptrace_peeksiginfo_args
21 #endif
22
23-#include <linux/ptrace.h>
24+#if defined(POWERPC) && !defined(__GLIBC__)
25+#define pt_regs uapi_pt_regs
26+#endif
27+# include <linux/ptrace.h>
28+#if defined(POWERPC) && !defined(__GLIBC__)
29+# undef pt_regs
30+#endif
31
32 #ifdef HAVE_STRUCT_IA64_FPREG
33 # undef ia64_fpreg
34--
351.8.3.1
36
diff --git a/meta/recipes-devtools/strace/strace_4.11.bb b/meta/recipes-devtools/strace/strace_4.11.bb
index 7391388020..56b64bb0c9 100644
--- a/meta/recipes-devtools/strace/strace_4.11.bb
+++ b/meta/recipes-devtools/strace/strace_4.11.bb
@@ -16,7 +16,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/strace/strace-${PV}.tar.xz \
16 file://0001-Move-gcc-compat-macros-to-gcc_compat.h.patch \ 16 file://0001-Move-gcc-compat-macros-to-gcc_compat.h.patch \
17 file://0001-tests-introduce-libtests.patch \ 17 file://0001-tests-introduce-libtests.patch \
18 file://run-ptest \ 18 file://run-ptest \
19 " 19 file://0001-Fix-build-when-using-non-glibc-libc-implementation-o.patch \
20 "
20 21
21SRC_URI[md5sum] = "a15d2555a7febb56d00c6e1a51c655dc" 22SRC_URI[md5sum] = "a15d2555a7febb56d00c6e1a51c655dc"
22SRC_URI[sha256sum] = "e86a5f6cd8f941f67f3e4b28f4e60f3d9185c951cf266404533210a2e5cd8152" 23SRC_URI[sha256sum] = "e86a5f6cd8f941f67f3e4b28f4e60f3d9185c951cf266404533210a2e5cd8152"