From 326412a1aea5d73954fc7400dc5930c0d504edfd Mon Sep 17 00:00:00 2001 From: merakor Date: Thu, 2 Apr 2020 11:43:11 +0000 Subject: kiss: apply stripping changes FossilOrigin-Name: 86b0e23235b84141a17520aa0d3ad954e55c8144b38fcaf3385b53f0ba325a33 --- kiss | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kiss b/kiss index 7bb055c..cc603a9 100755 --- a/kiss +++ b/kiss @@ -379,17 +379,16 @@ pkg_strip() { # it allows us to remove 'file' from the # core repositories altogether. find "$pkg_dir/$1" -type f | while read -r file; do - case $(readelf -h "$file" 2>/dev/null) in + case $(readelf -h "$file") in *" DYN "*) strip_opt=unneeded ;; *" EXEC "*) strip_opt=all ;; *" REL "*) strip_opt=debug ;; *) continue esac - # Suppress errors here as some binaries and libraries may - # fail to strip. This is OK. - strip "--strip-$strip_opt" "$file" 2>/dev/null ||: - done + strip "--strip-$strip_opt" "$file" && + printf 'Stripped %10s %s\n' "($strip_opt)" "${file##$pkg_dir/$1}" + done 2>/dev/null ||: } pkg_fixdeps() { -- cgit v1.2.3