diff --git a/base/coreutils/coreutils.conf b/base/coreutils/coreutils.conf index 377faca1f..58523fe7b 100644 --- a/base/coreutils/coreutils.conf +++ b/base/coreutils/coreutils.conf @@ -49,6 +49,11 @@ hook_add postmake 5 'ln -sf install $root/usr/bin/ginstall' # install hostname var_append confopt ' ' '--enable-install-program=hostname' -if pkginstalled mktemp; then - var_append confopt ' ' '--enable-no-install-program=mktemp' -fi +noinstall= +for x in mktemp procps:uptime; do + if pkginstalled "${x%:*}"; then + var_append noinstall ',' "${x#*:}" + fi +done +[ -z "$noinstall" ] || + var_append confopt ' ' "--enable-no-install-program=$noinstall"