diff options
author | merakor <cem@ckyln.com> | 2020-04-02 11:43:11 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-04-02 11:43:11 +0000 |
commit | 326412a1aea5d73954fc7400dc5930c0d504edfd (patch) | |
tree | 6ece61893202cbc847752d2296dc8d33a286a0e9 | |
parent | 61f1caafc6a388de055bbb56f26f605660e8eebc (diff) | |
download | cpt-1.10-carbs.tar.gz |
kiss: apply stripping changes1.10-carbs
FossilOrigin-Name: 86b0e23235b84141a17520aa0d3ad954e55c8144b38fcaf3385b53f0ba325a33
-rwxr-xr-x | kiss | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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() { |