commit a25b8ad7916ab56424582806d87a882b9a83f8c3 parent 26e56c551a12134891302ec4e9e4e1be7b696df9 Author: Cem Keylan <cem@ckyln.com> Date: Thu, 2 Apr 2020 14:43:12 +0300 kiss: apply stripping changes Diffstat:
M | kiss | | | 9 | ++++----- |
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git 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() {