From 11707b7ff4a77e19494ca99a0c421a656aee8553 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 21 May 2020 17:34:35 +0300 Subject: [PATCH] kiss: Fix minor issue. Also test bare strip --- kiss | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/kiss b/kiss index 6b7fe08..2226ab8 100755 --- a/kiss +++ b/kiss @@ -429,17 +429,7 @@ pkg_strip() { log "$1" "Stripping binaries and libraries" - # Strip only files matching the below ELF types. - find "$pkg_dir/$1" -type f | while read -r file; do - case $(readelf -h "$file" 2>/dev/null) in - *" DYN "*) strip_opt=unneeded ;; - *" EXEC "*) strip_opt=all ;; - *" REL "*) strip_opt=debug ;; - *) continue - esac - - strip "--strip-$strip_opt" "$file" 2>/dev/null - done 2>/dev/null ||: + find "$pkg_dir/$1" -type f -exec strip {} \; ||: } pkg_fixdeps() { @@ -1582,8 +1572,8 @@ main() { KISS_ROOT=${KISS_ROOT%/} # Define some paths which we will then use throughout the script. - sys_db=$KISS_ROOT/$pkg_db pkg_db=var/db/kiss/installed + sys_db=$KISS_ROOT/$pkg_db # This allows for automatic setup of a KISS chroot and will # do nothing on a normal system.