From 0c9e4688447228e7d6434870893b8eb5b3ab1e54 Mon Sep 17 00:00:00 2001 From: a Date: Fri, 24 Apr 2020 03:16:18 +0300 Subject: [PATCH] 06-strip-and-debug-pkgs.sh: ignore binaries for unknown machines Because most likely these files are not executables, but some kind of bytecode. And strip doesn't know how to strip them anyway. --- common/hooks/post-install/06-strip-and-debug-pkgs.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/hooks/post-install/06-strip-and-debug-pkgs.sh b/common/hooks/post-install/06-strip-and-debug-pkgs.sh index a15dd1a96c3..44d8a51fe93 100644 --- a/common/hooks/post-install/06-strip-and-debug-pkgs.sh +++ b/common/hooks/post-install/06-strip-and-debug-pkgs.sh @@ -70,6 +70,10 @@ hook() { continue fi + if [[ $(file -b "$f") =~ "no machine" ]]; then + continue + fi + fname=${f##*/} for x in ${nostrip_files}; do if [ "$x" = "$fname" ]; then