abuild: force single space be separator when parsing scanelf output

otherwise will awk not detect empty fields
This commit is contained in:
Natanael Copa 2009-06-04 18:14:47 +00:00
parent f05a89deae
commit 99ae7bd9c3
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ prepare_tracedeps() {
local dir=${subpkgdir:-$pkgdir}
options_has "!tracedeps" && return 0
find -name '*.so' -o -name '*.so.[0-9]*' | sed 's:.*/::' >"$dir"/.provides-so
scanelf -Rn "$dir" | awk '$1 == "ET_DYN" || $1 == "ET_EXEC" {print $2}' \
scanelf -Rn "$dir" | awk -F "\ " '$1 == "ET_DYN" || $1 == "ET_EXEC" {print $2}' \
| sed 's:,:\n:g' | sort | uniq \
| while read i; do
# only add files that are not self provided