From 019dd47c02e744eec32f5ab3e02c8a36d0d72113 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Tue, 5 Feb 2019 15:02:36 +0000 Subject: [PATCH] pkg.sh log-install: Fix link-in target for shared libraries Shared libraries were detected as executables, which is true in a way, but still the log-install target shouldn't wrap them into scripts. Signed-off-by: Jan Lindemann --- scripts/pkg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pkg.sh b/scripts/pkg.sh index d079a9ef..5b1730f1 100644 --- a/scripts/pkg.sh +++ b/scripts/pkg.sh @@ -660,7 +660,7 @@ EOT echo -e "#!/bin/bash\n\nexec /bin/bash \"$from\" \"\$@\"" > "$tmp" ;; *) - if file "$from" | grep -qi executable; then + if file "$from" | grep -qi executable && [[ "$from" =~ "\.so$\|\.so\.[0-9.]*" ]]; then echo -e "#!/bin/bash\n\nexec \"$from\" \"\$@\"" > "$tmp" else ln -sf $from $to