From 99ae7bd9c3a109c9f875053811d251244b693a39 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 4 Jun 2009 18:14:47 +0000 Subject: [PATCH] abuild: force single space be separator when parsing scanelf output otherwise will awk not detect empty fields --- abuild.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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