auto-import valgrind-3.1.0-1 on branch devel from valgrind-3.1.0-1.src.rpm

This commit is contained in:
Jakub Jelinek 2006-01-10 10:36:37 +00:00
parent b26cb31ad9
commit 6ff20caec8
3 changed files with 32 additions and 20 deletions

View File

@ -1 +1 @@
valgrind-3.0.1.tar.bz2 valgrind-3.1.0.tar.bz2

View File

@ -1 +1 @@
c29efdb7d1a93440f5644a6769054681 valgrind-3.0.1.tar.bz2 d92156e9172dc6097e56c69ea9c88013 valgrind-3.1.0.tar.bz2

View File

@ -1,19 +1,17 @@
Summary: Tool for finding memory management bugs in programs Summary: Tool for finding memory management bugs in programs
Name: valgrind Name: valgrind
Version: 3.0.1 Version: 3.1.0
Release: 2.1 Release: 1
Epoch: 1 Epoch: 1
Source0: http://www.valgrind.org/downloads/valgrind-%{version}.tar.bz2 Source0: http://www.valgrind.org/downloads/valgrind-%{version}.tar.bz2
Patch1: valgrind-3.0.1-valgrind_h.patch Patch1: valgrind-3.1.0-valgrind_h.patch
Patch2: valgrind-3.0.1-amd64-highbase.patch Patch2: valgrind-3.1.0-amd64-highbase.patch
Patch3: valgrind-3.0.1-biarch-hack.patch Patch3: valgrind-3.1.0-amd64-speedup.patch
Patch4: valgrind-3.0.1-amd64-speedup.patch
Patch5: valgrind-3.0.1-amd64-syscalls.patch
License: GPL License: GPL
URL: http://www.valgrind.org/ URL: http://www.valgrind.org/
Group: Development/Debuggers Group: Development/Debuggers
BuildRoot: %{_tmppath}/%{name}-root BuildRoot: %{_tmppath}/%{name}-root
ExclusiveArch: %{ix86} x86_64 ExclusiveArch: %{ix86} x86_64 ppc
# Disable build root strip policy # Disable build root strip policy
%define __spec_install_post /usr/lib/rpm/brp-compress || : %define __spec_install_post /usr/lib/rpm/brp-compress || :
@ -33,20 +31,23 @@ find/diagnose.
%setup -q %setup -q
%patch1 -p1 %patch1 -p1
%ifarch x86_64 %ifarch x86_64
%patch2 -p1 #%patch2 -p1
%endif %endif
%patch3 -p1 %patch3 -p1
%patch4 -p1
%patch5 -p1
%build %build
%ifarch x86_64
# Ugly hack - libgcc 32-bit package might not be installed
mkdir -p libgcc/32
touch libgcc/32/libgcc_s.a
%configure CC="gcc -B `pwd`/libgcc/"
%else
%configure %configure
%endif
cp -a glibc-2.3.supp glibc-2.4.supp
# Force a specific set of default suppressions # Force a specific set of default suppressions
echo -n > default.supp echo -n > default.supp
for file in glibc-2.3.supp xfree-4.supp ; do for file in glibc-2.4.supp xfree-4.supp ; do
cat $file >> default.supp cat $file >> default.supp
done done
@ -70,6 +71,13 @@ int main (int argc, char *const argv[])
EOF EOF
gcc $RPM_OPT_FLAGS -o close_fds close_fds.c gcc $RPM_OPT_FLAGS -o close_fds close_fds.c
for i in `find . -type f \( -name *-amd64-linux -o -name *-x86-linux -o -name *-ppc-linux \)`; do
case "`file $i`" in
*ELF*executable*statically\ linked*)
objcopy -R .debug_loc -R .debug_frame -R .debug_ranges $i
esac
done
# test # test
make check || : make check || :
echo ===============TESTING=================== echo ===============TESTING===================
@ -80,12 +88,15 @@ echo ===============END TESTING===============
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%makeinstall %makeinstall
cp -a $RPM_BUILD_ROOT%{_bindir}/valgrind \
$RPM_BUILD_ROOT%{_libdir}/valgrind/valgrind
mkdir docs.installed mkdir docs.installed
mv $RPM_BUILD_ROOT%{_datadir}/doc/valgrind/* docs.installed/ mv $RPM_BUILD_ROOT%{_datadir}/doc/valgrind/* docs.installed/
rm -f docs.installed/*.ps rm -f docs.installed/*.ps
%ifarch x86_64
rm -rf $RPM_BUILD_ROOT%{_libdir}/valgrind/x86-linux
ln -sf ../../lib/valgrind/x86-linux $RPM_BUILD_ROOT%{_libdir}/valgrind/x86-linux
%endif
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -100,8 +111,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/valgrind* %{_mandir}/man1/valgrind*
%changelog %changelog
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> * Mon Jan 9 2006 Jakub Jelinek <jakub@redhat.com> 3.1.0-1
- rebuilt - upgrade to 3.1.0 (#174582)
- many bugfixes, ppc32 support
* Thu Oct 13 2005 Jakub Jelinek <jakub@redhat.com> 3.0.1-2 * Thu Oct 13 2005 Jakub Jelinek <jakub@redhat.com> 3.0.1-2
- remove Obsoletes for valgrind-callgrind, as it has been - remove Obsoletes for valgrind-callgrind, as it has been