2006-12-19 00:17:52 +01:00
|
|
|
#
|
2011-04-12 12:26:00 +02:00
|
|
|
# spec file for package strace
|
2006-12-19 00:17:52 +01:00
|
|
|
#
|
2015-03-20 21:54:09 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-19 00:17:52 +01:00
|
|
|
#
|
2008-08-06 01:58:14 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-19 00:17:52 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: strace
|
2015-03-20 21:54:09 +01:00
|
|
|
Version: 4.10
|
2013-06-14 14:12:59 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A utility to trace the system calls of a program
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Tools/Debuggers
|
|
|
|
Url: http://sourceforge.net/projects/strace/
|
|
|
|
|
|
|
|
#Freecode-URL: http://freecode.com/projects/strace
|
|
|
|
#Git-Clone: git://git.code.sf.net/p/strace/code
|
|
|
|
Source: http://downloads.sourceforge.net/strace/%name-%version.tar.xz
|
|
|
|
Source2: http://downloads.sourceforge.net/strace/%name-%version.tar.xz.asc
|
|
|
|
Source3: %name.keyring
|
|
|
|
Source4: baselibs.conf
|
Accepting request 292570 from home:Andreas_Schwab:Factory
- 0001-aarch64-fix-rt_sigreturn-decoding.patch,
0002-m68k-define-HAVE_SA_RESTORER.patch,
0003-Fix-decoding-of-mmap2-for-arm.patch,
0005-tests-select.test-handle-architectures-using-pselect.patch,
0006-aarch64-fix-ioctl-decoding.patch,
0007-m68k-fix-sigreturn-decoding.patch,
0008-Fix-crash-in-ipc_sem-test.patch,
0009-tests-ipc_-match-IPC_64-flag.patch,
0010-semctl-fix-indirect-syscall-decoding.patch,
0011-Fix-stat64-st_-acm-time-decoding-for-personalities-w.patch,
0012-tests-verify-that-all-patterns-match.patch,
0013-aarch64-properly-decode-generic-syscalls.patch,
0014-stat64-v.test-add-newfstatat-syscall-support.patch,
0015-tests-uid-use-fchown-instead-of-chown.patch: Patches from upstream
to fix testsuite failure.
- Enable libunwind support (strace -k).
OBS-URL: https://build.opensuse.org/request/show/292570
OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=44
2015-03-24 19:25:03 +01:00
|
|
|
Patch1: 0001-aarch64-fix-rt_sigreturn-decoding.patch
|
|
|
|
Patch2: 0002-m68k-define-HAVE_SA_RESTORER.patch
|
|
|
|
Patch3: 0003-Fix-decoding-of-mmap2-for-arm.patch
|
|
|
|
Patch5: 0005-tests-select.test-handle-architectures-using-pselect.patch
|
|
|
|
Patch6: 0006-aarch64-fix-ioctl-decoding.patch
|
|
|
|
Patch7: 0007-m68k-fix-sigreturn-decoding.patch
|
|
|
|
Patch8: 0008-Fix-crash-in-ipc_sem-test.patch
|
|
|
|
Patch9: 0009-tests-ipc_-match-IPC_64-flag.patch
|
|
|
|
Patch10: 0010-semctl-fix-indirect-syscall-decoding.patch
|
|
|
|
Patch11: 0011-Fix-stat64-st_-acm-time-decoding-for-personalities-w.patch
|
|
|
|
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
|
2015-09-28 17:02:41 +02:00
|
|
|
Patch16: strace_ppc64le_bypass_getrandom_hang.patch
|
2013-06-14 14:12:59 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
- updated to 4.7
* Changes in behavior
* strace no longer suspends waitpid until there is a child
for waitpid'ing process to collect status from.
* strace no longer detaches from a tracee which is supposed
to be going to die.
* strace now issues a new message: "+++ exited with EXITCODE +++"
which shows exact moment strace got exit notification,
analogous to existing "+++ killed by SIG +++" message.
* Improvements
* Added x32 personality support (x86_64 architecture).
* Added -y and -P options to print file descriptor paths and
filter by those paths.
* Added -I option to control strace interactivity.
* Allowed -p option to take comma or whitespace-separated list of PIDs.
* Added strace_log_merge script helper to merge timestamped "strace -ff"
log files.
* Implemented decoding of clock_adjtime, get_robust_list, migrate_pages,
preadv, prlimit64, process_vm_readv, process_vm_writev, pwritev,
recvmmsg, recvmsg, rt_tgsigqueueinfo, sendmmsg, setns, set_robust_list,
sched_rr_get_interval, splice, syslog, tee and vmsplice syscalls.
* Enhanced decoding of capget, capset, getrlimit, flistxattr, io_submit,
listxattr, setrlimit and swapon syscalls.
* Implemented decoding of loop and mtd ioctls.
* Added syscall entries for new linux syscalls.
* Added syscall entries for direct socket system calls on powerpc.
* Updated the list of errno constants.
* Updated lists of MSG_*, STA_*, and TCP_* constants.
* Regenerated the list of ioctl names from Linux 3.3.
OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=22
2012-05-03 13:03:48 +02:00
|
|
|
BuildRequires: libacl-devel
|
|
|
|
BuildRequires: libaio-devel
|
2015-05-20 14:58:53 +02:00
|
|
|
# libunwind is broken on ppc and ppc64 and aarch64
|
|
|
|
%ifarch %ix86 ia64 x86_64 %{arm} ppc64le
|
Accepting request 292570 from home:Andreas_Schwab:Factory
- 0001-aarch64-fix-rt_sigreturn-decoding.patch,
0002-m68k-define-HAVE_SA_RESTORER.patch,
0003-Fix-decoding-of-mmap2-for-arm.patch,
0005-tests-select.test-handle-architectures-using-pselect.patch,
0006-aarch64-fix-ioctl-decoding.patch,
0007-m68k-fix-sigreturn-decoding.patch,
0008-Fix-crash-in-ipc_sem-test.patch,
0009-tests-ipc_-match-IPC_64-flag.patch,
0010-semctl-fix-indirect-syscall-decoding.patch,
0011-Fix-stat64-st_-acm-time-decoding-for-personalities-w.patch,
0012-tests-verify-that-all-patterns-match.patch,
0013-aarch64-properly-decode-generic-syscalls.patch,
0014-stat64-v.test-add-newfstatat-syscall-support.patch,
0015-tests-uid-use-fchown-instead-of-chown.patch: Patches from upstream
to fix testsuite failure.
- Enable libunwind support (strace -k).
OBS-URL: https://build.opensuse.org/request/show/292570
OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=44
2015-03-24 19:25:03 +01:00
|
|
|
BuildRequires: libunwind-devel
|
|
|
|
%endif
|
- updated to 4.7
* Changes in behavior
* strace no longer suspends waitpid until there is a child
for waitpid'ing process to collect status from.
* strace no longer detaches from a tracee which is supposed
to be going to die.
* strace now issues a new message: "+++ exited with EXITCODE +++"
which shows exact moment strace got exit notification,
analogous to existing "+++ killed by SIG +++" message.
* Improvements
* Added x32 personality support (x86_64 architecture).
* Added -y and -P options to print file descriptor paths and
filter by those paths.
* Added -I option to control strace interactivity.
* Allowed -p option to take comma or whitespace-separated list of PIDs.
* Added strace_log_merge script helper to merge timestamped "strace -ff"
log files.
* Implemented decoding of clock_adjtime, get_robust_list, migrate_pages,
preadv, prlimit64, process_vm_readv, process_vm_writev, pwritev,
recvmmsg, recvmsg, rt_tgsigqueueinfo, sendmmsg, setns, set_robust_list,
sched_rr_get_interval, splice, syslog, tee and vmsplice syscalls.
* Enhanced decoding of capget, capset, getrlimit, flistxattr, io_submit,
listxattr, setrlimit and swapon syscalls.
* Implemented decoding of loop and mtd ioctls.
* Added syscall entries for new linux syscalls.
* Added syscall entries for direct socket system calls on powerpc.
* Updated the list of errno constants.
* Updated lists of MSG_*, STA_*, and TCP_* constants.
* Regenerated the list of ioctl names from Linux 3.3.
OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=22
2012-05-03 13:03:48 +02:00
|
|
|
BuildRequires: lksctp-tools-devel
|
2012-05-23 07:13:12 +02:00
|
|
|
BuildRequires: xz
|
2008-11-02 15:45:04 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: strace-64bit
|
|
|
|
%endif
|
2015-03-29 21:31:39 +02:00
|
|
|
%ifarch x86_64
|
|
|
|
Obsoletes: strace-32bit
|
|
|
|
%endif
|
2006-12-19 00:17:52 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
With strace, you can trace the activity of a program. Information
|
|
|
|
about any system calls the program makes and the signals it receives
|
|
|
|
and processes can be seen. Child processes can also be tracked.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Paul Kranenburg <pk@cs.few.eur.nl>
|
|
|
|
Branko Lankester <branko@hacktic.nl>
|
|
|
|
Rick Sladkey <rs@world.std.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
Accepting request 292570 from home:Andreas_Schwab:Factory
- 0001-aarch64-fix-rt_sigreturn-decoding.patch,
0002-m68k-define-HAVE_SA_RESTORER.patch,
0003-Fix-decoding-of-mmap2-for-arm.patch,
0005-tests-select.test-handle-architectures-using-pselect.patch,
0006-aarch64-fix-ioctl-decoding.patch,
0007-m68k-fix-sigreturn-decoding.patch,
0008-Fix-crash-in-ipc_sem-test.patch,
0009-tests-ipc_-match-IPC_64-flag.patch,
0010-semctl-fix-indirect-syscall-decoding.patch,
0011-Fix-stat64-st_-acm-time-decoding-for-personalities-w.patch,
0012-tests-verify-that-all-patterns-match.patch,
0013-aarch64-properly-decode-generic-syscalls.patch,
0014-stat64-v.test-add-newfstatat-syscall-support.patch,
0015-tests-uid-use-fchown-instead-of-chown.patch: Patches from upstream
to fix testsuite failure.
- Enable libunwind support (strace -k).
OBS-URL: https://build.opensuse.org/request/show/292570
OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=44
2015-03-24 19:25:03 +01:00
|
|
|
# This file is missing in the tarball
|
|
|
|
echo 'extern uint64_t *const aarch64_sp_ptr;
|
|
|
|
extern uint32_t *const arm_sp_ptr;' > linux/aarch64/arch_regs.h
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
|
|
|
%patch10 -p1
|
|
|
|
%patch11 -p1
|
|
|
|
%patch12 -p1
|
|
|
|
%patch13 -p1
|
|
|
|
%patch14 -p1
|
|
|
|
%patch15 -p1
|
2015-09-28 17:02:41 +02:00
|
|
|
%ifarch ppc64le
|
|
|
|
%patch16 -p1
|
|
|
|
%endif
|
2006-12-19 00:17:52 +01:00
|
|
|
|
|
|
|
%build
|
2007-01-18 01:47:16 +01:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
2006-12-19 00:17:52 +01:00
|
|
|
%ifarch alpha
|
|
|
|
CFLAGS="$CFLAGS -ffixed-8"
|
|
|
|
%endif
|
2011-03-17 11:43:47 +01:00
|
|
|
%configure \
|
2010-09-27 16:04:04 +02:00
|
|
|
%ifarch %sparc
|
Accepting request 263175 from home:AndreasSchwab:f
- Update to strace 4.9:
* Changes in behavior
* Disabled OABI support on ARM EABI systems by default,
added --enable-arm-oabi option to enable it at configure time.
* Improvements
* Added experimental -k option to print stack trace after each traced syscall.
* Added -w option to produce stats on syscall latency.
(addresses Debian bug #457497).
* Added ARC architecture support.
* Added PTRACE_GETREGS API support on PowerPC.
* Enhanced Bionic libc and musl libc support.
* Enhanced tracing of x86 personality processes on x86_64 and x32.
* Enhanced tracing of ARM personality processes on AArch64.
* Enhanced 32/64bit personality detection on PowerPC.
* Implemented decoding of add_key, ioprio_get, ioprio_set, kexec_load, keyctl,
renameat2, and request_key syscalls.
* Robustified decoding of select, pselect, and io_submit syscalls.
* Enhanced decoding of delete_module, fanotify_init, fanotify_mark, fcntl,
setdomainname, sethostname, setns, and sync_file_range syscalls.
* Enhanced decoding of signal bitmasks.
* Enhanced decoding of file descriptors.
* Enhanced siginfo_t decoding.
* Enhanced PF_NETLINK decoding.
* Updated CLOCK_* constants
(addresses Fedora bug #1088455).
* Added new syscall entries to match Linux 3.16.
* Bug fixes
* Added shmat and shmdt to the set of memory mapping related syscalls.
* Fixed detaching from stopped processes.
* Fixed fanotify_mark decoding on 32bit architectures.
OBS-URL: https://build.opensuse.org/request/show/263175
OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=41
2014-11-26 23:18:01 +01:00
|
|
|
--host=%_target_platform \
|
2010-09-27 16:04:04 +02:00
|
|
|
%endif
|
Accepting request 263175 from home:AndreasSchwab:f
- Update to strace 4.9:
* Changes in behavior
* Disabled OABI support on ARM EABI systems by default,
added --enable-arm-oabi option to enable it at configure time.
* Improvements
* Added experimental -k option to print stack trace after each traced syscall.
* Added -w option to produce stats on syscall latency.
(addresses Debian bug #457497).
* Added ARC architecture support.
* Added PTRACE_GETREGS API support on PowerPC.
* Enhanced Bionic libc and musl libc support.
* Enhanced tracing of x86 personality processes on x86_64 and x32.
* Enhanced tracing of ARM personality processes on AArch64.
* Enhanced 32/64bit personality detection on PowerPC.
* Implemented decoding of add_key, ioprio_get, ioprio_set, kexec_load, keyctl,
renameat2, and request_key syscalls.
* Robustified decoding of select, pselect, and io_submit syscalls.
* Enhanced decoding of delete_module, fanotify_init, fanotify_mark, fcntl,
setdomainname, sethostname, setns, and sync_file_range syscalls.
* Enhanced decoding of signal bitmasks.
* Enhanced decoding of file descriptors.
* Enhanced siginfo_t decoding.
* Enhanced PF_NETLINK decoding.
* Updated CLOCK_* constants
(addresses Fedora bug #1088455).
* Added new syscall entries to match Linux 3.16.
* Bug fixes
* Added shmat and shmdt to the set of memory mapping related syscalls.
* Fixed detaching from stopped processes.
* Fixed fanotify_mark decoding on 32bit architectures.
OBS-URL: https://build.opensuse.org/request/show/263175
OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=41
2014-11-26 23:18:01 +01:00
|
|
|
%{nil}
|
2010-09-27 16:04:04 +02:00
|
|
|
make %{?_smp_mflags}
|
2006-12-19 00:17:52 +01:00
|
|
|
|
2011-10-04 19:47:25 +02:00
|
|
|
# Have to exclude make check for qemu builds, which apparently don't support PTRACE.
|
|
|
|
%if !(0%{?qemu_user_space_build})
|
2011-03-16 11:52:22 +01:00
|
|
|
%check
|
Accepting request 292570 from home:Andreas_Schwab:Factory
- 0001-aarch64-fix-rt_sigreturn-decoding.patch,
0002-m68k-define-HAVE_SA_RESTORER.patch,
0003-Fix-decoding-of-mmap2-for-arm.patch,
0005-tests-select.test-handle-architectures-using-pselect.patch,
0006-aarch64-fix-ioctl-decoding.patch,
0007-m68k-fix-sigreturn-decoding.patch,
0008-Fix-crash-in-ipc_sem-test.patch,
0009-tests-ipc_-match-IPC_64-flag.patch,
0010-semctl-fix-indirect-syscall-decoding.patch,
0011-Fix-stat64-st_-acm-time-decoding-for-personalities-w.patch,
0012-tests-verify-that-all-patterns-match.patch,
0013-aarch64-properly-decode-generic-syscalls.patch,
0014-stat64-v.test-add-newfstatat-syscall-support.patch,
0015-tests-uid-use-fchown-instead-of-chown.patch: Patches from upstream
to fix testsuite failure.
- Enable libunwind support (strace -k).
OBS-URL: https://build.opensuse.org/request/show/292570
OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=44
2015-03-24 19:25:03 +01:00
|
|
|
make check || { cat tests/test-suite.log; exit 1; }
|
2011-10-04 19:47:25 +02:00
|
|
|
%endif
|
2011-03-16 11:28:29 +01:00
|
|
|
|
2006-12-19 00:17:52 +01:00
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
Accepting request 292570 from home:Andreas_Schwab:Factory
- 0001-aarch64-fix-rt_sigreturn-decoding.patch,
0002-m68k-define-HAVE_SA_RESTORER.patch,
0003-Fix-decoding-of-mmap2-for-arm.patch,
0005-tests-select.test-handle-architectures-using-pselect.patch,
0006-aarch64-fix-ioctl-decoding.patch,
0007-m68k-fix-sigreturn-decoding.patch,
0008-Fix-crash-in-ipc_sem-test.patch,
0009-tests-ipc_-match-IPC_64-flag.patch,
0010-semctl-fix-indirect-syscall-decoding.patch,
0011-Fix-stat64-st_-acm-time-decoding-for-personalities-w.patch,
0012-tests-verify-that-all-patterns-match.patch,
0013-aarch64-properly-decode-generic-syscalls.patch,
0014-stat64-v.test-add-newfstatat-syscall-support.patch,
0015-tests-uid-use-fchown-instead-of-chown.patch: Patches from upstream
to fix testsuite failure.
- Enable libunwind support (strace -k).
OBS-URL: https://build.opensuse.org/request/show/292570
OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=44
2015-03-24 19:25:03 +01:00
|
|
|
%doc CREDITS README README-linux-ptrace NEWS
|
2006-12-19 00:17:52 +01:00
|
|
|
%{_prefix}/bin/strace
|
|
|
|
%{_prefix}/bin/strace-graph
|
2012-05-04 11:13:42 +02:00
|
|
|
%{_prefix}/bin/strace-log-merge
|
2015-03-20 21:54:09 +01:00
|
|
|
%{_mandir}/man1/strace.1.gz
|
2006-12-19 00:17:52 +01:00
|
|
|
|
2007-03-16 14:44:03 +01:00
|
|
|
%changelog
|