| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 # Script to build valgrind for use with chromium |
| 3 |
| 4 THISDIR=`dirname $0` |
| 5 THISDIR=`cd $THISDIR && /bin/pwd` |
| 2 set -x | 6 set -x |
| 3 set -e | 7 set -e |
| 4 | 8 |
| 5 # Check out latest version that following patches known to apply against | 9 # Check out latest version that following patches known to apply against |
| 6 rm -rf valgrind-20090715 | 10 rm -rf valgrind-20090715 |
| 7 svn co -r '{2009-07-15}' svn://svn.valgrind.org/valgrind/trunk valgrind-20090715 | 11 svn co -r '{2009-07-15}' svn://svn.valgrind.org/valgrind/trunk valgrind-20090715 |
| 8 | 12 |
| 9 cd valgrind-20090715 | 13 cd valgrind-20090715 |
| 10 | 14 |
| 11 # Just in case, make sure svn gets the right version of the external VEX repo, t
oo | 15 # Just in case, make sure svn gets the right version of the external VEX repo, t
oo |
| 12 cd VEX | 16 cd VEX |
| 13 svn update -r '{2009-07-15}' | 17 svn update -r '{2009-07-15}' |
| 14 cd .. | 18 cd .. |
| 15 | 19 |
| 16 # Work around bug https://bugs.kde.org/show_bug.cgi?id=162848 | 20 # Work around bug https://bugs.kde.org/show_bug.cgi?id=162848 |
| 17 # fork() not handled properly | 21 # "fork() not handled properly" |
| 18 wget "https://bugs.kde.org/attachment.cgi?id=35150" | 22 #wget -O fork.patch "https://bugs.kde.org/attachment.cgi?id=35150" |
| 19 patch -p0 < "attachment.cgi?id=35150" | 23 patch -p0 < "$THISDIR"/fork.patch |
| 20 | 24 |
| 21 # Work around bug https://bugs.kde.org/show_bug.cgi?id=186796 | 25 # Work around bug https://bugs.kde.org/show_bug.cgi?id=186796 |
| 22 # long suppressions truncated | 26 # "long suppressions truncated" |
| 23 wget "https://bugs.kde.org/attachment.cgi?id=35174" | 27 #wget -O longlines.patch "https://bugs.kde.org/attachment.cgi?id=35174" |
| 24 patch -p0 < "attachment.cgi?id=35174" | 28 patch -p0 < "$THISDIR"/longlines.patch |
| 25 | 29 |
| 26 sh autogen.sh | 30 sh autogen.sh |
| 27 ./configure --prefix=/usr/local/valgrind-20090715 | 31 ./configure --prefix=/usr/local/valgrind-20090715 |
| 28 make | 32 make -j4 |
| 29 sudo make install | 33 sudo make install |
| 30 cd /usr | 34 cd /usr |
| 31 test -f bin/valgrind && sudo mv bin/valgrind bin/valgrind.orig | 35 test -f bin/valgrind && sudo mv bin/valgrind bin/valgrind.orig |
| 32 sudo ln -sf /usr/local/valgrind-20090715/bin/valgrind bin | 36 sudo ln -sf /usr/local/valgrind-20090715/bin/valgrind bin |
| 33 test -d include/valgrind && sudo mv include/valgrind include/valgrind.orig | 37 test -d include/valgrind && sudo mv include/valgrind include/valgrind.orig |
| 34 sudo ln -sf /usr/local/valgrind-20090715/include/valgrind include | 38 sudo ln -sf /usr/local/valgrind-20090715/include/valgrind include |
| OLD | NEW |