scripts: bundle-libraries: compat with "file" before version 5.22 bundle-libraries
authorYousong Zhou <yszhou4tech@gmail.com>
Thu, 2 Jan 2020 02:36:52 +0000 (10:36 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Fri, 25 Sep 2020 13:17:49 +0000 (21:17 +0800)
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 <yszhou4tech@gmail.com>
scripts/bundle-libraries.sh

index e110ef309083529d786bb779e95dc2924bf8c2dc..805e1339c7b8d3c07db8059cb0b436f1ad2393b5 100755 (executable)
@@ -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##*/}"