summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-06-04 18:14:47 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-06-04 18:14:47 +0000
commit99ae7bd9c3a109c9f875053811d251244b693a39 (patch)
tree2f391a69d03a7f5de206448790bb9f43caf71128 /abuild.in
parentf05a89deae82e38c2eaa4485e27190870af2d421 (diff)
downloadabuild-99ae7bd9c3a109c9f875053811d251244b693a39.tar.gz
abuild-99ae7bd9c3a109c9f875053811d251244b693a39.tar.bz2
abuild-99ae7bd9c3a109c9f875053811d251244b693a39.tar.xz
abuild-99ae7bd9c3a109c9f875053811d251244b693a39.zip
abuild: force single space be separator when parsing scanelf output
otherwise will awk not detect empty fields
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index 6fffc2c..29c49e0 100755
--- a/abuild.in
+++ b/abuild.in
@@ -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