commit f65792c40b469e4089b60ae6ea1ad02e214c95f0
parent 78968b6097629e68d89fd6fea4487392e8d86083
Author: Dylan Araps <dylan.araps@gmail.com>
Date: Sun, 14 Jul 2019 01:23:22 +0300
misc: changes
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/kiss b/kiss
@@ -284,6 +284,8 @@ pkg_strip() {
log "[$1]: Stripping binaries and libraries..."
+ # Strip only files matching the below mime-types from the package
+ # directory. No alternative to 'file' here sadly.
find "$pkg_dir/$1" -type f | while read -r binary; do
case $(file -bi "$binary") in
application/x-sharedlib*|application/x-pie-executable*)
@@ -346,9 +348,6 @@ pkg_build() {
# also checks checksums, downloads sources and ensure all dependencies
# are installed.
- # Resolve dependencies and generate a list.
- # Send 'force' to 'pkg_depends' to always include the explicitly
- # requested packages.
log "Resolving dependencies..."
for pkg; do pkg_depends "$pkg"; done
@@ -367,6 +366,9 @@ pkg_build() {
set +f
}
+ # The dependency solver always lists all dependencies regardless of
+ # whether or not they are installed. Ensure that all explicit packages
+ # are included and ensure that all installed packages are excluded.
for pkg; do
case $explicit_packages in
*" $pkg "*)