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