Skip to content
Snippets Groups Projects
Commit 99ae7bd9 authored by Natanael Copa's avatar Natanael Copa
Browse files

abuild: force single space be separator when parsing scanelf output

otherwise will awk not detect empty fields
parent f05a89de
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment