aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-04-02 11:43:11 +0000
committermerakor <cem@ckyln.com>2020-04-02 11:43:11 +0000
commit326412a1aea5d73954fc7400dc5930c0d504edfd (patch)
tree6ece61893202cbc847752d2296dc8d33a286a0e9
parent61f1caafc6a388de055bbb56f26f605660e8eebc (diff)
downloadcpt-1.10-carbs.tar.gz
kiss: apply stripping changes1.10-carbs
FossilOrigin-Name: 86b0e23235b84141a17520aa0d3ad954e55c8144b38fcaf3385b53f0ba325a33
-rwxr-xr-xkiss9
1 files 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() {