summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-09-06 13:28:30 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-09-06 13:28:30 +0000
commitdfa8e825e70a7db2ae2caa0a51b33c3056000260 (patch)
treec333997a238438f2368f2a3999b5ff0c125563fb /abuild.in
parentc6b7fa8a6ab0e52f2a008668d3969b0ab9cbfdeb (diff)
downloadabuild-dfa8e825e70a7db2ae2caa0a51b33c3056000260.tar.gz
abuild-dfa8e825e70a7db2ae2caa0a51b33c3056000260.tar.bz2
abuild-dfa8e825e70a7db2ae2caa0a51b33c3056000260.tar.xz
abuild-dfa8e825e70a7db2ae2caa0a51b33c3056000260.zip
abuild: error or warn if bad rpaths are found
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/abuild.in b/abuild.in
index 90f4420..61a13c1 100755
--- a/abuild.in
+++ b/abuild.in
@@ -782,6 +782,13 @@ prepare_tracedeps() {
scanelf --quiet --recursive --rpath "$dir" \
| sed -e 's/[[:space:]].*//' -e 's/:/\n/' | sort -u \
>"$controldir"/.rpaths
+ if grep -q -x '/usr/lib' "$controldir"/.rpaths; then
+ warning "Redundat /usr/lib in rpath found"
+ fi
+ if grep '^/home/' "$controldir"/.rpaths; then
+ error "Has /home/... in rpath"
+ return 1
+ fi
}
# check if dir has arch specific binaries