auto-import valgrind-2.1.2-2 from valgrind-2.1.2-2.src.rpm

This commit is contained in:
cvsdist 2004-09-09 13:55:37 +00:00
parent e38dedda4d
commit 95dc4eabb7

View File

@ -1,11 +1,12 @@
Summary: Tool for finding memory management bugs in programs Summary: Tool for finding memory management bugs in programs
Name: valgrind Name: valgrind
Version: 2.1.2 Version: 2.1.2
Release: 1 Release: 2
Epoch: 1 Epoch: 1
Source0: http://developer.kde.org/~sewardj/valgrind-%{version}.tar.bz2 Source0: http://developer.kde.org/~sewardj/valgrind-%{version}.tar.bz2
Patch0: valgrind-2.0.0-pthread-stacksize.patch Patch0: valgrind-2.0.0-pthread-stacksize.patch
Patch1: valgrind-2.1.2-regtest.patch Patch1: valgrind-2.1.2-regtest.patch
Patch2: valgrind-2.1.2-4G.patch
License: GPL License: GPL
URL: http://developer.kde.org/~sewardj URL: http://developer.kde.org/~sewardj
Group: Development/Debuggers Group: Development/Debuggers
@ -33,6 +34,7 @@ find/diagnose.
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
%patch1 -p1 %patch1 -p1
%patch2 -p1
%define __find_provides %{_builddir}/%{name}-%{version}/find-provides %define __find_provides %{_builddir}/%{name}-%{version}/find-provides
find_provides=`rpm --eval %%{__find_provides}` find_provides=`rpm --eval %%{__find_provides}`
@ -56,10 +58,28 @@ done
# work around #88846 # work around #88846
env - PATH="$PATH" make %{?_smp_mflags} env - PATH="$PATH" make %{?_smp_mflags}
# 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
# test # test
make check make check
echo ===============TESTING=================== echo ===============TESTING===================
make regtest || : ./close_fds make regtest || :
echo ===============END TESTING=============== echo ===============END TESTING===============
%install %install
@ -80,6 +100,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/pkgconfig/* %{_libdir}/pkgconfig/*
%changelog %changelog
* Tue Jul 20 2004 Jakub Jelinek <jakuB@redhat.com> 2.1.2-2
- allow tracing of 32-bit binaries on x86-64
* Tue Jul 20 2004 Jakub Jelinek <jakuB@redhat.com> 2.1.2-1 * Tue Jul 20 2004 Jakub Jelinek <jakuB@redhat.com> 2.1.2-1
- update to 2.1.2 - update to 2.1.2
- run make regtest as part of package build - run make regtest as part of package build