diff options
author | dank@chromium.org <dank@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-21 12:31:41 +0000 |
---|---|---|
committer | dank@chromium.org <dank@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-21 12:31:41 +0000 |
commit | ea041c5e5d368bf25b3e851def37e11751e11e40 (patch) | |
tree | c7ac4263ab519091870683b2172acccdc1dc3b59 /tools | |
parent | 740e2de647cb09332ef0f9c767b79b640d35cc7f (diff) | |
download | chromium_src-ea041c5e5d368bf25b3e851def37e11751e11e40.zip chromium_src-ea041c5e5d368bf25b3e851def37e11751e11e40.tar.gz chromium_src-ea041c5e5d368bf25b3e851def37e11751e11e40.tar.bz2 |
Script to build valgrind for chromium
Review URL: http://codereview.chromium.org/155848
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21170 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/valgrind/build-valgrind-for-chromium.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tools/valgrind/build-valgrind-for-chromium.sh b/tools/valgrind/build-valgrind-for-chromium.sh new file mode 100755 index 0000000..047c063 --- /dev/null +++ b/tools/valgrind/build-valgrind-for-chromium.sh @@ -0,0 +1,34 @@ +#!/bin/sh +set -x +set -e + +# Check out latest version that following patches known to apply against +rm -rf valgrind-20090715 +svn co -r '{2009-07-15}' svn://svn.valgrind.org/valgrind/trunk valgrind-20090715 + +cd valgrind-20090715 + +# Just in case, make sure svn gets the right version of the external VEX repo, too +cd VEX +svn update -r '{2009-07-15}' +cd .. + +# Work around bug https://bugs.kde.org/show_bug.cgi?id=162848 +# fork() not handled properly +wget "https://bugs.kde.org/attachment.cgi?id=35150" +patch -p0 < "attachment.cgi?id=35150" + +# Work around bug https://bugs.kde.org/show_bug.cgi?id=186796 +# long suppressions truncated +wget "https://bugs.kde.org/attachment.cgi?id=35174" +patch -p0 < "attachment.cgi?id=35174" + +sh autogen.sh +./configure --prefix=/usr/local/valgrind-20090715 +make +sudo make install +cd /usr +test -f bin/valgrind && sudo mv bin/valgrind bin/valgrind.orig +sudo ln -sf /usr/local/valgrind-20090715/bin/valgrind bin +test -d include/valgrind && sudo mv include/valgrind include/valgrind.orig +sudo ln -sf /usr/local/valgrind-20090715/include/valgrind include |