Skip to content

Commit

Permalink
Script to build valgrind for chromium
Browse files Browse the repository at this point in the history
Review URL: http://codereview.chromium.org/155848

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21170 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
dank@chromium.org committed Jul 21, 2009
1 parent 740e2de commit ea041c5
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions tools/valgrind/build-valgrind-for-chromium.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ea041c5

Please sign in to comment.