Accepting request 965207 from home:AndreasSchwab:f
- tests-ptrace.patch: Handle undefined SEGV_PKUERR OBS-URL: https://build.opensuse.org/request/show/965207 OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=141
This commit is contained in:
parent
96a520f0ee
commit
2dae4512c4
@ -17,6 +17,7 @@ Sun Mar 27 13:07:04 UTC 2022 - Andreas Schwab <schwab@linux-m68k.org>
|
||||
* Updated lists of FAN_*, IORING_*, IOSQE_*, KEY_*, KVM_*, MODULE_INIT_*,
|
||||
TCA_ACT_*, and *_MAGIC constants.
|
||||
* Updated lists of ioctl commands from Linux 5.17.
|
||||
- tests-ptrace.patch: Handle undefined SEGV_PKUERR
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 10 13:34:19 UTC 2022 - Andreas Schwab <schwab@linux-m68k.org>
|
||||
|
@ -29,6 +29,7 @@ Source: https://github.com/strace/strace/releases/download/v%{version}/%
|
||||
Source2: https://github.com/strace/strace/releases/download/v%{version}/%{name}-%{version}.tar.xz.asc
|
||||
Source3: %{name}.keyring
|
||||
Source4: baselibs.conf
|
||||
Patch: tests-ptrace.patch
|
||||
BuildRequires: haveged
|
||||
BuildRequires: libacl-devel
|
||||
BuildRequires: libaio-devel
|
||||
@ -58,6 +59,7 @@ and processes can be seen. Child processes can also be tracked.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch -p1
|
||||
|
||||
%build
|
||||
%configure \
|
||||
|
13
tests-ptrace.patch
Normal file
13
tests-ptrace.patch
Normal file
@ -0,0 +1,13 @@
|
||||
Index: strace-5.17/tests/ptrace.c
|
||||
===================================================================
|
||||
--- strace-5.17.orig/tests/ptrace.c
|
||||
+++ strace-5.17/tests/ptrace.c
|
||||
@@ -1854,7 +1854,7 @@ main(void)
|
||||
XLAT_ARGS(PTRACE_SETSIGINFO), pid, bad_request,
|
||||
XLAT_ARGS(SIGPROF), sip->si_code, sip->si_errno, errstr);
|
||||
|
||||
-#ifdef HAVE_SIGINFO_T_SI_PKEY
|
||||
+#if defined HAVE_SIGINFO_T_SI_PKEY && defined SEGV_PKUERR
|
||||
memset(sip, -1, sizeof(*sip));
|
||||
sip->si_signo = SIGSEGV;
|
||||
sip->si_code = SEGV_PKUERR;
|
Loading…
x
Reference in New Issue
Block a user