Compare commits

...

45 Commits
f22 ... master

Author SHA1 Message Date
Dmitry V. Levin
58f60c2782 5.10-1
- v5.9 -> v5.10.
2020-12-14 08:06:59 +00:00
Dmitry V. Levin
a2e76d2cbe Revert unapproved commits
All gcc-11 false positive diagnostics must be fixed in gcc itself,
please don't push gcc bugs to innocent users.

This reverts the following commits:
5cf517f608 (Work around gcc-11 false positive diagnostic)
e4ee13ea3d (Work around more gcc-11 false positive diagnostics)
2020-12-11 08:00:00 +00:00
Jeff Law
e4ee13ea3d Work around more gcc-11 false positive diagnostics 2020-12-10 15:41:00 -07:00
Eugene Syromiatnikov
50008c5457 Mark ipc tests as XFAIL on all arches and patch up pselect6/semtimedop
Just to please all that RHEL/ELN kerfuffle.

Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2020-10-22 04:56:54 +02:00
Eugene Syromiatnikov
8300939a78 Work around build issues
- 0001-noinline.patch adds __attribute__((noinline) in fstack_call to
  address LTO optimisations on s390x;
- 0002-ipc-xfail.patch marks ipc_msg/ipc_shm tests as XFAIL due to glibc
  bug.

Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2020-10-06 20:50:18 +02:00
Eugene Syromiatnikov
9831aa9ea1 5.9-1
- v5.8 -> v5.9 (resolves: #1035433).

Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2020-10-06 20:19:26 +02:00
Jeff Law
5cf517f608 Work around gcc-11 false positive diagnostic 2020-08-19 14:14:02 -06:00
Dmitry V. Levin
5459233e94 5.8-1
- v5.7 -> v5.8.
2020-08-06 15:18:21 +00:00
Fedora Release Engineering
c47fccf621 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-08-01 09:11:59 +00:00
Fedora Release Engineering
3cc1d61c59 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 11:33:17 +00:00
Dmitry V. Levin
cf2f158615 5.7.0.6.7ab6-1
- v5.7 -> v5.7-6-g7ab6497fd.
2020-06-08 21:41:00 +00:00
Dmitry V. Levin
8838867133 5.7-1
- v5.6 -> v5.7.
2020-06-01 23:17:00 +03:00
Dmitry V. Levin
fd022d67c8 5.6-1
- v5.5 -> v5.6.
2020-04-07 11:07:44 +00:00
Dmitry V. Levin
9fe9e66a3e 5.5-1
- v5.4 -> v5.5.
2020-02-06 16:24:23 +00:00
Fedora Release Engineering
248bce3a49 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-31 00:24:42 +00:00
Dmitry V. Levin
bcf84d7962 5.4-1
- v5.3 -> v5.4.
2019-11-28 20:48:34 +00:00
Dmitry V. Levin
21af5a8e56 5.3-1
- v5.2 -> v5.3.
2019-09-25 14:06:32 +00:00
Fedora Release Engineering
d0be65b99e - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-27 00:18:13 +00:00
Dmitry V. Levin
601088ff11 5.2-1
- v5.1 -> v5.2.
2019-07-12 13:13:00 +00:00
Dmitry V. Levin
d9077d967a 5.1-1
- v5.0 -> v5.1.
2019-05-22 13:09:29 +00:00
Dmitry V. Levin
8d284f2b0d 5.0-1
- v4.26 -> v5.0 (resolves: #478419, #526740, #851457, #1609318,
  #1610774, #1662936, #1676045).
2019-03-19 03:58:00 +00:00
Fedora Release Engineering
207f1222b1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-03 08:43:11 +00:00
Igor Gnatenko
c9d0f6551c Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:50 +01:00
Dmitry V. Levin
082bfff825 4.26-1
- v4.25 -> v4.26.
2018-12-27 01:18:00 +00:00
Dmitry V. Levin
4d09d3dc99 4.25-1
- v4.24 -> v4.25.
2018-10-30 08:40:00 +00:00
Dmitry V. Levin
910d7cb00e 4.24-1
- v4.23 -> v4.24.
2018-08-14 00:45:00 +00:00
Fedora Release Engineering
de402ea3b2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 06:48:23 +00:00
Jason Tibbitts
9d4cdb8db8 Remove needless use of %defattr 2018-07-10 01:29:11 -05:00
Dmitry V. Levin
28dcb3a5dd 4.23-1
- v4.22 -> v4.23.
- Enabled libdw backend for -k option (#1568647).
2018-06-14 18:05:00 +00:00
Dmitry V. Levin
d0edd71edc 4.22-1
- v4.21 -> v4.22.
2018-04-05 05:55:00 +00:00
Dmitry V. Levin
b1027ba73f 4.21-1
- v4.20 -> v4.21.
2018-02-13 23:26:59 +00:00
Fedora Release Engineering
65366e7613 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 17:47:35 +00:00
Dmitry V. Levin
1e4285b2c5 4.20-1
- v4.19 -> v4.20.
2017-11-13 21:49:00 +00:00
Dmitry V. Levin
0f95f16e9b 4.19-1
- v4.18 -> v4.19.
2017-09-05 12:15:00 +00:00
Fedora Release Engineering
d066b4cde1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 08:54:04 +00:00
Fedora Release Engineering
01b58d36bd - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 19:24:06 +00:00
Dmitry V. Levin
cf74697771 4.18-1
- v4.17 -> v4.18.
2017-07-05 07:36:06 +00:00
Dmitry V. Levin
b90330e1c2 4.17-1
- v4.16 -> v4.17.
2017-05-24 20:18:21 +00:00
Dmitry V. Levin
2552fe1278 4.17-1
- v4.16 -> v4.17.
2017-05-24 20:15:18 +00:00
Dmitry V. Levin
68d2893d66 4.16-1
- v4.15 -> v4.16.
2017-02-14 10:11:12 +00:00
Fedora Release Engineering
0393609801 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 14:03:08 +00:00
Dmitry V. Levin
f40adf54c8 4.15-1
- v4.14-100-g622af42 -> v4.15.
2016-12-14 11:28:08 +00:00
Dmitry V. Levin
1b23451284 4.14.0.100.622a-1
- v4.14 -> v4.14-100-g622af42:
  + implemented syscall fault injection.
2016-11-16 18:32:40 +00:00
Dmitry V. Levin
3cc46cd063 4.14-1
- v4.13 -> v4.14:
  + added printing of the mode argument of open and openat syscalls
    when O_TMPFILE flag is set (#1377846).
2016-10-04 18:19:20 +00:00
Dmitry V. Levin
bff7462508 4.13-1
- v4.12 -> v4.13.
2016-07-26 16:17:18 +00:00
3 changed files with 149 additions and 55 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
/strace-4.12.tar.xz /strace-5.10.tar.xz

View File

@ -1 +1 @@
efb8611fc332e71ec419c53f59faa93e strace-4.12.tar.xz SHA512 (strace-5.10.tar.xz) = 1baa41b6d52f2e40e42a22850beee1ae278fafe712796694631898f06a7540d8f2c3fa70807e0062734f0976ebbd0824457c733ccda248f017c218387366ed48

View File

@ -1,18 +1,49 @@
Summary: Tracks and displays system calls associated with a running process Summary: Tracks and displays system calls associated with a running process
Name: strace Name: strace
Version: 4.12 Version: 5.10
Release: 1%{?dist} Release: 1%{?dist}
%define srcname %name-%version # The test suite is GPLv2+, all the rest is LGPLv2.1+.
License: BSD License: LGPL-2.1+ and GPL-2.0+
Group: Development/Debuggers # Some distros require Group tag to be present,
URL: http://sourceforge.net/projects/strace/ # some require Group tag to be absent,
Source: http://downloads.sourceforge.net/strace/%{srcname}.tar.xz # some do not care about Group tag at all,
BuildRequires: time # and we have to cater for all of them.
%ifarch x86_64 %if 0%{?fedora} < 28 && 0%{?centos} < 8 && 0%{?rhel} < 8 && 0%{?suse_version} < 1500
# for experimental -k option Group: Development%{?suse_version:/Tools}/Debuggers
BuildRequires: libunwind-devel
%endif %endif
%define strace64_arches ppc64 sparc64 URL: https://strace.io
%if 0%{?fedora} >= 12 || 0%{?centos} >= 6 || 0%{?rhel} >= 6 || 0%{?suse_version} >= 1200
Source: https://strace.io/files/%{version}/strace-%{version}.tar.xz
BuildRequires: xz
%else
Source: strace-%{version}.tar.gz
%endif
BuildRequires: gcc gzip
# Install Bluetooth headers for AF_BLUETOOTH sockets decoding.
%if 0%{?fedora} >= 18 || 0%{?centos} >= 6 || 0%{?rhel} >= 8 || 0%{?suse_version} >= 1200
BuildRequires: pkgconfig(bluez)
%endif
# Install elfutils-devel or libdw-devel to enable strace -k option.
# Install binutils-devel to enable symbol demangling.
%if 0%{?fedora} >= 20 || 0%{?centos} >= 6 || 0%{?rhel} >= 6
%define buildrequires_stacktrace BuildRequires: elfutils-devel binutils-devel
%endif
%if 0%{?suse_version} >= 1100
%define buildrequires_stacktrace BuildRequires: libdw-devel binutils-devel
%endif
%{?buildrequires_stacktrace}
# OBS compatibility
%{?!buildroot:BuildRoot: %_tmppath/buildroot-%name-%version-%release}
%define maybe_use_defattr %{?suse_version:%%defattr(-,root,root)}
# Fallback definitions for make_build/make_install macros
%{?!__make: %global __make %_bindir/make}
%{?!__install: %global __install %_bindir/install}
%{?!make_build: %global make_build %__make %{?_smp_mflags}}
%{?!make_install: %global make_install %__make install DESTDIR="%{?buildroot}" INSTALL="%__install -p"}
%description %description
The strace program intercepts and records the system calls called and The strace program intercepts and records the system calls called and
@ -24,27 +55,11 @@ purposes.
Install strace if you need a tool to track the system calls made and Install strace if you need a tool to track the system calls made and
received by a process. received by a process.
%ifarch %{strace64_arches}
%package -n strace64
Summary: Tracks and displays system calls associated with a running process.
Group: Development/Debuggers
%description -n strace64
The strace program intercepts and records the system calls called and
received by a running process. Strace can print a record of each
system call, its arguments and its return value. Strace is useful for
diagnosing problems and debugging, as well as for instructional
purposes.
Install strace if you need a tool to track the system calls made and
received by a process.
This package provides the `strace64' program to trace 64-bit processes.
The `strace' program in the `strace' package is for 32-bit processes.
%endif
%prep %prep
%setup -q -n %{srcname} %setup -q
echo -n %version-%release > .tarball-version
echo -n 2020 > .year
echo -n 2020-11-29 > .strace.1.in.date
%build %build
echo 'BEGIN OF BUILD ENVIRONMENT INFORMATION' echo 'BEGIN OF BUILD ENVIRONMENT INFORMATION'
@ -53,48 +68,127 @@ libc="$(ldd /bin/sh |sed -n 's|^[^/]*\(/[^ ]*/libc\.so[^ ]*\).*|\1|p' |head -1)"
$libc |head -1 $libc |head -1
file -L /bin/sh file -L /bin/sh
gcc --version |head -1 gcc --version |head -1
kver="$(echo -e '#include <linux/version.h>\nLINUX_VERSION_CODE' | gcc -E -P -)" ld --version |head -1
kver="$(printf '%%s\n%%s\n' '#include <linux/version.h>' 'LINUX_VERSION_CODE' | gcc -E -P -)"
printf 'kernel-headers %%s.%%s.%%s\n' $(($kver/65536)) $(($kver/256%%256)) $(($kver%%256)) printf 'kernel-headers %%s.%%s.%%s\n' $(($kver/65536)) $(($kver/256%%256)) $(($kver%%256))
echo 'END OF BUILD ENVIRONMENT INFORMATION' echo 'END OF BUILD ENVIRONMENT INFORMATION'
%configure CFLAGS_FOR_BUILD="$RPM_OPT_FLAGS"; export CFLAGS_FOR_BUILD
make %{?_smp_mflags} %configure --enable-mpers=check
%make_build
%install %install
make DESTDIR=%{buildroot} install %make_install
# remove unpackaged files from the buildroot # remove unpackaged files from the buildroot
rm -f %{buildroot}%{_bindir}/strace-graph rm -f %{buildroot}%{_bindir}/strace-graph
%define copy64 ln # some say uncompressed changelog files are too big
%if 0%{?rhel} for f in ChangeLog ChangeLog-CVS; do
%if 0%{?rhel} < 6 gzip -9n < "$f" > "$f".gz &
%endif done
%define copy64 cp -p wait
%endif
%ifarch %{strace64_arches}
%{copy64} %{buildroot}%{_bindir}/strace %{buildroot}%{_bindir}/strace64
%endif
%check %check
make %{?_smp_mflags} -k check VERBOSE=1 %{buildroot}%{_bindir}/strace -V
%make_build -k check VERBOSE=1
echo 'BEGIN OF TEST SUITE INFORMATION' echo 'BEGIN OF TEST SUITE INFORMATION'
tail -n 99999 -- tests*/test-suite.log tests*/ksysent.log tail -n 99999 -- tests*/test-suite.log tests*/ksysent.gen.log
find tests* -type f -name '*.log' -print0 |
xargs -r0 grep -H '^KERNEL BUG:' -- ||:
echo 'END OF TEST SUITE INFORMATION' echo 'END OF TEST SUITE INFORMATION'
%files %files
%doc CREDITS ChangeLog ChangeLog-CVS COPYING NEWS README %maybe_use_defattr
%doc CREDITS ChangeLog.gz ChangeLog-CVS.gz COPYING NEWS README
%{_bindir}/strace %{_bindir}/strace
%{_bindir}/strace-log-merge %{_bindir}/strace-log-merge
%{_mandir}/man1/* %{_mandir}/man1/*
%ifarch %{strace64_arches}
%files -n strace64
%{_bindir}/strace64
%endif
%changelog %changelog
* Mon Dec 14 2020 Dmitry V. Levin <ldv@altlinux.org> - 5.10-1
- v5.9 -> v5.10.
* Thu Sep 24 2020 Dmitry V. Levin <ldv@altlinux.org> - 5.9-1
- v5.8 -> v5.9.
* Thu Aug 06 2020 Dmitry V. Levin <ldv@altlinux.org> - 5.8-1
- v5.7 -> v5.8.
* Mon Jun 01 2020 Dmitry V. Levin <ldv@altlinux.org> - 5.7-1
- v5.6 -> v5.7.
* Tue Apr 07 2020 Dmitry V. Levin <ldv@altlinux.org> - 5.6-1
- v5.5 -> v5.6.
* Thu Feb 06 2020 Dmitry V. Levin <ldv@altlinux.org> - 5.5-1
- v5.4 -> v5.5.
* Thu Nov 28 2019 Dmitry V. Levin <ldv@altlinux.org> - 5.4-1
- v5.3 -> v5.4.
* Wed Sep 25 2019 Dmitry V. Levin <ldv@altlinux.org> - 5.3-1
- v5.2 -> v5.3.
* Fri Jul 12 2019 Dmitry V. Levin <ldv@altlinux.org> - 5.2-1
- v5.1 -> v5.2.
* Wed May 22 2019 Dmitry V. Levin <ldv@altlinux.org> - 5.1-1
- v5.0 -> v5.1.
* Tue Mar 19 2019 Dmitry V. Levin <ldv@altlinux.org> - 5.0-1
- v4.26 -> v5.0 (resolves: #478419, #526740, #851457, #1609318,
#1610774, #1662936, #1676045).
* Wed Dec 26 2018 Dmitry V. Levin <ldv@altlinux.org> - 4.26-1
- v4.25 -> v4.26.
* Tue Oct 30 2018 Dmitry V. Levin <ldv@altlinux.org> - 4.25-1
- v4.24 -> v4.25.
* Tue Aug 14 2018 Dmitry V. Levin <ldv@altlinux.org> - 4.24-1
- v4.23 -> v4.24.
* Thu Jun 14 2018 Dmitry V. Levin <ldv@altlinux.org> - 4.23-1
- v4.22 -> v4.23.
- Enabled libdw backend for -k option (#1568647).
* Thu Apr 05 2018 Dmitry V. Levin <ldv@altlinux.org> - 4.22-1
- v4.21 -> v4.22.
* Tue Feb 13 2018 Dmitry V. Levin <ldv@altlinux.org> - 4.21-1
- v4.20 -> v4.21.
* Mon Nov 13 2017 Dmitry V. Levin <ldv@altlinux.org> - 4.20-1
- v4.19 -> v4.20.
* Tue Sep 05 2017 Dmitry V. Levin <ldv@altlinux.org> - 4.19-1
- v4.18 -> v4.19.
* Wed Jul 05 2017 Dmitry V. Levin <ldv@altlinux.org> - 4.18-1
- v4.17 -> v4.18.
* Wed May 24 2017 Dmitry V. Levin <ldv@altlinux.org> - 4.17-1
- v4.16 -> v4.17.
* Tue Feb 14 2017 Dmitry V. Levin <ldv@altlinux.org> - 4.16-1
- v4.15 -> v4.16.
* Wed Dec 14 2016 Dmitry V. Levin <ldv@altlinux.org> - 4.15-1
- v4.14-100-g622af42 -> v4.15.
* Wed Nov 16 2016 Dmitry V. Levin <ldv@altlinux.org> - 4.14.0.100.622a-1
- v4.14 -> v4.14-100-g622af42:
+ implemented syscall fault injection.
* Tue Oct 04 2016 Dmitry V. Levin <ldv@altlinux.org> - 4.14-1
- v4.13 -> v4.14:
+ added printing of the mode argument of open and openat syscalls
when O_TMPFILE flag is set (#1377846).
* Tue Jul 26 2016 Dmitry V. Levin <ldv@altlinux.org> - 4.13-1
- v4.12 -> v4.13.
* Tue May 31 2016 Dmitry V. Levin <ldv@altlinux.org> - 4.12-1 * Tue May 31 2016 Dmitry V. Levin <ldv@altlinux.org> - 4.12-1
- v4.11-163-g972018f -> v4.12. - v4.11-163-g972018f -> v4.12.