Bring in code from upstream revamp branch

Also, run autoreconf, because the changes vs. tarball became impractically
large to patch.
This commit is contained in:
Petr Machata 2012-05-18 22:19:12 +02:00
parent c2f892ec59
commit 811ce88201
2 changed files with 13579 additions and 3 deletions

13571
ltrace-0.6.0-abi.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
Summary: Tracks runtime library calls from dynamically linked executables
Name: ltrace
Version: 0.6.0
Release: 13%{?dist}
Release: 14%{?dist}
URL: http://ltrace.alioth.debian.org/
License: GPLv2+
Group: Development/Debuggers
@ -33,6 +33,7 @@ Patch17: ltrace-0.6.0-ppc-lwarx.patch
Patch18: ltrace-0.6.0-libs.patch
Patch19: ltrace-0.6.0-libs-fixes-1.patch
Patch20: ltrace-0.6.0-dash-n.patch
Patch21: ltrace-0.6.0-abi.patch
%description
Ltrace is a debugging program which runs a specified command until the
@ -64,13 +65,13 @@ execution of processes.
%patch18 -p1
%patch19 -p1
%patch20 -p1
sed -i -e 's/-o root -g root//' Makefile.in
%patch21 -p1
%build
# This ugly hack is necessary to build and link files for correct
# architecture. It makes a difference on ppc.
export CC="gcc`echo $RPM_OPT_FLAGS | sed -n 's/^.*\(-m[36][124]\).*$/ \1/p'` -D_LARGEFILE64_SOURCE"
# We touch configure.ac up there
autoreconf -i
%configure CC="$CC"
make %{?_smp_mflags}
@ -92,6 +93,10 @@ echo ====================TESTING END=====================
%config(noreplace) %{_sysconfdir}/ltrace.conf
%changelog
* Fri May 18 2012 Petr Machata <pmachata@redhat.com> - 0.6.0-14
- Add upstream patch that improves parameter passing support (the
upstream "revamp" branch) (ltrace-0.6.0-abi.patch)
* Thu May 3 2012 Petr Machata <pmachata@redhat.com> - 0.6.0-13
- Check -n argument for validity (ltrace-0.6.0-dash-n.patch)
- Resolves: #818529