Blame SPECS/ltrace.spec

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