codonell / rpms / ltrace

Forked from rpms/ltrace 4 years ago
Clone
df0f312
Summary: Tracks runtime library calls from dynamically linked executables
cvsdist 8688751
Name: ltrace
fffe0fb
Version: 0.5
768acb9
Release: 7.45svn%{?dist}
df0f312
URL: http://alioth.debian.org/projects/ltrace/
fffe0fb
Source: ltrace-0.5.tar.gz
311c7f7
Patch0: ltrace-0.4-exec.patch
311c7f7
Patch1: ltrace-0.4-fork.patch
feb4ced
Patch2: ltrace-0.5-opd.patch
fffe0fb
Patch3: ltrace-ppc32fc5.patch
4fb08dd
Patch4: ltrace-0.5-gnuhash.patch
c468e10
Patch5: ltrace-0.5-testsuite.patch
311c7f7
Patch6: ltrace-0.5-ppc-symval.patch
311c7f7
Patch7: ltrace-0.5-a2bp.patch
311c7f7
Patch8: ltrace-0.5-attach.patch
768acb9
Patch9: ltrace-0.5-fork.patch
768acb9
Patch10: ltrace-0.5-exec.patch
768acb9
Patch11: ltrace-0.5-exec-tests.patch
768acb9
Patch12: ltrace-0.5-man.patch
768acb9
Patch13: ltrace-0.5-ia64-sigill.patch
9288c75
License: GPL
cvsdist 8688751
Group: Development/Debuggers
fffe0fb
ExclusiveArch: %{ix86} x86_64 ia64 ppc ppc64 s390 s390x alpha sparc
82e1d8c
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
af2d650
BuildRequires: elfutils-libelf-devel dejagnu
cvsdist 8688751
cvsdist 8688751
%description
cvsdist 8688751
Ltrace is a debugging program which runs a specified command until the
cvsdist 8688751
command exits.  While the command is executing, ltrace intercepts and
cvsdist 8688751
records both the dynamic library calls called by the executed process
cvsdist 8688751
and the signals received by the executed process.  Ltrace can also
cvsdist 8688751
intercept and print system calls executed by the process.
cvsdist 8688751
cvsdist 8688751
You should install ltrace if you need a sysadmin tool for tracking the
cvsdist 8688751
execution of processes.
cvsdist 8688751
cvsdist 8688751
%prep
cvsdist 8688751
%setup -q
311c7f7
%patch0 -p0
311c7f7
%patch1 -p1
a1bac0b
%patch2 -p1
fffe0fb
%patch3 -p0
4fb08dd
%patch4 -p1
4fb08dd
%patch5 -p1
7a61787
%patch6 -p1
05777e4
%patch7 -p1
311c7f7
%patch8 -p1
df0f312
%patch9 -p1
768acb9
%patch10 -p1
768acb9
%patch11 -p1
768acb9
%patch12 -p1
768acb9
%patch13 -p1
52f6336
sed -i -e 's/-o root -g root//' Makefile.in
cvsdist 8688751
cvsdist 8688751
%build
67760f0
export CC="gcc`echo $RPM_OPT_FLAGS | sed -n 's/^.*\(-m[36][124]\).*$/ \1/p'`"
43ee98e
%configure CC="$CC" LDFLAGS="$LDFLAGS -Wl,-z,relro"
cvsdist 8688751
make
cvsdist 8688751
cvsdist 8688751
%install
82e1d8c
rm -rf $RPM_BUILD_ROOT
ce39071
make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} docdir=%{_docdir}/ltrace-%{version}/ install
ce39071
750f089
#%check
750f089
#echo ====================TESTING=========================
750f089
#make check
750f089
#echo ====================TESTING END=====================
cvsdist 8688751
cvsdist 8688751
%clean
cvsdist 8688751
rm -rf $RPM_BUILD_ROOT
cvsdist 8688751
cvsdist 8688751
%files
cvsdist 8688751
%defattr(-,root,root)
cvsdist 8688751
%doc COPYING README TODO BUGS ChangeLog
cvsdist 8688751
%{_prefix}/bin/ltrace
cvsdist 8688751
%{_mandir}/man1/ltrace.1*
df0f312
%config(noreplace) /etc/ltrace.conf
cvsdist 8688751
cvsdist 8688751
%changelog
768acb9
* Fri May  4 2007 Petr Machata <pmachata@redhat.com> - 0.5-7.45svn
768acb9
- added fork/exec patches, mostly IBM's work
768acb9
- added trace-exec tests into suite
768acb9
- added ia64 sigill patch
768acb9
df0f312
* Thu Jan 25 2007 Petr Machata <pmachata@redhat.com> - 0.5-6.45svn
df0f312
- tidy up the specfile per rpmlint comments
df0f312
- fix man page
df0f312
311c7f7
* Mon Sep  4 2006 Petr Machata <pmachata@redhat.com> - 0.5-5.45svn
311c7f7
- fix plt handling on ppc32 (symval patch)
311c7f7
- fix attaching to process (attach patch)
311c7f7
- add fork & exec patches from IBM
311c7f7
- adjust weak symbol handling (ppc32fc5 patch)
4bdde30
75f7ddf
* Wed Aug 23 2006 Petr Machata <pmachata@redhat.com> - 0.5-3.45svn
feb4ced
- use "{X}.{release}svn" release string per naming guidelines
feb4ced
feb4ced
* Tue Aug 22 2006 Petr Machata <pmachata@redhat.com> - 0.5-1.1.45svn
82e1d8c
- using dist tag
82e1d8c
369fdb2
* Fri Aug 18 2006 Jesse Keating <jkeating@redhat.com> - 0.5-1.0.45svn.6
369fdb2
- rebuilt with latest binutils to pick up 64K -z commonpagesize on ppc*
369fdb2
  (#203001)
369fdb2
8e9981a
* Fri Jul 14 2006 Petr Machata <pmachata@redhat.com> - 0.5-1.0.45svn.5
4fb08dd
- adding .gnu.hash patch to support new ELF hash table section
c468e10
- adding testsuite patch to silent some bogus failures
4fb08dd
fffe0fb
* Fri Jul 14 2006 Petr Machata <pmachata@redhat.com> - 0.5-1.0.45svn
fffe0fb
- adding upstream (svn) version.  It contains most of patches that we
fffe0fb
  already use, and has support for secure PLTs.
fffe0fb
0a5af20
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.4-1.7.1
0a5af20
- rebuild
0a5af20
2e6aee2
* Wed Jun 14 2006 Petr Machata <pmachata@redhat.com> - 0.4-1.7
2e6aee2
- drop broken ppc support
2e6aee2
b29b2e1
* Thu Jun  1 2006 Petr Machata <pmachata@redhat.com> - 0.4-1.6
b29b2e1
- e_entry patch: use elf's e_entry field instead of looking up _start
b29b2e1
  symbol, which failed on stripped binaries.
b29b2e1
43ee98e
* Tue May  3 2006 Petr Machata <pmachata@redhat.com> - 0.4-1.5
43ee98e
- Correct a typo that prevented the inclusion of "demangle.h"
43ee98e
- Adding -Wl,-z,relro
43ee98e
a1bac0b
* Mon Apr 24 2006 Petr Machata <pmachata@redhat.com> - 0.4-1.4
a1bac0b
- turn off opd translation on ia64, GElf already gives us function
a1bac0b
  address.
a1bac0b
- turn on main-internal test, it should pass now.
a1bac0b
39ba8c9
* Wed Apr 12 2006 Petr Machata <pmachata@redhat.com> - 0.4-1.2
39ba8c9
- svn fix for opt_x patch
39ba8c9
- patches for testsuite for s390{,x}
39ba8c9
- turning off main-internal test. Fails on ia64, needs investigation.
39ba8c9
ce39071
* Fri Apr  7 2006 Petr Machata <pmachata@redhat.com> - 0.4-1
ce39071
- Upstream 0.4
ce39071
- opt_x patch: New structure for opt_x list elements, now with
ce39071
  'found'.  Using it in options.c, elf.c.
ce39071
- testsuite patch: Automated testsuite for ltrace.
ce39071
2eec108
* Wed Mar  1 2006 Petr Machata  <pmachata@redhat.com> - 0.3.36-4.3
df0f312
- include %%{ix86} to ExclusiveArch, instead of mere i386
8e3bf5e
8bb274d
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.3.36-4.2
8bb274d
- bump again for double-long bug on ppc(64)
8bb274d
6bd795f
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.3.36-4.1
6bd795f
- rebuilt for new gcc4.1 snapshot and glibc changes
6bd795f
c8e65f8
* Mon Jan  9 2006 Jakub Jelinek <jakub@redhat.com> 0.3.36-4
c8e65f8
- added ppc64 and s390x support (IBM)
c8e65f8
- added ia64 support (Ian Wienand)
0bf57fd
9288c75
* Sat Mar  5 2005 Jakub Jelinek <jakub@redhat.com> 0.3.36-3
9288c75
- rebuilt with GCC 4
9288c75
9288c75
* Tue Dec 14 2004 Jakub Jelinek <jakub@redhat.com> 0.3.36-2
a29f3b5
- make x86_64 ltrace trace both 32-bit and 64-bit binaries (#141955,
a29f3b5
  IT#55600)
a29f3b5
- fix tracing across execve
a29f3b5
- fix printf-style format handling on 64-bit arches
a29f3b5
eab4703
* Thu Nov 18 2004 Jakub Jelinek <jakub@redhat.com> 0.3.36-1
eab4703
- update to 0.3.36
eab4703
65e4c9f
* Mon Oct 11 2004 Jakub Jelinek <jakub@redhat.com> 0.3.35-1
65e4c9f
- update to 0.3.35
65e4c9f
- update syscall tables from latest kernel source
65e4c9f
cvsdist a9ac1c1
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist a9ac1c1
- rebuilt
cvsdist a9ac1c1
cvsdist 0ffa440
* Tue Jun  8 2004 Jakub Jelinek <jakub@redhat.com> 0.3.32-3
cvsdist 0ffa440
- buildreq elfutils-libelf-devel (#124921)
cvsdist 0ffa440
cvsdist 66f0399
* Thu Apr 22 2004 Jakub Jelinek <jakub@redhat.com> 0.3.32-2
cvsdist 66f0399
- fix demangling
cvsdist 66f0399
cvsdist 66f0399
* Thu Apr 22 2004 Jakub Jelinek <jakub@redhat.com> 0.3.32-1
cvsdist 66f0399
- update to 0.3.32
cvsdist 66f0399
  - fix dict.c assertion (#114359)
cvsdist 66f0399
  - x86_64 support
cvsdist 66f0399
- rewrite elf.[ch] using libelf
cvsdist 66f0399
- don't rely on st_value of SHN_UNDEF symbols in binaries,
cvsdist 66f0399
  instead walk .rel{,a}.plt and compute the addresses (#115299)
cvsdist 66f0399
- fix x86-64 support
cvsdist 66f0399
- some ltrace.conf additions
cvsdist 66f0399
- some format string printing fixes
cvsdist 66f0399
cvsdist 0fddda6
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 0fddda6
- rebuilt
cvsdist 0fddda6
cvsdist b4d7532
* Mon Feb  3 2003 Jakub Jelinek <jakub@redhat.com> 0.3.29-1
cvsdist b4d7532
- update to 0.3.29
cvsdist b4d7532
cvsdist b4d7532
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist b4d7532
- rebuilt
cvsdist b4d7532
cvsdist 6299e6a
* Sun Sep  1 2002 Jakub Jelinek <jakub@redhat.com> 0.3.10-12
cvsdist 6299e6a
- add a bunch of missing functions to ltrace.conf
cvsdist 6299e6a
  (like strlen, ugh)
cvsdist 6299e6a
cvsdist f9d99cc
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist f9d99cc
- automated rebuild
cvsdist f9d99cc
cvsdist 5d64697
* Tue May 28 2002 Phil Knirsch <pknirsch@redhat.com>
cvsdist 5d64697
- Added the 'official' s390 patch.
cvsdist 5d64697
cvsdist 9290b07
* Thu May 23 2002 Tim Powers <timp@redhat.com>
cvsdist 9290b07
- automated rebuild
cvsdist 9290b07
cvsdist 9290b07
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
cvsdist 9290b07
- automated rebuild
cvsdist 9290b07
cvsdist 996c7ed
* Fri Jul 20 2001 Jakub Jelinek <jakub@redhat.com>
cvsdist 996c7ed
- fix stale symlink in documentation directory (#47749)
cvsdist 996c7ed
cvsdist c61eec4
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
cvsdist c61eec4
- Bump release + rebuild.
cvsdist c61eec4
cvsdist 8688751
* Thu Aug  2 2000 Tim Waugh <twaugh@redhat.com>
cvsdist 8688751
- fix off-by-one problem in checking syscall number
cvsdist 8688751
cvsdist 8688751
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
cvsdist 8688751
- automatic rebuild
cvsdist 8688751
cvsdist 8688751
* Mon Jun 19 2000 Matt Wilson <msw@redhat.com>
cvsdist 8688751
- rebuilt for next release
cvsdist 8688751
- patched Makefile.in to take a hint on mandir (patch2)
cvsdist 8688751
- use %%{_mandir} and %%makeinstall
cvsdist 8688751
cvsdist 8688751
* Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
cvsdist 8688751
- fix description
cvsdist 8688751
cvsdist 8688751
* Fri Jan  7 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 8688751
- update to 0.3.10.
cvsdist 8688751
- include (but don't apply) sparc patch from Jakub Jellinek.
cvsdist 8688751
cvsdist 8688751
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
cvsdist 8688751
- auto rebuild in the new build environment (release 2)
cvsdist 8688751
cvsdist 8688751
* Fri Mar 12 1999 Jeff Johnson <jbj@redhat.com>
cvsdist 8688751
- update to 0.3.6.
cvsdist 8688751
cvsdist 8688751
* Mon Sep 21 1998 Preston Brown <pbrown@redhat.com>
cvsdist 8688751
- upgraded to 0.3.4