mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-22 23:12:45 +00:00
abuild: error or warn if bad rpaths are found
This commit is contained in:
parent
c6b7fa8a6a
commit
dfa8e825e7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user