cvsdist ec1e75
Summary: Tool for finding memory management bugs in programs
cvsdist ec1e75
Name: valgrind
cvsdist 887e87
Version: 2.2.0
Jakub Jelinek 7c2b25
Release: 7
cvsdist ec1e75
Epoch: 1
cvsdist e38ded
Source0: http://developer.kde.org/~sewardj/valgrind-%{version}.tar.bz2
cvsdist e38ded
Patch0: valgrind-2.0.0-pthread-stacksize.patch
cvsdist 887e87
Patch1: valgrind-2.2.0-regtest.patch
cvsdist 95dc4e
Patch2: valgrind-2.1.2-4G.patch
Jakub Jelinek cb6ff7
Patch3: valgrind-2.2.0.ioctls.patch
Jakub Jelinek 2a77be
Patch4: valgrind-2.2.0-warnings.patch
Jakub Jelinek 7ce47b
Patch5: valgrind-2.2.0-valgrind_h.patch
cvsdist ec1e75
License: GPL
Jakub Jelinek 7c2b25
URL: http://valgrind.kde.org/
cvsdist ec1e75
Group: Development/Debuggers
cvsdist ec1e75
BuildRoot: %{_tmppath}/%{name}-root
cvsdist ec1e75
ExclusiveArch: %{ix86}
cvsdist ec1e75
cvsdist e38ded
# Disable internal dependency generator
cvsdist e38ded
%define _use_internal_dependency_generator 0
cvsdist ec1e75
cvsdist e38ded
# Disable build root strip policy
cvsdist ec1e75
%define __spec_install_post /usr/lib/rpm/brp-compress || :
cvsdist ec1e75
cvsdist e38ded
# Disable -debuginfo package generation
cvsdist e38ded
%define debug_package	%{nil}
cvsdist e38ded
cvsdist ec1e75
%description
cvsdist ec1e75
Valgrind is a tool to help you find memory-management problems in your
cvsdist ec1e75
programs. When a program is run under Valgrind's supervision, all
cvsdist ec1e75
reads and writes of memory are checked, and calls to
cvsdist ec1e75
malloc/new/free/delete are intercepted. As a result, Valgrind can
cvsdist ec1e75
detect a lot of problems that are otherwise very hard to
cvsdist ec1e75
find/diagnose.
cvsdist ec1e75
cvsdist ec1e75
%prep
cvsdist e38ded
%setup -q
cvsdist e38ded
%patch0 -p1
cvsdist e38ded
%patch1 -p1
cvsdist 95dc4e
%patch2 -p1
Jakub Jelinek cb6ff7
%patch3 -p1
Jakub Jelinek 2a77be
%patch4 -p1
Jakub Jelinek 7ce47b
%patch5 -p1
cvsdist ec1e75
cvsdist e38ded
%define __find_provides %{_builddir}/%{name}-%{version}/find-provides
cvsdist e38ded
find_provides=`rpm --eval %%{__find_provides}`
cvsdist e38ded
echo "$find_provides | grep -v libpthread" > find-provides
cvsdist e38ded
chmod +x find-provides
cvsdist ec1e75
cvsdist e38ded
%define __find_requires %{_builddir}/%{name}-%{version}/find-requires
cvsdist ec1e75
find_requires=`rpm --eval %%{__find_requires}`
cvsdist ec1e75
echo "$find_requires | grep -v GLIBC_PRIVATE" > find-requires
cvsdist ec1e75
chmod +x find-requires
cvsdist ec1e75
cvsdist ec1e75
%build
cvsdist ec1e75
%configure
cvsdist ec1e75
cvsdist e38ded
# Force a specific set of default suppressions
cvsdist ec1e75
echo -n > default.supp
cvsdist e38ded
for file in glibc-2.3.supp xfree-4.supp ; do
cvsdist ec1e75
    cat $file >> default.supp
