From 405088eeceaa5a2df1e3850f303e80fb47b8ed83 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Thu, 2 Jan 2020 10:36:52 +0800 Subject: [PATCH] scripts: bundle-libraries: compat with "file" before version 5.22 File command before version 5.22 prints "uses shared libraries" instead of the interpreter name. The upstream commit is a02398dde Signed-off-by: Yousong Zhou --- scripts/bundle-libraries.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bundle-libraries.sh b/scripts/bundle-libraries.sh index e110ef3090..805e1339c7 100755 --- a/scripts/bundle-libraries.sh +++ b/scripts/bundle-libraries.sh @@ -151,7 +151,7 @@ for BIN in "$@"; do LDSO="" - [ -n "$LDD" ] && [ -x "$BIN" ] && file "$BIN" | grep -sqE "ELF.*(executable|interpreter)" && { + [ -n "$LDD" ] && [ -x "$BIN" ] && file "$BIN" | grep -sqE "ELF.*(executable|interpreter|uses shared libs)" && { for token in $("$LDD" "$BIN" 2>/dev/null); do case "$token" in */*.so*) dest="$DIR/lib/${token##*/}" -- 2.30.2