kiss: Fix minor issue. Also test bare strip

This commit is contained in:
Dylan Araps 2020-05-21 17:34:35 +03:00
parent ddf11917f3
commit 11707b7ff4
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

14
kiss
View File

@ -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.