From e1d4697bc4af580c8bbdb8256fdc90626e18a226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Sun, 15 Mar 2020 12:44:26 +0000 Subject: Set -o nounset in addition to +o errexit -o nounset. groups/000.host_tools.group:libtool_host:${PKG_LIBTOOL}: build w/ `none'. subr/build_init.subr:buildp_init_getopts(): set ${DEFAULT_BUILD_CPUS} prior to ex_pkg_load_vars() call. subr/pkg_{build,install_make}.subr: only pass `LIBTOOL=${PKG_LIBTOOL}' if set and not `none'. vars/libtool_host.vars: removes obsolete vars file. --- subr/ex_pkg.subr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'subr/ex_pkg.subr') diff --git a/subr/ex_pkg.subr b/subr/ex_pkg.subr index 3dcfbc7e..e19d987d 100644 --- a/subr/ex_pkg.subr +++ b/subr/ex_pkg.subr @@ -1,5 +1,5 @@ # -# set +o errexit -o noglob is assumed. +# set +o errexit -o noglob -o nounset is assumed. # # @@ -130,14 +130,14 @@ ex_pkg_load_groups() { local _build_groups="" _fname="" _group="" _groups=""; for _fname in $(find ./groups -name *.group | sort); do rtl_fileop source_opt "${_fname}"; - if [ -n "${GROUP_TARGET}" ]; then + if [ -n "${GROUP_TARGET:-}" ]; then _group="${GROUP_TARGET}"; unset GROUP_TARGET; else _group="${_fname##*/}"; _group="${_group%.group}"; _group="${_group#*.}"; fi; if ! rtl_lmatch "${_groups}" "${_group}"; then _groups="$(rtl_lconcat "${_groups}" "${_group}")"; - if [ -n "${GROUP_AUTO}" ]; then + if [ -n "${GROUP_AUTO:-}" ]; then if [ "${GROUP_AUTO:-0}" -ne 0 ]; then _build_groups="$(rtl_lconcat "${_build_groups}" "${_group}")"; fi; -- cgit v1.2.3