diff options
Diffstat (limited to 'main/valgrind/APKBUILD')
-rw-r--r-- | main/valgrind/APKBUILD | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/main/valgrind/APKBUILD b/main/valgrind/APKBUILD index 2b50eb4649..1f1ec11a70 100644 --- a/main/valgrind/APKBUILD +++ b/main/valgrind/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=valgrind pkgver=3.6.1 -pkgrel=0 +pkgrel=1 pkgdesc="A tool to help find memory-management problems in programs" url="http://valgrind.org/" arch="all" @@ -45,16 +45,18 @@ package() { make DESTDIR="$pkgdir" install || return 1 # we have options=!strip above so we strip the /usr/bin/* manually - strip "$pkgdir"/usr/bin/valgrind \ - "$pkgdir"/usr/bin/no_op_client_for_valgrind \ - "$pkgdir"/usr/bin/valgrind-listener \ - "$pkgdir"/usr/bin/cg_merge + if [ -z "$DEBUG" ]; then + strip "$pkgdir"/usr/bin/valgrind \ + "$pkgdir"/usr/bin/no_op_client_for_valgrind \ + "$pkgdir"/usr/bin/valgrind-listener \ + "$pkgdir"/usr/bin/cg_merge + fi # pax causes some issues # http://marc.info/?l=gentoo-hardened&m=119512627126298&w=2 -# scanelf "$pkgdir"/usr/lib/valgrind/x86-linux \ -# | awk '$1 == "ET_EXEC" {print $2}' | xargs paxctl -c -m - + if [ -x "$pkgdir"/usr/lib/valgrind/memcheck-amd64-linux ]; then + paxctl -c -m "$pkgdir"/usr/lib/valgrind/memcheck-amd64-linux + fi } md5sums="2c3aa122498baecc9d69194057ca88f5 valgrind-3.6.1.tar.bz2" |