summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/strace
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-11-12 12:55:37 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-11-14 13:21:00 +0000
commitc4faf7364c1d5c2c23a123ace103f4f85b8fa677 (patch)
treeacd19f0dfbf599f5934103f30835f6bc0076b642 /meta/recipes-devtools/strace
parent3d9dd5f3f089a518c6a265f9c809f59c01702af3 (diff)
downloadpoky-c4faf7364c1d5c2c23a123ace103f4f85b8fa677.tar.gz
strace: Fix build found with 64bit time_t/musl
This ensures that its using linux headers for matching the syscall structures (From OE-Core rev: 3f91512ffc8c1c3374b3a67df5f86e884c78d7a1) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/strace')
-rw-r--r--meta/recipes-devtools/strace/strace/sys_headers.patch25
-rw-r--r--meta/recipes-devtools/strace/strace_5.3.bb1
2 files changed, 26 insertions, 0 deletions
diff --git a/meta/recipes-devtools/strace/strace/sys_headers.patch b/meta/recipes-devtools/strace/strace/sys_headers.patch
new file mode 100644
index 0000000000..e46f2c350d
--- /dev/null
+++ b/meta/recipes-devtools/strace/strace/sys_headers.patch
@@ -0,0 +1,25 @@
1Remove configure checks for few sys/ headers
2
3sys/ipc.h, sys/sem.h, sys/shm.h, and sys/msg.h are actually wrappers
4for kernel headers in libc if available, here strace is trying to match
5traced process's APIs to syscalls kernel structures
6
7Removing the checks makes it default to right kernel UAPI headers under linux/
8
9Upstream-Status: Submitted [https://lists.strace.io/pipermail/strace-devel/2019-November/009222.html]
10Suggested-by: Rich Felker <dalias@aerifal.cx>
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12--- a/configure.ac
13+++ b/configure.ac
14@@ -439,11 +439,7 @@ AC_CHECK_HEADERS(m4_normalize([
15 sys/conf.h
16 sys/eventfd.h
17 sys/fanotify.h
18- sys/ipc.h
19- sys/msg.h
20 sys/quota.h
21- sys/sem.h
22- sys/shm.h
23 sys/signalfd.h
24 sys/xattr.h
25 ustat.h
diff --git a/meta/recipes-devtools/strace/strace_5.3.bb b/meta/recipes-devtools/strace/strace_5.3.bb
index db6004583b..b000afb30b 100644
--- a/meta/recipes-devtools/strace/strace_5.3.bb
+++ b/meta/recipes-devtools/strace/strace_5.3.bb
@@ -15,6 +15,7 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
15 file://0001-tests-sigaction-Check-for-mips-and-alpha-before-usin.patch \ 15 file://0001-tests-sigaction-Check-for-mips-and-alpha-before-usin.patch \
16 file://ptest-spacesave.patch \ 16 file://ptest-spacesave.patch \
17 file://uintptr_t.patch \ 17 file://uintptr_t.patch \
18 file://sys_headers.patch \
18 " 19 "
19SRC_URI[md5sum] = "84f5e72de813c9b1bb6057ee8ab428d8" 20SRC_URI[md5sum] = "84f5e72de813c9b1bb6057ee8ab428d8"
20SRC_URI[sha256sum] = "6c131198749656401fe3efd6b4b16a07ea867e8f530867ceae8930bbc937a047" 21SRC_URI[sha256sum] = "6c131198749656401fe3efd6b4b16a07ea867e8f530867ceae8930bbc937a047"