cvsdist ec1e75
done
cvsdist e38ded
Jakub Jelinek a54332
make %{?_smp_mflags}
cvsdist e38ded
cvsdist 95dc4e
# Ensure there are no unexpected file descriptors open,
cvsdist 95dc4e
# the testsuite otherwise fails.
cvsdist 95dc4e
cat > close_fds.c <
cvsdist 95dc4e
#include <stdlib.h>
cvsdist 95dc4e
#include <unistd.h>
cvsdist 95dc4e
int main (int argc, char *const argv[])
cvsdist 95dc4e
{
cvsdist 95dc4e
  int i, j = sysconf (_SC_OPEN_MAX);
cvsdist 95dc4e
  if (j < 0)
cvsdist 95dc4e
    exit (1);
cvsdist 95dc4e
  for (i = 3; i < j; ++i)
cvsdist 95dc4e
    close (i);
cvsdist 95dc4e
  execvp (argv[1], argv + 1);
cvsdist 95dc4e
  exit (1);
cvsdist 95dc4e
}
cvsdist 95dc4e
EOF
cvsdist 95dc4e
gcc $RPM_OPT_FLAGS -o close_fds close_fds.c
cvsdist 95dc4e
cvsdist e38ded
# test
cvsdist e38ded
make check
cvsdist e38ded
echo ===============TESTING===================
cvsdist 95dc4e
./close_fds make regtest || :
cvsdist e38ded
echo ===============END TESTING===============
cvsdist ec1e75
cvsdist ec1e75
%install
cvsdist ec1e75
rm -rf $RPM_BUILD_ROOT
cvsdist e38ded
cvsdist ec1e75
%makeinstall
cvsdist ec0703
mkdir docs.installed
cvsdist ec0703
mv $RPM_BUILD_ROOT%{_datadir}/doc/valgrind/* docs.installed/
cvsdist ec1e75
cvsdist ec1e75
%clean
cvsdist ec1e75
rm -rf $RPM_BUILD_ROOT
cvsdist ec1e75
cvsdist ec1e75
%files
cvsdist ec1e75
%defattr(-,root,root)
cvsdist e38ded
%doc ACKNOWLEDGEMENTS COPYING NEWS README_* TODO
cvsdist ec0703
%doc docs.installed/*.html docs.installed/*.gif
cvsdist ec1e75
%{_bindir}/*
cvsdist e38ded
%{_includedir}/valgrind
cvsdist ec1e75
%{_libdir}/valgrind
cvsdist e38ded
%{_libdir}/pkgconfig/*
cvsdist ec1e75
cvsdist ec1e75
%changelog
Jakub Jelinek 7c2b25
* Mon Dec  6 2004 Jakub Jelinek <jakub@redhat.com> 2.2.0-7
Jakub Jelinek 7c2b25
- update URL (#141873)
Jakub Jelinek 7c2b25
Jakub Jelinek b1f5ac
* Tue Nov 16 2004 Jakub Jelinek <jakub@redhat.com> 2.2.0-6
Jakub Jelinek 7ce47b
- act as if NVALGRIND is defined when using <valgrind.h>
Jakub Jelinek 7ce47b
  in non-m32/i386 programs (#138923)
Jakub Jelinek 7ce47b
- remove weak from VALGRIND_PRINTF*, make it static and
Jakub Jelinek 7ce47b
  add unused attribute
Jakub Jelinek 7ce47b
Jakub Jelinek 2a77be
* Mon Nov  8 2004 Jakub Jelinek <jakub@redhat.com> 2.2.0-4
Jakub Jelinek 2a77be
- fix a printout and possible problem with local variable
Jakub Jelinek 2a77be
  usage around setjmp (#138254)
Jakub Jelinek 2a77be
Jakub Jelinek a54332
* Tue Oct  5 2004 Jakub Jelinek <jakub@redhat.com> 2.2.0-3
Jakub Jelinek a54332
- remove workaround for buggy old makes (#134563)
Jakub Jelinek a54332
Jakub Jelinek cb6ff7
* Fri Oct  1 2004 Jakub Jelinek <jakub@redhat.com> 2.2.0-2
Jakub Jelinek cb6ff7
- handle some more ioctls (Peter Jones, #131967)
Jakub Jelinek cb6ff7
Jakub Jelinek cb6ff7
* Thu Sep  2 2004 Jakub Jelinek <jakub@redhat.com> 2.2.0-1
cvsdist 887e87
- update to 2.2.0
cvsdist 887e87
Jakub Jelinek cb6ff7
* Thu Jul 22 2004 Jakub Jelinek <jakub@redhat.com> 2.1.2-3
cvsdist ec0703
- fix packaging of documentation
cvsdist ec0703
Jakub Jelinek cb6ff7
* Tue Jul 20 2004 Jakub Jelinek <jakub@redhat.com> 2.1.2-2
cvsdist 95dc4e
- allow tracing of 32-bit binaries on x86-64
cvsdist 95dc4e
Jakub Jelinek cb6ff7
* Tue Jul 20 2004 Jakub Jelinek <jakub@redhat.com> 2.1.2-1
cvsdist e38ded
- update to 2.1.2
cvsdist e38ded
- run make regtest as part of package build
cvsdist e38ded
- use glibc-2.3 suppressions instead of glibc-2.2 suppressions
cvsdist e38ded
cvsdist e38ded
* Thu Apr 29 2004 Colin Walters <walters@redhat.com> 2.0.0-1
cvsdist e38ded
- update to 2.0.0
cvsdist e38ded
cvsdist e38ded
* Tue Feb 25 2003 Jeff Johnson <jbj@redhat.com> 1.9.4-0.20030228
cvsdist e38ded
- update to 1.9.4 from CVS.
cvsdist e38ded
- dwarf patch from Graydon Hoare.
cvsdist e38ded
- sysinfo patch from Graydon Hoare, take 1.
cvsdist e38ded
cvsdist e38ded
* Fri Feb 14 2003 Jeff Johnson <jbj@redhat.com> 1.9.3-6.20030207
cvsdist e38ded
- add return codes to syscalls.
cvsdist e38ded
- fix: set errno after syscalls.
cvsdist e38ded
cvsdist e38ded
* Tue Feb 11 2003 Graydon Hoare <graydon@redhat.com> 1.9.3-5.20030207
cvsdist e38ded
- add handling for separate debug info (+fix).
cvsdist e38ded
- handle blocking readv/writev correctly.
cvsdist e38ded
- comment out 4 overly zealous pthread checks.
cvsdist e38ded
cvsdist e38ded
* Tue Feb 11 2003 Jeff Johnson <jbj@redhat.com> 1.9.3-4.20030207
cvsdist e38ded
- move _pthread_desc to vg_include.h.
cvsdist e38ded
- implement pthread_mutex_timedlock().
cvsdist e38ded
- implement pthread_barrier_wait().
cvsdist e38ded
cvsdist e38ded
* Mon Feb 10 2003 Jeff Johnson <jbj@redhat.com> 1.9.3-3.20030207
cvsdist e38ded
- import all(afaik) missing functionality from linuxthreads.
cvsdist e38ded
cvsdist e38ded
* Sun Feb  9 2003 Jeff Johnson <jbj@redhat.com> 1.9.3-2.20030207
cvsdist e38ded
- import more missing functionality from linuxthreads in glibc-2.3.1.
cvsdist e38ded
cvsdist e38ded
* Sat Feb  8 2003 Jeff Johnson <jbj@redhat.com> 1.9.3-1.20030207
cvsdist e38ded
- start fixing nptl test cases.
cvsdist e38ded
cvsdist e38ded
* Fri Feb  7 2003 Jeff Johnson <jbj@redhat.com> 1.9.3-0.20030207
cvsdist e38ded
- build against current 1.9.3 with nptl hacks.
cvsdist e38ded
cvsdist e38ded
* Tue Oct 15 2002 Alexander Larsson <alexl@redhat.com>
cvsdist e38ded
- Update to 1.0.4
cvsdist e38ded
cvsdist ec1e75
* Fri Aug  9 2002 Alexander Larsson <alexl@redhat.com>
cvsdist ec1e75
- Update to 1.0.0
cvsdist ec1e75
cvsdist ec1e75
* Wed Jul  3 2002 Alexander Larsson <alexl@redhat.com>
cvsdist ec1e75
- Update to pre4.
cvsdist ec1e75
cvsdist ec1e75
* Tue Jun 18 2002 Alexander Larsson <alla@lysator.liu.se>
cvsdist ec1e75
- Add threadkeys and extra suppressions patches. Bump epoch.
cvsdist ec1e75
cvsdist ec1e75
* Mon Jun 17 2002 Alexander Larsson <alla@lysator.liu.se>
cvsdist ec1e75
- Updated to 1.0pre1
cvsdist ec1e75
cvsdist ec1e75
* Tue May 28 2002 Alex Larsson <alexl@redhat.com>
cvsdist ec1e75
- Updated to 20020524. Added GLIBC_PRIVATE patch
cvsdist ec1e75
cvsdist ec1e75
* Thu May  9 2002 Jonathan Blandford <jrb@redhat.com>
cvsdist ec1e75
- add missing symbol __pthread_clock_settime
cvsdist ec1e75
cvsdist ec1e75
* Wed May  8 2002 Alex Larsson <alexl@redhat.com>
cvsdist ec1e75
- Update to 20020508
cvsdist ec1e75
cvsdist ec1e75
* Mon May  6 2002 Alex Larsson <alexl@redhat.com>
cvsdist ec1e75
- Update to 20020503b
cvsdist ec1e75
cvsdist ec1e75
* Thu May  2 2002 Alex Larsson <alexl@redhat.com>
cvsdist ec1e75
- update to new snapshot
cvsdist ec1e75
cvsdist ec1e75
* Mon Apr 29 2002 Alex Larsson <alexl@redhat.com> 20020428-1
cvsdist ec1e75
- update to new snapshot
cvsdist ec1e75
cvsdist ec1e75
* Fri Apr 26 2002 Jeremy Katz <katzj@redhat.com> 20020426-1
cvsdist ec1e75
- update to new snapshot
cvsdist ec1e75
cvsdist ec1e75
* Thu Apr 25 2002 Alex Larsson <alexl@redhat.com> 20020424-5
cvsdist ec1e75
- Added stack patch. Commented out other patches.
cvsdist ec1e75
cvsdist ec1e75
* Wed Apr 24 2002 Nalin Dahyabhai <nalin@redhat.com> 20020424-4
cvsdist ec1e75
- filter out GLIBC_PRIVATE requires, add preload patch
cvsdist ec1e75
cvsdist ec1e75
* Wed Apr 24 2002 Alex Larsson <alexl@redhat.com> 20020424-3
cvsdist ec1e75
- Make glibc 2.2 and XFree86 4 the default supressions
cvsdist ec1e75
cvsdist ec1e75
* Wed Apr 24 2002 Alex Larsson <alexl@redhat.com> 20020424-2
cvsdist ec1e75
- Added patch that includes atomic.h
cvsdist ec1e75
cvsdist ec1e75
* Wed Apr 24 2002 Alex Larsson <alexl@redhat.com> 20020424-1
cvsdist ec1e75
- Initial build