diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-12-21 10:52:03 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-30 08:47:12 +0000 |
commit | 0cd9cf7d40554e8e6665f9976cc159837d626572 (patch) | |
tree | 91894893b6d1223a9ae0292fba4470a069869a43 /meta/recipes-devtools/strace | |
parent | b92a81e32a9d08d09bd902f6d8ac41a0d79996e2 (diff) | |
download | poky-0cd9cf7d40554e8e6665f9976cc159837d626572.tar.gz |
strace: Upgrade to 5.4
Remove a patch already present upstream
Add a patch to fix build with upcoming glibc 2.31 where
__ptrace_syscall_info definition is added
(From OE-Core rev: f6670f9c89c7b7a93557f0b6aeffbf88033f0791)
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/0001-define-ptrace_syscall_info-to-__ptrace_syscall_info.patch | 52 | ||||
-rw-r--r-- | meta/recipes-devtools/strace/strace/0001-tests-sigaction-Check-for-mips-and-alpha-before-usin.patch | 32 | ||||
-rw-r--r-- | meta/recipes-devtools/strace/strace/Makefile-ptest.patch | 6 | ||||
-rw-r--r-- | meta/recipes-devtools/strace/strace/more-robust-test-for-m32-mx32-compile-support.patch | 10 | ||||
-rw-r--r-- | meta/recipes-devtools/strace/strace/sys_headers.patch | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/strace/strace_5.4.bb (renamed from meta/recipes-devtools/strace/strace_5.3.bb) | 6 |
6 files changed, 62 insertions, 46 deletions
diff --git a/meta/recipes-devtools/strace/strace/0001-define-ptrace_syscall_info-to-__ptrace_syscall_info.patch b/meta/recipes-devtools/strace/strace/0001-define-ptrace_syscall_info-to-__ptrace_syscall_info.patch new file mode 100644 index 0000000000..dd0617a15f --- /dev/null +++ b/meta/recipes-devtools/strace/strace/0001-define-ptrace_syscall_info-to-__ptrace_syscall_info.patch | |||
@@ -0,0 +1,52 @@ | |||
1 | From 86bbe1135d5d13db1ced64141acfb513c03d2f30 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 21 Dec 2019 10:18:38 -0800 | ||
4 | Subject: [PATCH] define ptrace_syscall_info to __ptrace_syscall_info | ||
5 | |||
6 | glibc 2.31+ has defined __ptrace_syscall_info [1] | ||
7 | |||
8 | [1] https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d1e411e5c786ce3028d98b4e6fc02c2fcf66ae37;hp=2e4e75727eb05eef4c10470d865bd42962d5fae7 | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | get_personality.h | 2 ++ | ||
14 | ptrace.h | 2 ++ | ||
15 | 2 files changed, 4 insertions(+) | ||
16 | |||
17 | --- a/get_personality.h | ||
18 | +++ b/get_personality.h | ||
19 | @@ -10,7 +10,9 @@ | ||
20 | |||
21 | # include "ptrace.h" | ||
22 | |||
23 | +# if HAVE_STRUCT___PTRACE_SYSCALL_INFO | ||
24 | extern int | ||
25 | get_personality_from_syscall_info(const struct ptrace_syscall_info *); | ||
26 | +# endif | ||
27 | |||
28 | #endif /* !STRACE_GET_PERSONALITY_H */ | ||
29 | --- a/ptrace.h | ||
30 | +++ b/ptrace.h | ||
31 | @@ -186,6 +186,9 @@ struct ptrace_syscall_info { | ||
32 | }; | ||
33 | # endif | ||
34 | |||
35 | +# if HAVE_STRUCT___PTRACE_SYSCALL_INFO | ||
36 | +# define ptrace_syscall_info __ptrace_syscall_info | ||
37 | +# endif | ||
38 | # if !HAVE_DECL_PTRACE_PEEKUSER | ||
39 | # define PTRACE_PEEKUSER PTRACE_PEEKUSR | ||
40 | # endif | ||
41 | --- a/configure.ac | ||
42 | +++ b/configure.ac | ||
43 | @@ -317,7 +317,8 @@ AC_CHECK_MEMBERS([struct stat.st_mtime_n | ||
44 | AC_CHECK_TYPES(m4_normalize([ | ||
45 | struct pt_all_user_regs, | ||
46 | struct ia64_fpreg, | ||
47 | - struct ptrace_peeksiginfo_args | ||
48 | + struct ptrace_peeksiginfo_args, | ||
49 | + struct __ptrace_syscall_info | ||
50 | ]),,, [#include <sys/ptrace.h>]) | ||
51 | |||
52 | # For kernels that do not have v3.10-rc1~201^2~11 | ||
diff --git a/meta/recipes-devtools/strace/strace/0001-tests-sigaction-Check-for-mips-and-alpha-before-usin.patch b/meta/recipes-devtools/strace/strace/0001-tests-sigaction-Check-for-mips-and-alpha-before-usin.patch deleted file mode 100644 index 95d85bf34a..0000000000 --- a/meta/recipes-devtools/strace/strace/0001-tests-sigaction-Check-for-mips-and-alpha-before-usin.patch +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | From 879ae71c472ce522f1b3514d2abf6ad49b4acc07 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 18 Sep 2017 22:51:32 -0700 | ||
4 | Subject: [PATCH] tests/sigaction: Check for mips and alpha before using | ||
5 | sa_restorer | ||
6 | |||
7 | local structure does not define restorer member for mips and alpha | ||
8 | in definition, we need to match that assumption here where they are | ||
9 | being set | ||
10 | |||
11 | Fixes | ||
12 | | ../../strace-4.18/tests/sigaction.c:177:36: error: 'struct_set_sa {aka struct set_sa}' has no member named 'restorer' | ||
13 | | # define SA_RESTORER_ARGS , new_act->restorer | ||
14 | |||
15 | Upstream-Status: Pending | ||
16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
17 | |||
18 | --- | ||
19 | tests/sigaction.c | 2 +- | ||
20 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
21 | |||
22 | --- a/tests/sigaction.c | ||
23 | +++ b/tests/sigaction.c | ||
24 | @@ -156,7 +156,7 @@ main(void) | ||
25 | sigdelset(mask.libc, SIGHUP); | ||
26 | |||
27 | memcpy(new_act->mask, mask.old, sizeof(mask.old)); | ||
28 | -# ifdef SA_RESTORER | ||
29 | +#if defined(SA_RESTORER) && !defined(MIPS) && !defined(ALPHA) | ||
30 | new_act->flags = SA_RESTORER; | ||
31 | new_act->restorer = (unsigned long) 0xdeadfacecafef00dULL; | ||
32 | # define SA_RESTORER_FMT ", sa_flags=SA_RESTORER, sa_restorer=%#lx" | ||
diff --git a/meta/recipes-devtools/strace/strace/Makefile-ptest.patch b/meta/recipes-devtools/strace/strace/Makefile-ptest.patch index 08fa5c53b8..2437d1fb6d 100644 --- a/meta/recipes-devtools/strace/strace/Makefile-ptest.patch +++ b/meta/recipes-devtools/strace/strace/Makefile-ptest.patch | |||
@@ -13,11 +13,9 @@ Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | |||
13 | tests/Makefile.am | 19 +++++++++++++++++++ | 13 | tests/Makefile.am | 19 +++++++++++++++++++ |
14 | 1 file changed, 19 insertions(+) | 14 | 1 file changed, 19 insertions(+) |
15 | 15 | ||
16 | diff --git a/tests/Makefile.am b/tests/Makefile.am | ||
17 | index 825c989..4623c48 100644 | ||
18 | --- a/tests/Makefile.am | 16 | --- a/tests/Makefile.am |
19 | +++ b/tests/Makefile.am | 17 | +++ b/tests/Makefile.am |
20 | @@ -14,6 +14,7 @@ SIZEOF_LONG = @SIZEOF_LONG@ | 18 | @@ -15,6 +15,7 @@ SIZEOF_LONG = @SIZEOF_LONG@ |
21 | MPERS_NAME = | 19 | MPERS_NAME = |
22 | MPERS_CC_FLAGS = | 20 | MPERS_CC_FLAGS = |
23 | ARCH_MFLAGS = | 21 | ARCH_MFLAGS = |
@@ -25,7 +23,7 @@ index 825c989..4623c48 100644 | |||
25 | AM_CFLAGS = $(WARN_CFLAGS) | 23 | AM_CFLAGS = $(WARN_CFLAGS) |
26 | AM_CPPFLAGS = $(ARCH_MFLAGS) \ | 24 | AM_CPPFLAGS = $(ARCH_MFLAGS) \ |
27 | -I$(builddir) \ | 25 | -I$(builddir) \ |
28 | @@ -477,3 +478,21 @@ BUILT_SOURCES = ksysent.h | 26 | @@ -531,3 +532,21 @@ BUILT_SOURCES = ksysent.h |
29 | CLEANFILES = ksysent.h | 27 | CLEANFILES = ksysent.h |
30 | 28 | ||
31 | include ../scno.am | 29 | include ../scno.am |
diff --git a/meta/recipes-devtools/strace/strace/more-robust-test-for-m32-mx32-compile-support.patch b/meta/recipes-devtools/strace/strace/more-robust-test-for-m32-mx32-compile-support.patch index a9bd900da8..ae22105cbe 100644 --- a/meta/recipes-devtools/strace/strace/more-robust-test-for-m32-mx32-compile-support.patch +++ b/meta/recipes-devtools/strace/strace/more-robust-test-for-m32-mx32-compile-support.patch | |||
@@ -23,19 +23,17 @@ Signed-off-by: Andre McCurdy <armccurdy@gmail.com> | |||
23 | m4/mpers.m4 | 2 ++ | 23 | m4/mpers.m4 | 2 ++ |
24 | 1 file changed, 2 insertions(+) | 24 | 1 file changed, 2 insertions(+) |
25 | 25 | ||
26 | diff --git a/m4/mpers.m4 b/m4/mpers.m4 | ||
27 | index 13725d7..d8578ea 100644 | ||
28 | --- a/m4/mpers.m4 | 26 | --- a/m4/mpers.m4 |
29 | +++ b/m4/mpers.m4 | 27 | +++ b/m4/mpers.m4 |
30 | @@ -88,6 +88,7 @@ case "$arch" in | 28 | @@ -103,6 +103,7 @@ case "$arch" in |
31 | CFLAGS="$CFLAGS MPERS_CFLAGS $IFLAG" | 29 | CFLAGS="$CFLAGS MPERS_CFLAGS${IFLAG:+ }$IFLAG" |
32 | AC_CACHE_CHECK([for mpers_name personality compile support], [st_cv_cc], | 30 | AC_CACHE_CHECK([for mpers_name personality compile support (using $CC $CFLAGS)], [st_cv_cc], |
33 | [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include <stdint.h> | 31 | [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include <stdint.h> |
34 | + #include <sys/syscall.h> | 32 | + #include <sys/syscall.h> |
35 | int main(){return 0;}]])], | 33 | int main(){return 0;}]])], |
36 | [st_cv_cc=yes], | 34 | [st_cv_cc=yes], |
37 | [st_cv_cc=no])]) | 35 | [st_cv_cc=no])]) |
38 | @@ -95,6 +96,7 @@ case "$arch" in | 36 | @@ -110,6 +111,7 @@ case "$arch" in |
39 | AC_CACHE_CHECK([for mpers_name personality runtime support], | 37 | AC_CACHE_CHECK([for mpers_name personality runtime support], |
40 | [st_cv_runtime], | 38 | [st_cv_runtime], |
41 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdint.h> | 39 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdint.h> |
diff --git a/meta/recipes-devtools/strace/strace/sys_headers.patch b/meta/recipes-devtools/strace/strace/sys_headers.patch index e46f2c350d..d1b704e0d9 100644 --- a/meta/recipes-devtools/strace/strace/sys_headers.patch +++ b/meta/recipes-devtools/strace/strace/sys_headers.patch | |||
@@ -11,7 +11,7 @@ Suggested-by: Rich Felker <dalias@aerifal.cx> | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
12 | --- a/configure.ac | 12 | --- a/configure.ac |
13 | +++ b/configure.ac | 13 | +++ b/configure.ac |
14 | @@ -439,11 +439,7 @@ AC_CHECK_HEADERS(m4_normalize([ | 14 | @@ -441,11 +441,7 @@ AC_CHECK_HEADERS(m4_normalize([ |
15 | sys/conf.h | 15 | sys/conf.h |
16 | sys/eventfd.h | 16 | sys/eventfd.h |
17 | sys/fanotify.h | 17 | sys/fanotify.h |
diff --git a/meta/recipes-devtools/strace/strace_5.3.bb b/meta/recipes-devtools/strace/strace_5.4.bb index b000afb30b..1e428ccd64 100644 --- a/meta/recipes-devtools/strace/strace_5.3.bb +++ b/meta/recipes-devtools/strace/strace_5.4.bb | |||
@@ -12,13 +12,13 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \ | |||
12 | file://run-ptest \ | 12 | file://run-ptest \ |
13 | file://mips-SIGEMT.patch \ | 13 | file://mips-SIGEMT.patch \ |
14 | file://0001-caps-abbrev.awk-fix-gawk-s-path.patch \ | 14 | file://0001-caps-abbrev.awk-fix-gawk-s-path.patch \ |
15 | file://0001-tests-sigaction-Check-for-mips-and-alpha-before-usin.patch \ | ||
16 | file://ptest-spacesave.patch \ | 15 | file://ptest-spacesave.patch \ |
17 | file://uintptr_t.patch \ | 16 | file://uintptr_t.patch \ |
18 | file://sys_headers.patch \ | 17 | file://sys_headers.patch \ |
18 | file://0001-define-ptrace_syscall_info-to-__ptrace_syscall_info.patch \ | ||
19 | " | 19 | " |
20 | SRC_URI[md5sum] = "84f5e72de813c9b1bb6057ee8ab428d8" | 20 | SRC_URI[md5sum] = "b2b58f05eb3c5c0bf9d1e26003b4d698" |
21 | SRC_URI[sha256sum] = "6c131198749656401fe3efd6b4b16a07ea867e8f530867ceae8930bbc937a047" | 21 | SRC_URI[sha256sum] = "f7d00514d51290b6db78ad7a9de709baf93caa5981498924cbc9a744cfd2a741" |
22 | 22 | ||
23 | inherit autotools ptest | 23 | inherit autotools ptest |
24 | 24 | ||