From 52ccd44704b057c84f0b96de0dbc76bbe07c0013587c7457b4bf1800f319f736 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Mon, 28 Sep 2015 15:02:41 +0000 Subject: [PATCH] Accepting request 334553 from home:michel_mno:branches:devel:tools - new patch to bypass bug boo#946928 strace_ppc64le_bypass_getrandom_hang.patch This is a proposal to avoid strace to fail in Ring-1 when executed in build95. OBS-URL: https://build.opensuse.org/request/show/334553 OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=50 --- strace.changes | 6 +++++ strace.spec | 4 ++++ strace_ppc64le_bypass_getrandom_hang.patch | 27 ++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 strace_ppc64le_bypass_getrandom_hang.patch diff --git a/strace.changes b/strace.changes index fa7c6dc..8ea7634 100644 --- a/strace.changes +++ b/strace.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Sep 28 14:20:49 UTC 2015 - normand@linux.vnet.ibm.com + +- new patch to bypass bug boo#946928 + strace_ppc64le_bypass_getrandom_hang.patch + ------------------------------------------------------------------- Wed May 20 09:29:35 UTC 2015 - schwab@suse.de diff --git a/strace.spec b/strace.spec index 70717b2..3eccefa 100644 --- a/strace.spec +++ b/strace.spec @@ -44,6 +44,7 @@ Patch12: 0012-tests-verify-that-all-patterns-match.patch Patch13: 0013-aarch64-properly-decode-generic-syscalls.patch Patch14: 0014-stat64-v.test-add-newfstatat-syscall-support.patch Patch15: 0015-tests-uid-use-fchown-instead-of-chown.patch +Patch16: strace_ppc64le_bypass_getrandom_hang.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libacl-devel BuildRequires: libaio-devel @@ -93,6 +94,9 @@ extern uint32_t *const arm_sp_ptr;' > linux/aarch64/arch_regs.h %patch13 -p1 %patch14 -p1 %patch15 -p1 +%ifarch ppc64le +%patch16 -p1 +%endif %build export CFLAGS="$RPM_OPT_FLAGS" diff --git a/strace_ppc64le_bypass_getrandom_hang.patch b/strace_ppc64le_bypass_getrandom_hang.patch new file mode 100644 index 0000000..f601c6d --- /dev/null +++ b/strace_ppc64le_bypass_getrandom_hang.patch @@ -0,0 +1,27 @@ +From: Michel Normand +Subject: strace ppc64le bypass getrandom hang +Date: Mon, 28 Sep 2015 16:19:53 +0200 + +strace ppc64le bypass getrandom hang as per bug boo#946928 + +Signed-off-by: Michel Normand +--- + tests/getrandom.test | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +Index: strace-4.10/tests/getrandom.test +=================================================================== +--- strace-4.10.orig/tests/getrandom.test ++++ strace-4.10/tests/getrandom.test +@@ -5,8 +5,9 @@ + . "${srcdir=.}/init.sh" + + check_prog awk +- +-./getrandom || ++# bypass hung condition that timeout after 60s as per bug boo#946928 ++# by removing the first getrandom call. ++#/getrandom || + framework_skip_ 'getrandom is not available' + + args="-e getrandom -xx -s3 ./getrandom"