This commit adds KISS_STRIP to allow stripping to be controlled at
runtime for all staged packages. This is also handy when temporarily
needing debugging symbols for a given piece of software.
Defaults to '1', set to '0' to disable stripping.
Example:
KISS_STRIP=0 kiss b zlib
This never truly worked as the post-install message would always
ensure that file size is '> 0' despite there being nothing to show
the user.
We now store the output to a variable, ensure it isn't empty and
go on our merry way.
*** Background
Liberation Mono, which is the "default" font set in the core repo, does not support the "✓" glyph.
*** Change
Suggested removing unsupported glyph(s).
*** Alternative Solution
Add additional or patched font to support more glyphs or add alternative font set (e.g. Terminus) to main repository for better unicode and glyph support.
*** Source
https://fonts2u.com/liberation-mono.font
This reduces the overall code size as we no longer do an
"extraction" early in pkg_sources(). Also comes with less
network usage when a source points to a specific commit.
This is handy for manipulating the package manager internals prior
to source extraction. I currently use this to conditionally run the
source extraction, build and tarball creation in memory (tmpfs).
pre-extract)
case $PKG in
# Reset the directories to their default values.
firefox*|rust|llvm|clang)
mak_dir=${KISS_TMPDIR:-$cac_dir}/build-${pid:=$$}
pkg_dir=${KISS_TMPDIR:-$cac_dir}/pkg-$pid
;;
# Package is not in the above list, do everything in
# memory. Really nice speedups.
*)
log "$PKG" "Activating tmpfs"
mak_dir=/tmp/build-$pid
pkg_dir=/tmp/pkg-$pid
;;
esac
mkdir -p "$mak_dir" "$pkg_dir/$PKG/var/db/kiss/installed"
;;