|
|
244288 |
%global __python /usr/bin/python3
|
|
|
244288 |
%{?scl:%{?scl_package:%scl_package ltrace}}
|
|
|
244288 |
|
|
|
244288 |
Summary: Tracks runtime library calls from dynamically linked executables
|
|
|
244288 |
Name: %{?scl_prefix}ltrace
|
|
|
244288 |
Version: 0.7.91
|
|
|
244288 |
Release: 1%{?dist}
|
|
|
244288 |
URL: http://ltrace.alioth.debian.org/
|
|
|
244288 |
License: GPLv2+
|
|
|
244288 |
|
|
|
244288 |
BuildRequires: elfutils-devel dejagnu
|
|
|
244288 |
BuildRequires: libselinux-devel
|
|
|
244288 |
BuildRequires: autoconf automake libtool
|
|
|
244288 |
BuildRequires: gcc-c++
|
|
|
244288 |
BuildRequires: make
|
|
|
244288 |
|
|
|
244288 |
# Note: this URL needs to be updated for each release, as the file
|
|
|
244288 |
# number changes for each file. Full list of released files is at:
|
|
|
244288 |
# https://alioth.debian.org/frs/?group_id=30892
|
|
|
244288 |
Source: ltrace-%{version}.tar.bz2
|
|
|
244288 |
|
|
|
244288 |
# Merge of several upstream commits that fixes compilation on ARM.
|
|
|
244288 |
Patch0: ltrace-0.7.91-arm.patch
|
|
|
244288 |
|
|
|
244288 |
# Upstream patch that fixes accounting of exec, __libc_start_main and
|
|
|
244288 |
# others in -c output.
|
|
|
244288 |
Patch1: ltrace-0.7.91-account_execl.patch
|
|
|
244288 |
|
|
|
244288 |
# Upstream patch that fixes interpretation of PLT on x86_64 when
|
|
|
244288 |
# IRELATIVE slots are present.
|
|
|
244288 |
Patch2: ltrace-0.7.91-x86_64-irelative.patch
|
|
|
244288 |
|
|
|
244288 |
# Upstream patch that fixes fetching of system call arguments on s390.
|
|
|
244288 |
Patch3: ltrace-0.7.91-s390-fetch-syscall.patch
|
|
|
244288 |
|
|
|
244288 |
# Upstream patch that enables tracing of IRELATIVE PLT slots on s390.
|
|
|
244288 |
Patch4: ltrace-0.7.91-s390-irelative.patch
|
|
|
244288 |
|
|
|
244288 |
# Fix for a regression in tracing across fork. Upstream patch.
|
|
|
244288 |
Patch5: ltrace-0.7.91-ppc64-fork.patch
|
|
|
244288 |
|
|
|
244288 |
# Fix crashing a prelinked PPC64 binary which makes PLT calls through
|
|
|
244288 |
# slots that ltrace doesn't trace.
|
|
|
244288 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1051221
|
|
|
244288 |
Patch6: ltrace-0.7.91-breakpoint-on_install.patch
|
|
|
244288 |
Patch7: ltrace-0.7.91-ppc64-unprelink.patch
|
|
|
244288 |
|
|
|
244288 |
# Man page nits. Backport of an upstream patch.
|
|
|
244288 |
Patch8: ltrace-0.7.91-man.patch
|
|
|
244288 |
|
|
|
244288 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1044766
|
|
|
244288 |
Patch9: ltrace-0.7.91-cant_open.patch
|
|
|
244288 |
|
|
|
244288 |
# Support Aarch64 architecture.
|
|
|
244288 |
Patch10: ltrace-0.7.91-aarch64.patch
|
|
|
244288 |
|
|
|
244288 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1064406
|
|
|
244288 |
Patch11: ltrace-0.7.2-e_machine.patch
|
|
|
244288 |
|
|
|
244288 |
# Support for ppc64le, backported from upstream.
|
|
|
244288 |
# http://anonscm.debian.org/gitweb/?p=collab-maint/ltrace.git;a=commit;h=eea4ad2cce289753aaa35b4e0258a76d8f8f367c
|
|
|
244288 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1131956
|
|
|
244288 |
Patch13: ltrace-0.7.91-ppc64le-support.patch
|
|
|
244288 |
# 35a9677dc9dcb7909ebd28f30200474d7e8b660f,
|
|
|
244288 |
# 437d2377119036346f4dbd93039c847b4cc9d0be,
|
|
|
244288 |
# eb3993420734f091cde9a6053ca6b4edcf9ae334
|
|
|
244288 |
Patch14: ltrace-0.7.91-ppc64le-fixes.patch
|
|
|
244288 |
|
|
|
244288 |
# http://anonscm.debian.org/gitweb/?p=collab-maint/ltrace.git;a=commit;h=2e9f9f1f5d0fb223b109429b9c904504b7f638e2
|
|
|
244288 |
# http://anonscm.debian.org/gitweb/?p=collab-maint/ltrace.git;a=commit;h=f96635a03b3868057db5c2d7972d5533e2068345
|
|
|
244288 |
Patch15: ltrace-0.7.91-parser-ws_after_id.patch
|
|
|
244288 |
|
|
|
244288 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1171165
|
|
|
244288 |
# http://anonscm.debian.org/cgit/collab-maint/ltrace.git/commit/?id=d8f1287b85e2c2b2ae0235809e956f4365e53c45
|
|
|
244288 |
# http://anonscm.debian.org/cgit/collab-maint/ltrace.git/commit/?id=d80c5371454383e3f9978622e5578cf02af8c44c
|
|
|
244288 |
# http://anonscm.debian.org/cgit/collab-maint/ltrace.git/commit/?id=bf82100966deda9c7d26ad085d97c08126a8ae88
|
|
|
244288 |
Patch16: ltrace-0.7.91-ppc-bias.patch
|
|
|
244288 |
|
|
|
244288 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1158714
|
|
|
244288 |
Patch17: ltrace-0.7.91-x86-plt_map.patch
|
|
|
244288 |
Patch18: ltrace-0.7.91-x86-unused_label.patch
|
|
|
244288 |
|
|
|
244288 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1170315
|
|
|
244288 |
Patch19: ltrace-0.7.91-unwind-elfutils.patch
|
|
|
244288 |
|
|
|
244288 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1208351
|
|
|
244288 |
# http://anonscm.debian.org/cgit/collab-maint/ltrace.git/commit/?id=4724bd5a4a19db117a1d280b9d1a3508fd4e03fa
|
|
|
244288 |
# http://anonscm.debian.org/cgit/collab-maint/ltrace.git/commit/?id=72ee29639c55b5942bc07c8ed0013005f8fc5a97
|
|
|
244288 |
Patch20: ltrace-0.7.91-multithread-no-f-1.patch
|
|
|
244288 |
Patch21: ltrace-0.7.91-multithread-no-f-2.patch
|
|
|
244288 |
|
|
|
244288 |
# Fix problems with building a number of test cases.
|
|
|
244288 |
# http://anonscm.debian.org/cgit/collab-maint/ltrace.git/commit/?id=694d19ff14017926454771cbb63a22355b72f1bf
|
|
|
244288 |
# http://anonscm.debian.org/cgit/collab-maint/ltrace.git/commit/?id=a3a03622fb4ca9772dca13eae724a94ba1e728f4
|
|
|
244288 |
Patch22: ltrace-0.7.91-testsuite-includes.patch
|
|
|
244288 |
Patch23: ltrace-0.7.91-testsuite-includes-2.patch
|
|
|
244288 |
|
|
|
244288 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1210653
|
|
|
244288 |
# http://anonscm.debian.org/cgit/collab-maint/ltrace.git/commit/?id=eea6091f8672b01f7f022b0fc367e0f568225ffc
|
|
|
244288 |
Patch24: ltrace-0.7.91-ppc64le-configure.patch
|
|
|
244288 |
|
|
|
244288 |
Patch25: ltrace-rh1307754.patch
|
|
|
244288 |
|
|
|
244288 |
# GCC now warns (errors) on "tautological compares", and readdir_r is deprecated.
|
|
|
244288 |
Patch26: ltrace-0.7.91-tautology.patch
|
|
|
244288 |
|
|
|
244288 |
# ARM code has unreachable code after switch statement, move initialization
|
|
|
244288 |
Patch27: ltrace-rh1423913.patch
|
|
|
244288 |
|
|
|
244288 |
# AARCH64 large parameters and syscall testsuite fixes.
|
|
|
244288 |
Patch28: ltrace-0.7.91-aarch64-params.patch
|
|
|
244288 |
|
|
|
244288 |
# gcc-9 fix. Avoid passing NULL as argument to %s
|
|
|
244288 |
Patch29: ltrace-0.7.91-null.patch
|
|
|
244288 |
|
|
|
244288 |
# Adds support for CET PLTs via second-plt lookups.
|
|
|
244288 |
Patch30: ltrace-0.7.91-cet.patch
|
|
|
244288 |
|
|
|
244288 |
# Extra #includes for gcc 9
|
|
|
244288 |
Patch31: ltrace-0.7.91-aarch64-headers.patch
|
|
|
244288 |
# Testsuite: AARCH64 ifuncs not supported yet yet.
|
|
|
244288 |
Patch32: ltrace-rh1225568.patch
|
|
|
244288 |
|
|
|
244288 |
# testsuite fixes for pre-installed config files
|
|
|
244288 |
Patch33: ltrace-0.7.91-testsuite-system_call_params.patch
|
|
|
244288 |
|
|
|
244288 |
# Ignore bogus files from the environment
|
|
|
244288 |
Patch34: ltrace-0.7.91-XDG_CONFIG_DIRS.patch
|
|
|
244288 |
|
|
|
244288 |
# GCC erroneously warns about uninitialized values
|
|
|
244288 |
Patch35: ltrace-0.7.91-rh1799619.patch
|
|
|
244288 |
|
|
|
244288 |
# Support for both SC and SCV sycall insns
|
|
|
244288 |
Patch36: ltrace-0.7.91-ppc64le-scv.patch
|
|
|
244288 |
|
|
|
244288 |
%description
|
|
|
244288 |
Ltrace is a debugging program which runs a specified command until the
|
|
|
244288 |
command exits. While the command is executing, ltrace intercepts and
|
|
|
244288 |
records both the dynamic library calls called by the executed process
|
|
|
244288 |
and the signals received by the executed process. Ltrace can also
|
|
|
244288 |
intercept and print system calls executed by the process.
|
|
|
244288 |
|
|
|
244288 |
You should install ltrace if you need a sysadmin tool for tracking the
|
|
|
244288 |
execution of processes.
|
|
|
244288 |
|
|
|
244288 |
%prep
|
|
|
244288 |
%setup -q -n ltrace-%{version}
|
|
|
244288 |
%patch0 -p1
|
|
|
244288 |
%patch1 -p1
|
|
|
244288 |
%patch2 -p1
|
|
|
244288 |
%patch3 -p1
|
|
|
244288 |
%patch4 -p1
|
|
|
244288 |
%patch5 -p1
|
|
|
244288 |
%patch6 -p1
|
|
|
244288 |
%patch7 -p1
|
|
|
244288 |
%patch8 -p1
|
|
|
244288 |
%patch9 -p1
|
|
|
244288 |
%patch10 -p1
|
|
|
244288 |
%patch11 -p1
|
|
|
244288 |
%patch13 -p1
|
|
|
244288 |
%patch14 -p1
|
|
|
244288 |
%patch15 -p1
|
|
|
244288 |
%patch16 -p1
|
|
|
244288 |
%patch17 -p1
|
|
|
244288 |
%patch18 -p1
|
|
|
244288 |
%patch19 -p1
|
|
|
244288 |
%patch20 -p1
|
|
|
244288 |
%patch21 -p1
|
|
|
244288 |
%patch22 -p1
|
|
|
244288 |
%patch23 -p1
|
|
|
244288 |
%patch24 -p1
|
|
|
244288 |
%patch25 -p1
|
|
|
244288 |
%patch26 -p1
|
|
|
244288 |
%patch27 -p1
|
|
|
244288 |
%patch28 -p1
|
|
|
244288 |
%patch29 -p1
|
|
|
244288 |
%patch30 -p1
|
|
|
244288 |
%patch31 -p1
|
|
|
244288 |
%patch32 -p1
|
|
|
244288 |
%patch33 -p1
|
|
|
244288 |
%patch34 -p1
|
|
|
244288 |
%patch35 -p1
|
|
|
244288 |
%patch36 -p1
|
|
|
244288 |
|
|
|
244288 |
%build
|
|
|
244288 |
autoreconf -i
|
|
|
244288 |
%configure --docdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}
|
|
|
244288 |
make %{?_smp_mflags}
|
|
|
244288 |
|
|
|
244288 |
%install
|
|
|
244288 |
make DESTDIR=$RPM_BUILD_ROOT bindir=%{_bindir} install
|
|
|
244288 |
|
|
|
244288 |
# The testsuite is useful for development in real world, but fails in
|
|
|
244288 |
# koji for some reason. Disable it, but have it handy.
|
|
|
244288 |
%check
|
|
|
244288 |
echo ====================TESTING=========================
|
|
|
244288 |
timeout 180 make -k check ||:
|
|
|
244288 |
echo ====================TESTING END=====================
|
|
|
244288 |
|
|
|
244288 |
%files
|
|
|
244288 |
%defattr(-,root,root)
|
|
|
244288 |
%doc NEWS COPYING CREDITS INSTALL README TODO
|
|
|
244288 |
%{_bindir}/ltrace
|
|
|
244288 |
%{_mandir}/man1/ltrace.1*
|
|
|
244288 |
%{_mandir}/man5/ltrace.conf.5*
|
|
|
244288 |
%{_datadir}/ltrace
|
|
|
244288 |
|
|
|
244288 |
%changelog
|
|
|
244288 |
* Fri Jun 11 2021 DJ Delorie <dj@redhat.com> - 0.7.91-1
|
|
|
244288 |
- Initial sources (#1954828) for GTS-11
|