diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-06-13 11:54:36 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-06-13 11:55:11 +0000 |
commit | 0a95f245b7cea75a5bd8df9a40b9e182042a4145 (patch) | |
tree | dc81febf758e473cf56b6eb1b83333e813ec63d3 /main | |
parent | f636c410ab593703a9a173e116c3b3f021ab016f (diff) | |
download | aports-0a95f245b7cea75a5bd8df9a40b9e182042a4145.tar.bz2 aports-0a95f245b7cea75a5bd8df9a40b9e182042a4145.tar.xz |
main/valgrind: work around pax issues on amd64
Probably same as this:
http://marc.info/?l=gentoo-hardened&m=119512627126298&w=2
Diffstat (limited to 'main')
-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" |