From dfa8e825e70a7db2ae2caa0a51b33c3056000260 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 6 Sep 2012 13:28:30 +0000 Subject: abuild: error or warn if bad rpaths are found --- abuild.in | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.3-60-g2f50