abuild: force single space be separator when parsing scanelf output
otherwise will awk not detect empty fields
This commit is contained in:
parent
f05a89deae
commit
99ae7bd9c3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue