forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |