strace/strace.spec

87 lines
2.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package strace
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: strace
Accepting request 433322 from home:Andreas_Schwab:Factory - Update to strace 4.14 * Changes in behavior * When using -p option without a command and no processes has been attached, strace exits with exit status 1. * Improvements * Added printing of the mode argument of open and openat syscalls when O_TMPFILE flag is set. (Addresses Fedora bug #1377846). * Enhanced -e abbrev=set, -e raw=set, and -e verbose=set. * Enhanced decoding of futex, keyctl, quotactl, timerfd_settime, and aio family syscalls. * Implemented fetching of the 7th subcall argument on mips o32. * Updated lists of BPF_*, ETH_P_*, KEXEC_ARCH_*, SCTP_*, TCP_*, and *_MAGIC constants. * Updated lists of ioctl commands from Linux 4.8. * Added decoding of new syscalls on sh and sh64. * Added RISC-V architecture support. * Bug fixes * Marked io_setup and io_destroy as memory mapping related syscalls. * Fixed leakage of placeholder descriptors to tracees. * Fixed printing of mode_t, umode_t, and umask types. * Fixed decoding of iovec arrays without a limit on total data size. * Fixed decoding of fadvise64, fallocate, futex, keyctl, quotactl, readahead, and ipc family syscalls. * Fixed decoding of invalid syscalls mapped to indirect subcalls. * Fixed decoding of struct btrfs_ioctl_vol_args_v2 on non-native personalities. * Fixed decoding of PTRACE_DETACH on sparc and sparc64. * Fixed decoding of struct stat64 on sparc64. * Fixed decoding of uid and gid-related syscalls on sparc64. * Fixed decoding of the forth argument of semctl syscall on sparc64. OBS-URL: https://build.opensuse.org/request/show/433322 OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=67
2016-10-05 13:20:50 +02:00
Version: 4.14
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
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
BuildRequires: lksctp-tools-devel
BuildRequires: xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# libunwind is broken on ppc and ppc64 and aarch64
%ifarch %ix86 ia64 x86_64 %arm ppc64le
BuildRequires: libunwind-devel
%endif
%if 0%{?suse_version} > 1140
BuildRequires: sysvinit-tools
BuildRequires: time
%endif
%ifarch x86_64
Obsoletes: strace-32bit
%endif
%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
%configure
make %{?_smp_mflags}
# Have to exclude make check for qemu builds, which apparently don'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}
%check
haveged=$(PATH=$PATH:/sbin:%{_sbindir} type -p haveged)
if test -n "$haveged" && ! /sbin/checkproc $haveged ; then
$haveged --pidfile=$PWD/haveged.pid < /dev/null 1>&0 2>&0 || true
fi
make %{?_smp_mflags} check || { cat tests/test-suite.log; exit 1; }
if test -s $PWD/haveged.pid ; then
/sbin/killproc -p $PWD/haveged.pid $haveged
fi
%endif
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
%files
%defattr(-,root,root)
%doc CREDITS README README-linux-ptrace NEWS
%{_bindir}/strace
%{_bindir}/strace-graph
%{_bindir}/strace-log-merge
%{_mandir}/man1/strace.1%{ext_man}
%changelog