e4ad3750ef
- Update to strace 5.19 * Changes in behaviour * The "(deleted)" marker for unlinked paths of file descriptors is now printed outside angle brackets; * Improvements * Implemented printing of Unix socket sun_path field's SELinux context. * Implemented decoding of SO_TXREHASH socket option. * Implemented decoding of IFLA_TSO_MAX_SIZE, IFLA_TSO_MAX_SEGS, NDA_FDB_EXT_ATTRS, NDA_FLAGS_EXT, NDA_NDM_FLAGS_MASK, and NDA_NDM_STATE_MASK netlink attributes. * Improved decoding of INET_DIAG_LOCALS, INET_DIAG_MD5SIG, INET_DIAG_PEERS, INET_DIAG_PROTOCOL, INET_DIAG_REQ_PROTOCOL, INET_DIAG_SHUTDOWN, INET_DIAG_SK_BPF_STORAGES, INET_DIAG_SOCKOPT, and INET_DIAG_ULP_INFO NETLINK_SOCK_DIAG netlink attributes. * Enhanced decoding of arch_prctl and prctl syscalls. * Enhanced siginfo_t decoding. * Updated decoding of struct rtnl_link_stats64. * Updated lists of DEVCONF_*, FAN_MARK_*, GPIO_V2_LINE_FLAG_*, IORING_*, KEXEC_*, LANDLOCK_*, NET_IPV4_CONF_*, NLM_F_*, NT_*, PR_*, SECCOMP_*, UFFD_FEATURE_*, V4L2_CID_*, and V4L2_PIX_FMT_* constants. * Updated lists of ioctl commands from Linux 5.19. OBS-URL: https://build.opensuse.org/request/show/994822 OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=145
95 lines
2.8 KiB
RPMSpec
95 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package strace
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: strace
|
|
Version: 5.19
|
|
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
|
|
--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
|
|
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 doc/README-linux-ptrace NEWS
|
|
%{_bindir}/strace
|
|
%{_bindir}/strace-log-merge
|
|
%{_mandir}/man1/strace.1%{ext_man}
|
|
%{_mandir}/man1/strace-log-merge.1%{ext_man}
|
|
|
|
%changelog
|