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
|
|
|
#
|
Accepting request 498329 from home:AndreasSchwab:f
- Update to strace 4.17
* Changes in command line syntax
* Syscall classes specified in -e trace= option now have % prefix (like
-e trace=%process). Old style class names without leading % are still
supported, but considered deprecated now.
* Improvements
* Optimized syscall filtering.
* Improved representation of timestamps.
* Enhanced decoding of sched_setattr syscall.
* Added -e trace=%stat option for tracing variants of stat syscall.
* Added -e trace=%lstat option for tracing variants of lstat syscall.
* Added -e trace=%fstat option for tracing variants of fstat and fstatat
syscalls.
* Added -e trace=%%stat option for tracing syscalls used for querying file
status information (stat, lstat, fstat, fstatat, statx, and their
variations).
* Added -e trace=%statfs option for tracing statfs, statfs64 and statvfs
syscalls.
* Added -e trace=%fstatfs option for tracing fstatfs, fstatfs64 and fstatvfs
syscalls.
* Added -e trace=%%statfs option for tracing syscalls used for querying file
system statistics information (statfs-like, fstatfs-like and ustat).
* Added -e trace=/regex option for filtering syscalls using regular
expressions.
* Added support for prepending of question mark before syscall qualification
in -e trace expressions in order to suppress error in case no syscalls
matched the provided qualification.
* Implemented decoding of signal mask in rt_sigreturn syscall on alpha, arc,
arm, avr32, bfin, cris, hppa, m68k, metag, microblaze, mips, nios2, or1k,
powerpc, powerpc64, riscv, sh, sh64, sparc, sparc64, tile, x86, and xtensa
OBS-URL: https://build.opensuse.org/request/show/498329
OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=73
2017-05-25 17:17:52 +02:00
|
|
|
# Copyright (c) 2017 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
|
Accepting request 576863 from home:AndreasSchwab
- Update to strace 4.21
* Changes in behaviour
* Warning is now issued when -F option is used.
* Warning is now issued when a tracee with unsupported personality
is attached.
* Unknown syscall numbers are now printed in hexadecimal form.
* Improvements
* Implemented decoding of netlink descriptor attributes as file descriptors.
* Implemented decoding of hugetlb page size selection flags.
* Implemented decoding of BPF_PROG_TEST_RUN, BPF_PROG_GET_NEXT_ID,
BPF_MAP_GET_NEXT_ID, BPF_PROG_GET_FD_BY_ID, BPF_MAP_GET_FD_BY_ID,
and BPF_OBJ_GET_INFO_BY_FD commands of bpf syscall.
* Enhanced decoding of get_thread_area, memfd_create, modify_ldt,
perf_event_open, reboot, s390_guarded_storage, s390_pcio_mmio_read,
s390_pci_mmio_write, s390_runtime_instr, s390_sthyi, set_thread_area,
and shmget syscalls.
* Implemented decoding of KVM_* and DM_LIST_DEVICES ioctl commands.
* Implemented decoding of riscv_flush_icache syscall.
* Enhanced decoding of getsockopt and setsockopt syscalls for SOL_NETLINK
level.
* Enhanced decoding of BPF_MAP_CREATE command of bpf syscall.
* Print values returned by mq_open syscall and first arguments
of mq_getsetattr, mq_notify, mq_timedreceive, and mq_timedsend syscalls
as file descriptors.
* Added decoding of get_tls syscall on arm.
* Added -e trace=%pure option for tracing system calls with no arguments that
never fail.
* Updated lists of IPV6_*, MAP_*, MEMBARRIER_CMD_*, MSG_*, NT_*, PKEY_*,
SHM_*, and TCP_* constants.
* Added manual page for the strace-log-merge command.
OBS-URL: https://build.opensuse.org/request/show/576863
OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=83
2018-02-15 00:00:30 +01:00
|
|
|
Version: 4.21
|
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
|
Accepting request 576863 from home:AndreasSchwab
- Update to strace 4.21
* Changes in behaviour
* Warning is now issued when -F option is used.
* Warning is now issued when a tracee with unsupported personality
is attached.
* Unknown syscall numbers are now printed in hexadecimal form.
* Improvements
* Implemented decoding of netlink descriptor attributes as file descriptors.
* Implemented decoding of hugetlb page size selection flags.
* Implemented decoding of BPF_PROG_TEST_RUN, BPF_PROG_GET_NEXT_ID,
BPF_MAP_GET_NEXT_ID, BPF_PROG_GET_FD_BY_ID, BPF_MAP_GET_FD_BY_ID,
and BPF_OBJ_GET_INFO_BY_FD commands of bpf syscall.
* Enhanced decoding of get_thread_area, memfd_create, modify_ldt,
perf_event_open, reboot, s390_guarded_storage, s390_pcio_mmio_read,
s390_pci_mmio_write, s390_runtime_instr, s390_sthyi, set_thread_area,
and shmget syscalls.
* Implemented decoding of KVM_* and DM_LIST_DEVICES ioctl commands.
* Implemented decoding of riscv_flush_icache syscall.
* Enhanced decoding of getsockopt and setsockopt syscalls for SOL_NETLINK
level.
* Enhanced decoding of BPF_MAP_CREATE command of bpf syscall.
* Print values returned by mq_open syscall and first arguments
of mq_getsetattr, mq_notify, mq_timedreceive, and mq_timedsend syscalls
as file descriptors.
* Added decoding of get_tls syscall on arm.
* Added -e trace=%pure option for tracing system calls with no arguments that
never fail.
* Updated lists of IPV6_*, MAP_*, MEMBARRIER_CMD_*, MSG_*, NT_*, PKEY_*,
SHM_*, and TCP_* constants.
* Added manual page for the strace-log-merge command.
OBS-URL: https://build.opensuse.org/request/show/576863
OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=83
2018-02-15 00:00:30 +01:00
|
|
|
Url: http://strace.io/
|
2013-06-14 14:12:59 +02:00
|
|
|
#Freecode-URL: http://freecode.com/projects/strace
|
Accepting request 576863 from home:AndreasSchwab
- Update to strace 4.21
* Changes in behaviour
* Warning is now issued when -F option is used.
* Warning is now issued when a tracee with unsupported personality
is attached.
* Unknown syscall numbers are now printed in hexadecimal form.
* Improvements
* Implemented decoding of netlink descriptor attributes as file descriptors.
* Implemented decoding of hugetlb page size selection flags.
* Implemented decoding of BPF_PROG_TEST_RUN, BPF_PROG_GET_NEXT_ID,
BPF_MAP_GET_NEXT_ID, BPF_PROG_GET_FD_BY_ID, BPF_MAP_GET_FD_BY_ID,
and BPF_OBJ_GET_INFO_BY_FD commands of bpf syscall.
* Enhanced decoding of get_thread_area, memfd_create, modify_ldt,
perf_event_open, reboot, s390_guarded_storage, s390_pcio_mmio_read,
s390_pci_mmio_write, s390_runtime_instr, s390_sthyi, set_thread_area,
and shmget syscalls.
* Implemented decoding of KVM_* and DM_LIST_DEVICES ioctl commands.
* Implemented decoding of riscv_flush_icache syscall.
* Enhanced decoding of getsockopt and setsockopt syscalls for SOL_NETLINK
level.
* Enhanced decoding of BPF_MAP_CREATE command of bpf syscall.
* Print values returned by mq_open syscall and first arguments
of mq_getsetattr, mq_notify, mq_timedreceive, and mq_timedsend syscalls
as file descriptors.
* Added decoding of get_tls syscall on arm.
* Added -e trace=%pure option for tracing system calls with no arguments that
never fail.
* Updated lists of IPV6_*, MAP_*, MEMBARRIER_CMD_*, MSG_*, NT_*, PKEY_*,
SHM_*, and TCP_* constants.
* Added manual page for the strace-log-merge command.
OBS-URL: https://build.opensuse.org/request/show/576863
OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=83
2018-02-15 00:00:30 +01:00
|
|
|
#Git-Clone: git://github.com/strace/strace
|
|
|
|
Source: https://github.com/strace/strace/releases/download/v%{version}/%{name}-%{version}.tar.xz
|
|
|
|
Source2: https://github.com/strace/strace/releases/download/v%{version}/%{name}-%{version}.tar.xz.asc
|
2016-04-16 17:46:19 +02:00
|
|
|
Source3: %{name}.keyring
|
2013-06-14 14:12:59 +02:00
|
|
|
Source4: baselibs.conf
|
2015-11-16 11:24:21 +01:00
|
|
|
BuildRequires: haveged
|
- 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
|
2016-04-16 17:46:19 +02:00
|
|
|
BuildRequires: lksctp-tools-devel
|
|
|
|
BuildRequires: xz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-05-20 14:58:53 +02:00
|
|
|
# libunwind is broken on ppc and ppc64 and aarch64
|
2016-04-16 17:46:19 +02:00
|
|
|
%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
|
2016-04-16 17:46:19 +02:00
|
|
|
%if 0%{?suse_version} > 1140
|
2015-11-16 11:24:21 +01:00
|
|
|
BuildRequires: sysvinit-tools
|
|
|
|
BuildRequires: time
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2016-04-16 17:46:19 +02:00
|
|
|
%configure
|
2010-09-27 16:04:04 +02:00
|
|
|
make %{?_smp_mflags}
|
2006-12-19 00:17:52 +01:00
|
|
|
|
Accepting request 445751 from home:Andreas_Schwab:Factory
- Update to strace 4.15
* Changes in behavior
* Time stamps are now printed according to ISO 8601.
* Changed output format of val3 parameter of futex FUTEX_WAKE_OP operation.
* The last argument of mincore, sched_getaffinity, and sched_setaffinity
syscalls is now formatted as an array.
* Improvements
* Implemented syscall fault injection (-e fault=... option).
* Implemented decoding of DM_* ioctl commands.
* Implemented decoding of attr parameter of perf_event_open syscall.
* Implemented decoding of pkey_alloc, pkey_free, and pkey_mprotect syscalls.
* Implemented dumping of mq_timedsend and mq_timedreceive syscalls.
* Implemented decoding of PR_SET_FP_MODE and PR_GET_FP_MODE operations
of prctl syscall.
* Implemented PTRACE_GETREGS API support on m68k.
* Updated lists of ARCH_*, BPF_*, BTRFS_*, FALLOC_*, MS_*, *_MAGIC,
and V4L2_* constants.
* Updated lists of ioctl commands from Linux 4.9.
* Added decoding of recently added syscalls on arc, x32, and xtensa.
* Enhanced manual page.
* Bug fixes
* Fixed corner cases in decoding of exit, exit_group, futimesat, getgroups,
getresuid, init_module, inotify_init1, kcmp, kexec_load, lookup_dcookie,
mq_getsetattr, mq_notify, mq_open, mq_timedreceive, mq_timedsend,
name_to_handle_at, prctl, process_vm_readv, process_vm_writev, setfsuid,
setgroups, setns, unshare, and utimes syscalls.
* Fixed handling of verbose flag in printing of controls array
of struct v4l2_ext_controls.
* Fixed omission of field names in the output of capability, sigaction,
sigevent, statfs, timespec, timeval, and utimbuf structures.
OBS-URL: https://build.opensuse.org/request/show/445751
OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=69
2016-12-15 09:06:39 +01:00
|
|
|
# Exclude testsuite for qemu builds, qemu-linux-user doesn't support ptrace.
|
Accepting request 399945 from home:AndreasSchwab:f
- Update to strace 4.12.
* Improvements
* Implemented simultaneous use of -p option and tracing of a command.
* Implemented caching of netlink conversations to reduce amount of time
spent in decoding socket details in -yy mode.
* Implemented -yy mode decoding of protocol:portid pairs associated with
netlink socket descriptors.
* Implemented decoding of copy_file_range, preadv2, and pwritev2 syscalls.
* Implemented dumping of preadv, preadv2, pwritev, pwritev2, and vmsplice
syscalls.
* Implemented decoding of BTRFS_* and UFFDIO_* ioctl commands.
* Enhanced decoding of BLK*, EVIOC*, RTC_*, and VIDIOC_* ioctl commands.
* Enhanced decoding of fstatfs, fstatfs64, get_mempolicy, getdents,
getdents64, getgroups, getpriority, kill, mbind, migrate_pages, mknod,
mknodat, personality, poll, ppoll, quotactl, rt_sigpending,
rt_sigqueueinfo, rt_sigtimedwait, rt_tgsigqueueinfo, sched_getaffinity,
sched_setaffinity, seccomp, set_mempolicy, setgroups, setpriority, statfs,
statfs64, tgkill, waitid, and xattr family syscalls.
* Enhanced decoding of getxpid, getxuid, and getxgid syscalls on alpha.
* Enhanced decoding of pipe syscall on alpha, ia64, mips, sh, and sparc.
* Added decoding of bind, listen, and setsockopt direct syscalls on sparc.
* Added decoding of osf_statfs64 and osf_fstatfs64 syscalls on alpha.
* Added decoding of fadvise64 and fadvise64_64 on s390.
* Updated lists of AF_*, BPF_MAP_TYPE_*, CLONE_*, EPOLL*, IPV6_*, MADV_*,
MSG_*, PTRACE_*, SEGV_*, SO_*, SOL_*, *_MAGIC, and quotactl constants.
* Updated lists of ioctl commands from Linux 4.6.
* Bug fixes
* Fixed build on arc, metag, nios2, or1k, and tile architectures.
* Fixed decoding of 32-bit times syscall return value on 64-bit architectures.
* Fixed decoding of mlock2 syscall on sparc.
OBS-URL: https://build.opensuse.org/request/show/399945
OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=63
2016-06-03 11:55:00 +02:00
|
|
|
%if !0%{?qemu_user_space_build}
|
2011-03-16 11:52:22 +01:00
|
|
|
%check
|
2016-04-16 17:46:19 +02:00
|
|
|
haveged=$(PATH=$PATH:/sbin:%{_sbindir} type -p haveged)
|
2015-11-16 11:24:21 +01:00
|
|
|
if test -n "$haveged" && ! /sbin/checkproc $haveged ; then
|
|
|
|
$haveged --pidfile=$PWD/haveged.pid < /dev/null 1>&0 2>&0 || true
|
|
|
|
fi
|
2016-04-16 17:46:19 +02:00
|
|
|
make %{?_smp_mflags} check || { cat tests/test-suite.log; exit 1; }
|
2015-11-16 11:24:21 +01:00
|
|
|
if test -s $PWD/haveged.pid ; then
|
|
|
|
/sbin/killproc -p $PWD/haveged.pid $haveged
|
|
|
|
fi
|
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
|
2016-04-16 17:46:19 +02:00
|
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
2006-12-19 00:17:52 +01:00
|
|
|
|
|
|
|
%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
|
2016-04-16 17:46:19 +02:00
|
|
|
%{_bindir}/strace
|
|
|
|
%{_bindir}/strace-graph
|
|
|
|
%{_bindir}/strace-log-merge
|
|
|
|
%{_mandir}/man1/strace.1%{ext_man}
|
Accepting request 576863 from home:AndreasSchwab
- Update to strace 4.21
* Changes in behaviour
* Warning is now issued when -F option is used.
* Warning is now issued when a tracee with unsupported personality
is attached.
* Unknown syscall numbers are now printed in hexadecimal form.
* Improvements
* Implemented decoding of netlink descriptor attributes as file descriptors.
* Implemented decoding of hugetlb page size selection flags.
* Implemented decoding of BPF_PROG_TEST_RUN, BPF_PROG_GET_NEXT_ID,
BPF_MAP_GET_NEXT_ID, BPF_PROG_GET_FD_BY_ID, BPF_MAP_GET_FD_BY_ID,
and BPF_OBJ_GET_INFO_BY_FD commands of bpf syscall.
* Enhanced decoding of get_thread_area, memfd_create, modify_ldt,
perf_event_open, reboot, s390_guarded_storage, s390_pcio_mmio_read,
s390_pci_mmio_write, s390_runtime_instr, s390_sthyi, set_thread_area,
and shmget syscalls.
* Implemented decoding of KVM_* and DM_LIST_DEVICES ioctl commands.
* Implemented decoding of riscv_flush_icache syscall.
* Enhanced decoding of getsockopt and setsockopt syscalls for SOL_NETLINK
level.
* Enhanced decoding of BPF_MAP_CREATE command of bpf syscall.
* Print values returned by mq_open syscall and first arguments
of mq_getsetattr, mq_notify, mq_timedreceive, and mq_timedsend syscalls
as file descriptors.
* Added decoding of get_tls syscall on arm.
* Added -e trace=%pure option for tracing system calls with no arguments that
never fail.
* Updated lists of IPV6_*, MAP_*, MEMBARRIER_CMD_*, MSG_*, NT_*, PKEY_*,
SHM_*, and TCP_* constants.
* Added manual page for the strace-log-merge command.
OBS-URL: https://build.opensuse.org/request/show/576863
OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=83
2018-02-15 00:00:30 +01:00
|
|
|
%{_mandir}/man1/strace-log-merge.1%{ext_man}
|
2006-12-19 00:17:52 +01:00
|
|
|
|
2007-03-16 14:44:03 +01:00
|
|
|
%changelog
|