Commit dfa8e825 authored by Natanael Copa's avatar Natanael Copa
Browse files

abuild: error or warn if bad rpaths are found

parent c6b7fa8a
......@@ -782,6 +782,13 @@ prepare_tracedeps() {
scanelf --quiet --recursive --rpath "$dir" \
| sed -e 's/[[:space:]].*//' -e 's/:/\n/' | sort -u \
if grep -q -x '/usr/lib' "$controldir"/.rpaths; then
warning "Redundat /usr/lib in rpath found"
if grep '^/home/' "$controldir"/.rpaths; then
error "Has /home/... in rpath"
return 1
# check if dir has arch specific binaries
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment