- Update to strace 4.23 * Changes in behaviour * On x32 personality, 64-bit syscalls (such as readv) are now shown with "#64" suffix instead of "64:" prefix. * Changed error number output format: error numbers are consistently printed as "-1 ECONST (Error description)" for known errors and as "-1 (errno 123)" for unknown errors, regardless of -e raw qualification settings. * Unfetchable addresses inside arrays are now printed as comments. * Obsolete IA-32 mode syscall names are no longer printed on ia64. * Improvements * Implemented libdw backend for -k option, configured at build time using --with-libdw option. * Added -X option for configuring xlat output formatting (addresses Debian bug #692915). * Added support for personality designation ("64", "32", or "x32") to syscall qualifications in -e trace expressions. * Implemented injection of syscalls with no side effects as an alternative to injection of an invalid syscall (-e inject=SET:syscall= expression). * Improved support for reproducible builds (addresses Debian bug #896016). * Implemented decoding of BPF_PROG_QUERY and BPF_RAW_TRACEPOINT_OPEN bpf syscall commands. * Implemented decoding of INOTIFY_IOC_SETNEXTWD and PERF_EVENT_IOC_* ioctl commands. * Implemented decoding of PR_GET_SPECULATION_CTRL and PR_SET_SPECULATION_CTRL prctl syscall options. * Enhanced decoding of bpf, getsockopt, setsockopt, and socket syscalls. * Enhanced decoding of NETLINK_KOBJECT_UEVENT and NETLINK_ROUTE protocols. * Enhanced decoding of *_DIAG_MEMINFO netlink attributes. * Enhanced decoding of BTRFS_*, FS_IOC_*, SIOCGIFHWADDR, and SIOCSIFHWADDR OBS-URL: https://build.opensuse.org/request/show/617219 OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=89
96 lines
2.9 KiB
RPMSpec
96 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package strace
|
|
#
|
|
# Copyright (c) 2018 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
|
|
Version: 4.23
|
|
Release: 0
|
|
Summary: A utility to trace the system calls of a program
|
|
License: BSD-3-Clause
|
|
Group: Development/Tools/Debuggers
|
|
Url: http://strace.io/
|
|
#Freecode-URL: http://freecode.com/projects/strace
|
|
#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
|
|
Source3: %{name}.keyring
|
|
Source4: baselibs.conf
|
|
BuildRequires: haveged
|
|
BuildRequires: libacl-devel
|
|
BuildRequires: libaio-devel
|
|
%if 0%{?suse_version} >= 1500
|
|
BuildRequires: libdw-devel
|
|
%else
|
|
# libunwind is broken on ppc and ppc64 and aarch64
|
|
%ifarch %ix86 ia64 x86_64 %arm ppc64le
|
|
BuildRequires: libunwind-devel
|
|
%endif
|
|
%endif
|
|
BuildRequires: lksctp-tools-devel
|
|
BuildRequires: xz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%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 \
|
|
%ifarch aarch64 riscv64
|
|
--disable-mpers \
|
|
%endif
|
|
%{nil}
|
|
make %{?_smp_mflags}
|
|
|
|
# Exclude testsuite for qemu builds, qemu-linux-user doesn't support ptrace.
|
|
%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}
|
|
%{_mandir}/man1/strace-log-merge.1%{ext_man}
|
|
|
|
%changelog
|