diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-09-06 13:28:30 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-09-06 13:28:30 +0000 |
commit | dfa8e825e70a7db2ae2caa0a51b33c3056000260 (patch) | |
tree | c333997a238438f2368f2a3999b5ff0c125563fb | |
parent | c6b7fa8a6ab0e52f2a008668d3969b0ab9cbfdeb (diff) | |
download | abuild-dfa8e825e70a7db2ae2caa0a51b33c3056000260.tar.gz abuild-dfa8e825e70a7db2ae2caa0a51b33c3056000260.tar.bz2 abuild-dfa8e825e70a7db2ae2caa0a51b33c3056000260.tar.xz abuild-dfa8e825e70a7db2ae2caa0a51b33c3056000260.zip |
abuild: error or warn if bad rpaths are found
-rwxr-xr-x | abuild.in | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |