| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 # Script to build valgrind for use with chromium | 2 # Script to build valgrind for use with chromium |
| 3 | 3 |
| 4 THISDIR=`dirname $0` | 4 THISDIR=`dirname $0` |
| 5 THISDIR=`cd $THISDIR && /bin/pwd` | 5 THISDIR=`cd $THISDIR && /bin/pwd` |
| 6 set -x | 6 set -x |
| 7 set -e | 7 set -e |
| 8 | 8 |
| 9 if ld --version | grep gold | 9 if ld --version | grep gold |
| 10 then | 10 then |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 # Work around bug https://bugs.kde.org/show_bug.cgi?id=162848 | 35 # Work around bug https://bugs.kde.org/show_bug.cgi?id=162848 |
| 36 # "fork() not handled properly" | 36 # "fork() not handled properly" |
| 37 #wget -O fork.patch "https://bugs.kde.org/attachment.cgi?id=35510" | 37 #wget -O fork.patch "https://bugs.kde.org/attachment.cgi?id=35510" |
| 38 patch -p0 < "$THISDIR"/fork.patch | 38 patch -p0 < "$THISDIR"/fork.patch |
| 39 | 39 |
| 40 # Work around bug https://bugs.kde.org/show_bug.cgi?id=186796 | 40 # Work around bug https://bugs.kde.org/show_bug.cgi?id=186796 |
| 41 # "long suppressions truncated" | 41 # "long suppressions truncated" |
| 42 #wget -O longlines.patch "https://bugs.kde.org/attachment.cgi?id=35174" | 42 #wget -O longlines.patch "https://bugs.kde.org/attachment.cgi?id=35174" |
| 43 patch -p0 < "$THISDIR"/longlines.patch | 43 patch -p0 < "$THISDIR"/longlines.patch |
| 44 | 44 |
| 45 # Add feature bug https://bugs.kde.org/show_bug.cgi?id=201170 |
| 46 # "Want --show-possible option so I can ignore the bazillion possible leaks..." |
| 47 #wget -O possible.patch https://bugs.kde.org/attachment.cgi?id=35559 |
| 48 patch -p0 < "$THISDIR"/possible.patch |
| 49 |
| 45 sh autogen.sh | 50 sh autogen.sh |
| 46 ./configure --prefix=/usr/local/valgrind-20090715 | 51 ./configure --prefix=/usr/local/valgrind-20090715 |
| 47 make -j4 | 52 make -j4 |
| 48 | 53 |
| 49 if ./vg-in-place /bin/true | 54 if ./vg-in-place /bin/true |
| 50 then | 55 then |
| 51 echo built valgrind passes smoke test, good | 56 echo built valgrind passes smoke test, good |
| 52 else | 57 else |
| 53 echo built valgrind fails smoke test | 58 echo built valgrind fails smoke test |
| 54 exit 1 | 59 exit 1 |
| 55 fi | 60 fi |
| 56 | 61 |
| 57 test -d $THISDIR/override_ld && rm -rf $THISDIR/override_ld | 62 test -d $THISDIR/override_ld && rm -rf $THISDIR/override_ld |
| 58 | 63 |
| 59 sudo make install | 64 sudo make install |
| 60 cd /usr | 65 cd /usr |
| 61 test -f bin/valgrind && sudo mv bin/valgrind bin/valgrind.orig | 66 test -f bin/valgrind && sudo mv bin/valgrind bin/valgrind.orig |
| 62 sudo ln -sf /usr/local/valgrind-20090715/bin/valgrind bin | 67 sudo ln -sf /usr/local/valgrind-20090715/bin/valgrind bin |
| 63 test -d include/valgrind && sudo mv include/valgrind include/valgrind.orig | 68 test -d include/valgrind && sudo mv include/valgrind include/valgrind.orig |
| 64 sudo ln -sf /usr/local/valgrind-20090715/include/valgrind include | 69 sudo ln -sf /usr/local/valgrind-20090715/include/valgrind include |
| OLD | NEW |