diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-22 15:13:06 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-22 15:13:06 +0000 |
commit | 50a54e417178a51df1dc9d459312d277437e7a7c (patch) | |
tree | cacdafa34ea1e17e900fc407abc2f9e17904a792 /extra/valgrind | |
parent | d41f2b78ed2fdc566e385b012c32f8b80b36aae1 (diff) | |
download | aports-50a54e417178a51df1dc9d459312d277437e7a7c.tar.bz2 aports-50a54e417178a51df1dc9d459312d277437e7a7c.tar.xz |
extra/valgrind: new aport
Diffstat (limited to 'extra/valgrind')
-rw-r--r-- | extra/valgrind/APKBUILD | 36 | ||||
-rw-r--r-- | extra/valgrind/valgrind-3.4.0-uclibc.patch | 12 |
2 files changed, 48 insertions, 0 deletions
diff --git a/extra/valgrind/APKBUILD b/extra/valgrind/APKBUILD new file mode 100644 index 0000000000..a84f8bab66 --- /dev/null +++ b/extra/valgrind/APKBUILD @@ -0,0 +1,36 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=valgrind +pkgver=3.4.0 +pkgrel=0 +pkgdesc="A tool to help find memory-management problems in programs" +url="http://valgrind.org/" +license="GPL" +depends="uclibc" +# it seems like busybox sed works but the configure script requires GNU sed +makedepends="sed" +subpackages="$pkgname-dev $pkgname-doc" +source="http://$pkgname.org/downloads/$pkgname-$pkgver.tar.bz2 + $pkgname-3.4.0-uclibc.patch + " + +build() { + local i + cd "$srcdir/$pkgname-$pkgver" + for i in ../*.patch; do + msg "Applying $i" + patch -p1 < $i || return 1 + done + + # make sure our CFLAGS are respected + sed -e 's:^CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' \ + -i configure.in + ./configure --prefix=/usr \ + --without-mpicc \ + --mandir=/usr/share/man || return 1 + + make || return 1 + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="1b0fe1219e1a583ff8c2db54ed2265e6 valgrind-3.4.0.tar.bz2 +37bc90d0783bc0f8ba5754c8407e3dcc valgrind-3.4.0-uclibc.patch" diff --git a/extra/valgrind/valgrind-3.4.0-uclibc.patch b/extra/valgrind/valgrind-3.4.0-uclibc.patch new file mode 100644 index 0000000000..db6551996e --- /dev/null +++ b/extra/valgrind/valgrind-3.4.0-uclibc.patch @@ -0,0 +1,12 @@ +--- valgrind-3.4.0/drd/drd_pthread_intercepts.c.orig Thu Jan 22 14:37:52 2009 ++++ valgrind-3.4.0/drd/drd_pthread_intercepts.c Thu Jan 22 14:38:12 2009 +@@ -122,9 +122,6 @@ + /* PTHREAD_MUTEX_TIMED_NP */ + /* PTHREAD_MUTEX_NORMAL */ + case PTHREAD_MUTEX_DEFAULT: +-#if defined(HAVE_PTHREAD_MUTEX_ADAPTIVE_NP) +- case PTHREAD_MUTEX_ADAPTIVE_NP: +-#endif + return mutex_type_default_mutex; + } + return mutex_type_invalid_mutex; |