From cb2c1741008ee6df9c1599b65d4c0de392a52ab8 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 6 Jan 2014 13:32:59 +0000 Subject: abuild: filter out empty lines when scanning for SO dependencies This works around a bug in busybox 1.22.0 that makes 'grep -w ^' hang. It is triggered when there are no deps. (eg. musl) --- abuild.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'abuild.in') diff --git a/abuild.in b/abuild.in index fa3971a..3a904f6 100755 --- a/abuild.in +++ b/abuild.in @@ -1077,7 +1077,7 @@ scan_shared_objects() { # now find the so dependencies scanelf --nobanner --recursive --needed "$datadir" | tr ' ' ':' \ - | awk -F ":" '$1 == "ET_DYN" || $1 == "ET_EXEC" {print $2}' \ + | awk -F ":" '$2 != "" && ($1 == "ET_DYN" || $1 == "ET_EXEC") {print $2}' \ | sed 's:,:\n:g' | sort -u \ | while read soname; do # only add files that are not self provided -- cgit v1.2.3-60-g2f50