strace/strace.spec
Andreas Schwab 99b121e243 Accepting request 521514 from home:AndreasSchwab:f
- Update to strace 4.19
  * Changes in behaviour
    * Changed formatting of personality names on tile architecture in order
      to make it in line with other multi-personality architectures.
    * Changed field output order in struct v4l2_requestbuffers to improve in/out
      field formatting.
    * Changed handling of multiple signal= specifications in an injection
      expression: multiple specification now leads to error instead of implicit
      usage the last specification.
  * Improvements
    * Enhanced decoding of optlen argument of getsockopt syscall.
    * Enhanced decoding of SO_LINGER option of getsockopt and setsockopt syscalls.
    * Enhanced decoding of SO_PEERCRED option of getsockopt syscall.
    * Enhanced decoding of IP_ADD_MEMBERSHIP, IP_DROP_MEMBERSHIP,
      IPV6_ADD_MEMBERSHIP, IPV6_DROP_MEMBERSHIP, IPV6_JOIN_ANYCAST,
      IPV6_LEAVE_ANYCAST, MCAST_JOIN_GROUP, and MCAST_LEAVE_GROUP options
      of setsockopt syscall.
    * Enhanced decoding of KEYCTL_DH_COMPUTE operation of keyctl syscall
      (KDF parameters decoding).
    * Implemented decoding of KEYCTL_RESTRICT_KEYRING operation of keyctl syscall.
    * Enhanced decoding of UFFDIO_API ioctl command.
    * Enhanced decoding of BPF_PROG_LOAD, BPF_MAP_CREATE, BPF_MAP_LOOKUP_ELEM,
      and BPF_MAP_GET_NEXT_KEY commands of bpf syscall.
    * Implemented decoding of linux socket filter programs specified
      for SO_ATTACH_FILTER and SO_ATTACH_REUSEPORT_CBPF socket options.
    * Implemented decoding of inet_diag_req_v2, inet_diag_req_compat,
      packet_diag_msg, and smc_diag_msg netlink attributes of NETLINK_SOCK_DIAG.
    * Implemented NETLINK_SELINUX protocol specific decoding.
    * Implemented decoding of netlink message ack flags.
    * Implemented decoding of nlmsgerr netlink attributes.

OBS-URL: https://build.opensuse.org/request/show/521514
OBS-URL: https://build.opensuse.org/package/show/devel:tools/strace?expand=0&rev=77
2017-09-05 17:46:50 +00:00

87 lines
2.7 KiB
RPMSpec

#
# spec file for package strace
#
# Copyright (c) 2017 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.19
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
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}
# 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}
%changelog