summaryrefslogtreecommitdiff
path: root/development/valgrind
diff options
context:
space:
mode:
Diffstat (limited to 'development/valgrind')
-rw-r--r--development/valgrind/README20
-rw-r--r--development/valgrind/valgrind.SlackBuild19
-rw-r--r--development/valgrind/valgrind.info14
3 files changed, 32 insertions, 21 deletions
diff --git a/development/valgrind/README b/development/valgrind/README
index ba2e555091..4299693662 100644
--- a/development/valgrind/README
+++ b/development/valgrind/README
@@ -1,10 +1,12 @@
-Valgrind is an award-winning suite of tools for debugging and profiling Linux
-programs. With the tools that come with Valgrind, you can automatically detect
-many memory management and threading bugs, avoiding hours of frustrating
-bug-hunting, making your programs more stable. You can also perform detailed
-profiling, to speed up and reduce memory use of your programs.
+Valgrind is an award-winning instrumentation framework for building dynamic
+analysis tools. There are Valgrind tools that can automatically detect many
+memory management and threading bugs, and profile your programs in detail.
+You can also use Valgrind to build new tools.
-The Valgrind distribution currently includes four tools: a memory error
-detector, a cache (time) profiler, a call-graph profiler, and a heap (space)
-profiler. It runs on the following platforms: X86/Linux, AMD64/Linux,
-PPC32/Linux, PPC64/Linux.
+The Valgrind distribution currently includes six production-quality tools: a
+memory error detector, two thread error detectors, a cache and
+branch-prediction profiler, a call-graph generating cache profiler, and a
+heap profiler. It also includes two experimental tools: a heap/stack/global
+array overrun detector, and a SimPoint basic block vector generator. It runs
+on the following platforms: X86/Linux, AMD64/Linux, PPC32/Linux, PPC64/Linux,
+and X86/Darwin (Mac OS X).
diff --git a/development/valgrind/valgrind.SlackBuild b/development/valgrind/valgrind.SlackBuild
index 1efd28b524..429f511e94 100644
--- a/development/valgrind/valgrind.SlackBuild
+++ b/development/valgrind/valgrind.SlackBuild
@@ -2,9 +2,10 @@
# Slackware build script for valgrind
# Written by Kyle Guinn <elyk03@gmail.com>
+# Updated by Peter Wang <novalazy@gmail.com>
PRGNAM=valgrind
-VERSION=3.3.0
+VERSION=3.5.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -15,10 +16,15 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
-fi
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -33,6 +39,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib$LIBDIRSUFFIX \
--sysconfdir=/etc \
--localstatedir=/var \
|| exit 1
@@ -46,7 +53,7 @@ make install-strip DESTDIR=$PKG || exit 1
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ACKNOWLEDGEMENTS AUTHORS COPYING FAQ.txt INSTALL NEWS README* \
+cp -a AUTHORS COPYING FAQ.txt NEWS README* \
$PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/share/doc/valgrind/html $PKG/usr/doc/$PRGNAM-$VERSION
# The doc directory is the only thing in $PKG/usr/share, and the only things
@@ -60,4 +67,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/development/valgrind/valgrind.info b/development/valgrind/valgrind.info
index f017ddfa4b..a589fc6c00 100644
--- a/development/valgrind/valgrind.info
+++ b/development/valgrind/valgrind.info
@@ -1,8 +1,10 @@
PRGNAM="valgrind"
-VERSION="3.3.0"
+VERSION="3.5.0"
HOMEPAGE="http://www.valgrind.org/"
-DOWNLOAD="http://www.valgrind.org/downloads/valgrind-3.3.0.tar.bz2"
-MD5SUM="e5fc39755a714f36b7e5014c1c6d4748"
-MAINTAINER="Kyle Guinn"
-EMAIL="elyk03@gmail.com"
-APPROVED="rworkman"
+DOWNLOAD="http://www.valgrind.org/downloads/valgrind-3.5.0.tar.bz2"
+MD5SUM="f03522a4687cf76c676c9494fcc0a517"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Peter Wang"
+EMAIL="novalazy@gmail.com"
+APPROVED="dsomero"