summaryrefslogtreecommitdiff
path: root/extra/valgrind/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/valgrind/PKGBUILD')
-rw-r--r--extra/valgrind/PKGBUILD27
1 files changed, 19 insertions, 8 deletions
diff --git a/extra/valgrind/PKGBUILD b/extra/valgrind/PKGBUILD
index fd6cd7b6d..44b5394c8 100644
--- a/extra/valgrind/PKGBUILD
+++ b/extra/valgrind/PKGBUILD
@@ -1,28 +1,39 @@
-# $Id: PKGBUILD 173941 2012-12-28 13:12:00Z allan $
+# $Id: PKGBUILD 193067 2013-08-15 12:08:37Z allan $
# Maintainer: Dan McGee <dan@archlinux.org>
# Maintainer: Allan McRae <allan@archlinux.org>
pkgname=valgrind
pkgver=3.8.1
-pkgrel=2
+pkgrel=3
pkgdesc="A tool to help find memory-management problems in programs"
arch=('i686' 'x86_64')
license=('GPL')
url="http://valgrind.org/"
-depends=('glibc>=2.17' 'glibc<2.18' 'perl')
+depends=('glibc>=2.18' 'glibc<2.19' 'perl')
makedepends=('gdb')
options=('!emptydirs')
source=(http://valgrind.org/downloads/${pkgname}-${pkgver}.tar.bz2
- valgrind-3.8.1-glibc-2.17.patch)
+ valgrind-3.8.1-glibc-2.18.patch
+ valgrind-3.8.1-ptrace-build-fix.patch)
md5sums=('288758010b271119a0ffc0183f1d6e38'
- 'e87c34f9f9ce0040d141b3bd57842b5c')
+ 'f3f911e6f5b0ab9d176d40b47d6cae24'
+ '9d429e62255621a0c190a8180d8ab1a4')
-build() {
+prepare() {
cd ${srcdir}/${pkgname}-${pkgver}
- patch -p1 -i $srcdir/valgrind-3.8.1-glibc-2.17.patch
+ patch -p1 -i $srcdir/valgrind-3.8.1-glibc-2.18.patch
+
+ # based on svn commits 13471 & 13482
+ patch -p0 -i $srcdir/valgrind-3.8.1-ptrace-build-fix.patch
+
+ ./autogen.sh
+}
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
- if [ "${CARCH}" = "x86_64" ]; then
+ if [[ ${CARCH} = "x86_64" ]]; then
./configure --prefix=/usr --mandir=/usr/share/man --enable-only64bit
else
./configure --prefix=/usr --mandir=/usr/share/man