diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2018-04-30 11:26:08 +0200 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2018-04-30 11:26:08 +0200 |
commit | 907bd31236a1b9ce11702cbd1ec792a07d74ab60 (patch) | |
tree | 1d24fdf9810c38e4c54983d65bcfcd6607d4fefd | |
parent | e7f40a6a3266a5072c7a2a9a75722b7743ca3b02 (diff) | |
download | midipix_build-907bd31236a1b9ce11702cbd1ec792a07d74ab60.tar.bz2 midipix_build-907bd31236a1b9ce11702cbd1ec792a07d74ab60.tar.xz |
Correctly (zero-)initialise all locals.
33 files changed, 54 insertions, 54 deletions
@@ -4,7 +4,7 @@ buildp_dispatch() { local _msg="${1}" _pkg_name="${2}" _tgt_name="${3}" \ - _build_tgt_meta _build_tgt_lc _build_tgt_pkg_names _build_tgt_uc; + _build_tgt_meta="" _build_tgt_lc="" _build_tgt_pkg_names="" _build_tgt_uc=""; case "${_msg}" in # Top-level start_build) shift; build_args "${@}"; build_init; build_checks; diff --git a/rotate_tarballs.sh b/rotate_tarballs.sh index f0b81818..f4efaeeb 100755 --- a/rotate_tarballs.sh +++ b/rotate_tarballs.sh @@ -26,7 +26,7 @@ rotate_build() { rotate_build_dates() { local _build_dname="${1}" _dist_dates="${2}" _limit="${3}"; - local _dist_dates_count _dist_dates_count_limit="" _dist_fname="" _nl=" + local _dist_dates_count="" _dist_dates_count_limit="" _dist_fname="" _nl=" "; _dist_dates="$(map "${_nl}" ${_dist_dates} | sort | uniq)"; _dist_dates_count="$(echo "${_dist_dates}" | wc -l)"; if [ "${_dist_dates_count}" -gt "${_limit}" ]; then diff --git a/subr/build_args.subr b/subr/build_args.subr index ea6eabf7..a483c99f 100644 --- a/subr/build_args.subr +++ b/subr/build_args.subr @@ -26,7 +26,7 @@ BUILD_ARGS_SPEC=" ARG_XTRACE:-x:"; build_args() { - local _spec="${BUILD_ARGS_SPEC}" _spec_arg _found; + local _spec="${BUILD_ARGS_SPEC}" _spec_arg="" _found=""; while [ ${#} -gt 0 ]; do if [ "${1#-}" = "${1}" ]; then break; diff --git a/subr/build_checks.subr b/subr/build_checks.subr index 055ed870..b0ba88b8 100644 --- a/subr/build_checks.subr +++ b/subr/build_checks.subr @@ -3,7 +3,7 @@ # build_checks() { - local __ _exit _pname; + local __="" _exit="" _pname=""; for __ in ${DEFAULT_CHECK_PATH_VARS}; do if [ -z "${___:=$(ex_rtl_get_var_unsafe "${__}")}" ]; then ex_rtl_log_msg failexit "Error: variable \`${__}' is empty or unset."; diff --git a/subr/build_init.subr b/subr/build_init.subr index 8b065083..a3f49f2b 100644 --- a/subr/build_init.subr +++ b/subr/build_init.subr @@ -9,7 +9,7 @@ build_fini() { }; build_init() { - local __ _env_vars _env_vars_except _env_var; + local __="" _env_vars="" _env_vars_except="" _env_var=""; set -o noglob; if [ -z "${DEFAULT_BUILD_CPUS}" ]\ && [ -e /proc/cpuinfo ]; then diff --git a/subr/ex_pkg_dispatch.subr b/subr/ex_pkg_dispatch.subr index 21fa6733..8c774d7b 100644 --- a/subr/ex_pkg_dispatch.subr +++ b/subr/ex_pkg_dispatch.subr @@ -9,7 +9,7 @@ exp_pkg_dispatch() { local _pkg_name="${1}" _tgt_name="${2}" _restart_at="${3}" \ _dispatch_fn="${4}" _stderrout_path="${5}" _pipe_path="${6}" \ - _njobs_vname="${7}" _pkg_name_uc; + _njobs_vname="${7}" _pkg_name_uc=""; _pkg_name_uc="$(ex_rtl_toupper "${_pkg_name}")"; if [ -n "$(ex_rtl_get_var_unsafe PKG_${_pkg_name_uc}_DISABLED)" ]; then "${_dispatch_fn}" disabled_pkg "${_pkg_name}" "${_tgt_name}"; @@ -29,9 +29,9 @@ exp_pkg_dispatch() { ex_pkg_dispatch() { local _tgt_name="${1}" _restart="${2}" _restart_at="${3}" \ - _dispatch_fn="${4}" _tgt_name_uc \ - _pkg_names _njob _njobs _njobs_max \ - _pipe_path _stderrout_path _pipe_msg _script_rc; + _dispatch_fn="${4}" _tgt_name_uc="" \ + _pkg_names="" _njob="" _njobs="" _njobs_max="" \ + _pipe_path="" _stderrout_path="" _pipe_msg="" _script_rc=""; ex_rtl_fileop mkdir "${BUILD_WORKDIR}"; _pipe_path="${BUILD_WORKDIR}/build.fifo"; _tgt_name_uc="$(ex_rtl_toupper "${_tgt_name}")"; diff --git a/subr/ex_pkg_env.subr b/subr/ex_pkg_env.subr index 14271202..bc4f9ce2 100644 --- a/subr/ex_pkg_env.subr +++ b/subr/ex_pkg_env.subr @@ -4,8 +4,8 @@ exp_pkg_env_source() { local _pkg_name="${1}" _tgt_name="${2}" \ - _tgt_name_uc _pkg_name_uc _pkg_name_inherit_uc \ - _build_type_uc _vname_dst _vars_set=""; + _tgt_name_uc="" _pkg_name_uc="" _pkg_name_inherit_uc="" \ + _build_type_uc="" _vname_dst="" _vars_set=""; ex_rtl_fileop source_opt "vars/${_pkg_name}.vars"; _tgt_name_uc="$(ex_rtl_toupper "${_tgt_name}")"; _pkg_name_uc="$(ex_rtl_toupper "${_pkg_name}")"; @@ -36,7 +36,7 @@ exp_pkg_env_source() { }; ex_pkg_env() { - local _pkg_name="${1}" _tgt_name="${2}" _restart_at="${3}" _vname; + local _pkg_name="${1}" _tgt_name="${2}" _restart_at="${3}" _vname=""; exp_pkg_env_source "${_pkg_name}" "${_tgt_name}"; : ${PKG_NAME:="${_pkg_name}"}; : ${MIDIPIX_BUILD_PWD:="$(pwd)"}; diff --git a/subr/ex_pkg_exec.subr b/subr/ex_pkg_exec.subr index 76294763..7092dad3 100644 --- a/subr/ex_pkg_exec.subr +++ b/subr/ex_pkg_exec.subr @@ -23,7 +23,7 @@ exp_pkg_exec_pre() { ex_pkg_exec() { local _pkg_name="${1}" _tgt_name="${2}" _restart_at="${3}" \ - _step _step_cmd _step_cmd_pfx _step_rc; + _step="" _step_cmd="" _step_cmd_pfx="" _step_rc=""; trap "if [ \${?} -eq 0 ]; then \ echo \"done ${_pkg_name} ${_tgt_name}\" >&3; \ else \ diff --git a/subr/ex_rtl.subr b/subr/ex_rtl.subr index d37e7083..ac5632ca 100644 --- a/subr/ex_rtl.subr +++ b/subr/ex_rtl.subr @@ -17,7 +17,7 @@ ex_rtl_toupper() { echo "${1}" | tr a-z A-Z; }; ex_rtl_unset_vars() { while [ ${#} -gt 0 ]; do unset "${1}"; shift; done; }; ex_rtl_lfilter() { - local _list="${1}" _filter="${2}" _lnew _litem _litem_filter; + local _list="${1}" _filter="${2}" _lnew="" _litem="" _litem_filter=""; if [ -z "${_filter}" ]; then echo "${_list}"; return 0; else for _litem in ${_list}; do @@ -32,7 +32,7 @@ ex_rtl_lfilter() { }; ex_rtl_lfilter_not() { - local _list="${1}" _filter="${2}" _lnew _litem _litem_filter _filterfl; + local _list="${1}" _filter="${2}" _lnew="" _litem="" _litem_filter="" _filterfl=""; if [ -z "${_filter}" ]; then echo "${_list}"; return 0; else for _litem in ${_list}; do @@ -59,7 +59,7 @@ ex_rtl_lmatch() { }; ex_rtl_run_cmd_unsplit() { - local _cmd="${1}" _cmdline _rc IFS; shift; + local _cmd="${1}" _cmdline="" _rc="" IFS; shift; while [ ${#} -gt 0 ]; do [ -n "${1}" ] &&\ _cmdline="${_cmdline:+${_cmdline}:}${1}"; @@ -72,7 +72,7 @@ ex_rtl_run_cmd_unsplit() { ex_rtl_set_vars() { local _vname_dst="${1}" _vname_src_tmpls="${2}" \ _vars_set_vname="${3}" _vname_src _vars_set_tmp="" \ - _vars_set_old; + _vars_set_old=""; for _vname_src in ${_vname_src_tmpls}; do _vname_src="${_vname_src}_${_vname_dst}"; _vval_src="$(ex_rtl_get_var_unsafe "${_vname_src}")"; @@ -82,7 +82,7 @@ ex_rtl_set_vars() { fi; done; _vars_set_old="$(ex_rtl_get_var_unsafe "${_vars_set_vname}")"; - ex_rtl_set_var_unsafe "${_vars_set_vname}" \ + ex_rtl_set_var_unsafe "${_vars_set_vname}" \ "${_vars_set_old:+${_vars_set_old} }${_vars_set_tmp}"; }; diff --git a/subr/ex_rtl_fetch.subr b/subr/ex_rtl_fetch.subr index babf267f..5b063469 100644 --- a/subr/ex_rtl_fetch.subr +++ b/subr/ex_rtl_fetch.subr @@ -4,7 +4,7 @@ exp_rtl_fetch_url_git() { local _tgtdir="${1}" _subdir="${2}" _url="${3}" _branch="${4}" \ - _oldpwd; + _oldpwd=""; if [ -e "${BUILD_DLCACHEDIR}/${_subdir}" ]; then (ex_rtl_fileop cd "${BUILD_DLCACHEDIR}/${_subdir}" &&\ git pull origin "${_branch:-main}"); @@ -22,7 +22,7 @@ exp_rtl_fetch_url_git() { }; ex_rtl_fetch_urls_git() { - local _tgtdir _url_spec _subdir _url _git_branch; + local _tgtdir="" _url_spec="" _subdir="" _url="" _git_branch=""; _tgtdir="${1}"; shift; for _url_spec in "${@}"; do _subdir="${_url_spec%=*}"; diff --git a/subr/ex_rtl_fileop.subr b/subr/ex_rtl_fileop.subr index e99ee773..201d5abe 100644 --- a/subr/ex_rtl_fileop.subr +++ b/subr/ex_rtl_fileop.subr @@ -3,14 +3,14 @@ # exp_rtl_fileop_check() { - local _prefix="${1}" _pname _rname; shift; + local _prefix="${1}" _pname="" _rname=""; shift; while [ ${#} -gt 0 ]; do return 0; shift; done; }; ex_rtl_fileop() { - local _op="${1}" _src _dst; shift; + local _op="${1}" _src="" _dst=""; shift; case "${_op}" in cd) if [ \( -z "${1}" \) -o ! \( -L "${1}" -o -e "${1}" \) ]; then ex_rtl_log_msg failexit "Invalid or non-existent directory \`${1}'."; diff --git a/subr/ex_rtl_install.subr b/subr/ex_rtl_install.subr index 239dceed..01d6fac4 100644 --- a/subr/ex_rtl_install.subr +++ b/subr/ex_rtl_install.subr @@ -3,8 +3,8 @@ # ex_rtl_install() { - local _verbose _prefix _ln_target _ln_fname _mkdir_fname \ - _file_fname_src _file_fname_dst; + local _verbose="" _prefix="" _ln_target="" _ln_fname="" \ + _mkdir_fname="" _file_fname_src="" _file_fname_dst=""; if [ "${1}" = "-v" ]; then _verbose=1; shift; fi; _prefix="${1}"; shift; diff --git a/subr/ex_rtl_log.subr b/subr/ex_rtl_log.subr index 05653c79..108e90ab 100644 --- a/subr/ex_rtl_log.subr +++ b/subr/ex_rtl_log.subr @@ -3,7 +3,7 @@ # exp_rtl_log_printf() { - local _attrs="${1}" _msg; shift; _msg="$(printf "${@}")"; + local _attrs="${1}" _msg=""; shift; _msg="$(printf "${@}")"; if [ "${BUILD_IS_PARENT:-0}" -eq 1 ]; then printf "%s\n" "${_msg}" >> "${DEFAULT_BUILD_LOG_FNAME}"; fi; @@ -11,7 +11,7 @@ exp_rtl_log_printf() { }; ex_rtl_log_env_vars() { - local _nvar=1 _arg _arg_len_max=0; + local _nvar=1 _arg="" _arg_len_max=0; ex_rtl_log_msg info "Variables for this ${1:-build}:"; shift; while [ ${_nvar} -le ${#} ]; do _arg="$(eval echo \${${_nvar}})"; @@ -33,7 +33,7 @@ ex_rtl_log_set_vnfo_lvl() { }; ex_rtl_log_msg() { - local _lvl="${1}" _attr; shift; + local _lvl="${1}" _attr=""; shift; if [ "${_lvl}" = vnfo ]\ || [ "${_lvl}" = vucc ]\ && [ "${EXP_RTL_LOG_VNFO_LVL:-0}" -lt 1 ]; then diff --git a/subr/ex_rtl_state.subr b/subr/ex_rtl_state.subr index 1cdd42aa..fe52b29a 100644 --- a/subr/ex_rtl_state.subr +++ b/subr/ex_rtl_state.subr @@ -3,7 +3,7 @@ # ex_rtl_state_set() { - local _workdir="${1}" _pkg_fname="${2}" _done_fname_pfx; + local _workdir="${1}" _pkg_fname="${2}" _done_fname_pfx=""; _done_fname_pfx="${_workdir}/.${_pkg_fname}"; shift 2; while [ ${#} -ge 1 ]; do if [ -z "${1}" ]; then @@ -18,7 +18,7 @@ ex_rtl_state_set() { ex_rtl_state_test() { local _workdir="${1}" _pkg_name="${2}" _build_step="${3}" \ - _restart_at="${4}" _done_fname; + _restart_at="${4}" _done_fname=""; _done_fname="${_workdir}/.${_pkg_name}.${_build_step}"; if [ -z "${_restart_at}" ]; then ex_rtl_fileop test "${_done_fname}"; diff --git a/subr/pkg_build.subr b/subr/pkg_build.subr index 038bd564..4c1b41eb 100644 --- a/subr/pkg_build.subr +++ b/subr/pkg_build.subr @@ -3,7 +3,7 @@ # pkg_build() { - local _no_autoconf; + local _no_autoconf=""; if [ ! -x "${PKG_CONFIGURE}" ]; then _no_autoconf=1; fi; diff --git a/subr/pkg_clean.subr b/subr/pkg_clean.subr index b2bb8eea..8128dfd4 100644 --- a/subr/pkg_clean.subr +++ b/subr/pkg_clean.subr @@ -3,7 +3,7 @@ # pkg_clean() { - local _dir; + local _dir=""; if [ -n "${PKG_DEPS_BASE}" ]; then return 0; fi; diff --git a/subr/pkg_configure_autotools.subr b/subr/pkg_configure_autotools.subr index 1617895d..2c0e9104 100644 --- a/subr/pkg_configure_autotools.subr +++ b/subr/pkg_configure_autotools.subr @@ -3,7 +3,7 @@ # pkg_configure_autotools() { - local _script_fname _subdir_tgt; + local _script_fname="" _subdir_tgt=""; if [ -e "${PKG_BASE_DIR}/${PKG_SUBDIR}/configure" -o \ -e "${PKG_BASE_DIR}/${PKG_SUBDIR}/configure.ac" -o \ -e "${PKG_BASE_DIR}/${PKG_SUBDIR}/configure.in" -o \ diff --git a/subr/pkg_configure_patch.subr b/subr/pkg_configure_patch.subr index ab6ec61c..45ee3601 100644 --- a/subr/pkg_configure_patch.subr +++ b/subr/pkg_configure_patch.subr @@ -3,7 +3,7 @@ # pkg_configure_patch() { - local _pkg_name="${PKG_NAME}" _pkg_name_full _patch_dir _patch_fname _patches_done; + local _pkg_name="${PKG_NAME}" _pkg_name_full="" _patch_dir="" _patch_fname="" _patches_done=""; if [ -z "${_pkg_name}" ]; then continue; else diff --git a/subr/pkg_configure_patch_pre.subr b/subr/pkg_configure_patch_pre.subr index 6843a784..22eb52ac 100644 --- a/subr/pkg_configure_patch_pre.subr +++ b/subr/pkg_configure_patch_pre.subr @@ -3,7 +3,7 @@ # pkg_configure_patch_pre() { - local _patch_path; + local _patch_path=""; for _patch_path in \ ${MIDIPIX_BUILD_PWD}/patches/${PKG_NAME}${PKG_VERSION:+-${PKG_VERSION}}_pre.local.patch \ ${MIDIPIX_BUILD_PWD}/patches/${PKG_NAME}${PKG_VERSION:+-${PKG_VERSION}}_pre.local@${BUILD_HNAME}.patch; do diff --git a/subr/pkg_fetch_extract.subr b/subr/pkg_fetch_extract.subr index 1ab1e4f0..0afa837e 100644 --- a/subr/pkg_fetch_extract.subr +++ b/subr/pkg_fetch_extract.subr @@ -3,7 +3,7 @@ # pkg_fetch_extract() { - local _oldpwd; + local _oldpwd=""; if [ -n "${PKG_URL}" ]\ && [ "${PKG_URL_TYPE:-wget}" = wget ]; then _oldpwd="${PWD}"; ex_rtl_fileop cd "${PKG_BASE_DIR}"; diff --git a/subr/pkg_install_libs.subr b/subr/pkg_install_libs.subr index 43085891..2035225d 100644 --- a/subr/pkg_install_libs.subr +++ b/subr/pkg_install_libs.subr @@ -17,7 +17,7 @@ pkgp_install_lib_check() { pkgp_install_lib_link() { local _so_path="${1}" _so_dir="${2}" _lib_name="${3}" \ - _lib_link_tgt _lib_link_path; + _lib_link_tgt="" _lib_link_path=""; _lib_link_path="${_so_path%.so*}.lib.a"; _lib_link_tgt="$(find "${_so_dir}" \ -name "${_lib_name%%.*}.*.lib.a" |\ @@ -31,7 +31,7 @@ pkgp_install_lib_link() { }; pkg_install_libs() { - local _so_src_path _so_dst_dir _lib_src_path _lib_name _lib_dst_path; + local _so_src_path="" _so_dst_dir="" _lib_src_path="" _lib_name="" _lib_dst_path=""; if [ "${PKG_BUILD_TYPE}" != "host" ]; then for _so_src_path in \ $(find "${PKG_DESTDIR}" \ diff --git a/subr/pkg_install_pkgconfig.subr b/subr/pkg_install_pkgconfig.subr index 33d22901..314e1427 100644 --- a/subr/pkg_install_pkgconfig.subr +++ b/subr/pkg_install_pkgconfig.subr @@ -3,7 +3,7 @@ # pkg_install_pkgconfig() { - local _pc_path; + local _pc_path=""; for _pc_path in $(find "${PKG_DESTDIR}" -name \*.pc); do if grep -Eq '^libdir=[^$]+$' "${_pc_path}"; then sed -i"" -e '/^libdir=[^$]\+$/s/^libdir=\(.\+\)$/libdir=${exec_prefix}\1/' \ diff --git a/subr/pkg_install_purge_la.subr b/subr/pkg_install_purge_la.subr index 53559628..01a78cb4 100644 --- a/subr/pkg_install_purge_la.subr +++ b/subr/pkg_install_purge_la.subr @@ -3,7 +3,7 @@ # pkg_install_purge_la() { - local _la_path; + local _la_path=""; for _la_path in $(find "${PKG_DESTDIR}" -type f -name \*.la); do ex_rtl_fileop rm ${_la_path}; done; diff --git a/subr/pkg_install_strip.subr b/subr/pkg_install_strip.subr index 775c4b5b..2709e77d 100644 --- a/subr/pkg_install_strip.subr +++ b/subr/pkg_install_strip.subr @@ -3,7 +3,7 @@ # pkg_strip() { - local _tree_root="${PKG_DESTDIR}/bin" _bin_path; + local _tree_root="${PKG_DESTDIR}/bin" _bin_path=""; if [ ! -e "${_tree_root}" ]; then return; fi; diff --git a/subr/pkg_install_subdirs.subr b/subr/pkg_install_subdirs.subr index 0ddbf5cf..9bba9d68 100644 --- a/subr/pkg_install_subdirs.subr +++ b/subr/pkg_install_subdirs.subr @@ -3,7 +3,7 @@ # pkg_install_subdirs() { - local _spec; + local _spec=""; for _spec in "${PKG_INSTALL_FILES_DESTDIR}" \ "${PKG_INSTALL_FILES_DESTDIR_EXTRA}"; do ex_rtl_install "${PKG_DESTDIR}" ${_spec}; diff --git a/vars/dist_minipix_dist.vars b/vars/dist_minipix_dist.vars index 1a18b88f..a383b47d 100644 --- a/vars/dist_minipix_dist.vars +++ b/vars/dist_minipix_dist.vars @@ -3,8 +3,8 @@ # pkg_dist_minipix_dist_all() { - local _dist_pfx="${PREFIX_MINIPIX}" _bin_pname _lib_name _term \ - _term_letter; + local _dist_pfx="${PREFIX_MINIPIX}" _bin_pname="" _lib_name="" \ + _term="" _term_letter=""; ex_rtl_fileop rm "${_dist_pfx}"; ex_rtl_fileop mkdir "${_dist_pfx}" "${_dist_pfx}/bin" "${_dist_pfx}/share"; for _bin_pname in $(find "${PREFIX}/minipix_dist/bin" \ diff --git a/vars/gcc.vars b/vars/gcc.vars index f3ea88df..5afa276c 100644 --- a/vars/gcc.vars +++ b/vars/gcc.vars @@ -9,7 +9,7 @@ pkgp_gcc_build_dir() { }; pkgp_gcc_setup_env() { - local __; + local __=""; export MAKE="make LIBTOOL=slibtool"; export cbb_target="${PKG_TARGET}"; case "${PKG_NAME}" in @@ -101,7 +101,7 @@ pkg_gcc_stage1_native_mingw32_all() { }; pkg_gcc_stage1_all() { - local __ _restart_at="${1}"; + local __="" _restart_at="${1}"; case "${PKG_NAME}" in gcc_stage1_host) pkgp_gcc_build_dir "cbb-gcc-${PKG_VERSION}" cross; @@ -257,7 +257,7 @@ pkg_gcc_full_host_all() { }; pkg_gcc_full_all() { - local _restart_at="${1}" _configure_host; + local _restart_at="${1}" _configure_host=""; export MAKE="make LIBTOOL=slibtool"; # GCC, native. pkgp_gcc_build_dir "cbb-gcc-${PKG_VERSION}" native; diff --git a/vars/gdk.vars b/vars/gdk.vars index 4f05c6c2..7ba62b8f 100644 --- a/vars/gdk.vars +++ b/vars/gdk.vars @@ -6,7 +6,7 @@ enable_gio_sniffing=yes"}; pkg_gdk_install_pkgconfig_post() { - local _pc_path; + local _pc_path=""; for _pc_path in $(find "${PKG_DESTDIR}"/lib/pkgconfig -name \*.pc); do sed -i"" -e '/^Requires:\s\+gobject-2.0$/s/^.*$/& gio-2.0/' \ "${_pc_path}"; diff --git a/vars/git.vars b/vars/git.vars index bc7a5bab..85e04ae5 100644 --- a/vars/git.vars +++ b/vars/git.vars @@ -7,7 +7,7 @@ ac_cv_fread_reads_directories=1 ac_cv_snprintf_returns_bogus=0"}; pkg_git_install_make_post() { - local __ _new; + local __="" _new=""; for __ in $(find "${PKG_DESTDIR}" -name "Git*::*" -type f); do _new="$(echo ${__} | sed "s/::/./g")"; ex_rtl_fileop mv "${__}" "${_new}"; diff --git a/vars/glib.vars b/vars/glib.vars index 4b53e569..eb3fb060 100644 --- a/vars/glib.vars +++ b/vars/glib.vars @@ -11,7 +11,7 @@ glib_cv_eventfd=no"}; : ${PKG_GLIB_HOST_CONFIG_CACHE_EXTRA:=${PKG_GLIB_CONFIG_CACHE_EXTRA}}; pkg_glib_install_pkgconfig_post() { - local _pc_path; + local _pc_path=""; for _pc_path in $(find "${PKG_DESTDIR}"/lib/pkgconfig -name \*.pc); do sed -i"" -e '/^Libs:/s/^\(Libs:\s\+-L\${libdir}\)\s\+\(.\+\)$/\1 \2 -lffi -lpcre -lz/' \ "${_pc_path}"; diff --git a/vars/invariants_digest.vars b/vars/invariants_digest.vars index 9d29d59f..51bc212b 100644 --- a/vars/invariants_digest.vars +++ b/vars/invariants_digest.vars @@ -3,7 +3,7 @@ # pkg_invariants_digest_all() { - local __; + local __=""; if [ -z "${ARG_TARBALL}" ]; then exit 0; else diff --git a/vars/musl.vars b/vars/musl.vars index 77c3603b..f1e819f0 100644 --- a/vars/musl.vars +++ b/vars/musl.vars @@ -24,7 +24,7 @@ pkgp_musl_configure() { }; pkg_musl_no_complex_host_all() { - local _install _restart_at="${1}"; + local _install="" _restart_at="${1}"; PKG_MUSL_VERSION="${PKG_VERSION}"; # Git clone what we need. ex_rtl_fetch_urls_git "${PKG_BASE_DIR}" "lazy=${DEFAULT_GITROOT}/lazy"; @@ -78,7 +78,7 @@ pkg_musl_no_complex_host_all() { }; pkg_musl_full_host_all() { - local _install _restart_at="${1}"; + local _install="" _restart_at="${1}"; # Git clone what we need. ex_rtl_fetch_urls_git "${PKG_BASE_DIR}" "lazy=${DEFAULT_GITROOT}/lazy"; export lz_arch="${ARCH}" lz_cflags_debug="-O2" lz_target="${PKG_TARGET}"; @@ -131,7 +131,7 @@ pkg_musl_full_host_all() { }; pkg_musl_full_all() { - local _install _restart_at="${1}"; + local _install="" _restart_at="${1}"; # Git clone what we need. ex_rtl_fetch_urls_git "${PKG_BASE_DIR}" "lazy=${DEFAULT_GITROOT}/lazy"; export lz_arch="${ARCH}" lz_cflags_debug="-O2" lz_target="${PKG_TARGET}"; diff --git a/vars/perl.vars b/vars/perl.vars index 1606a7aa..3e2a4fef 100644 --- a/vars/perl.vars +++ b/vars/perl.vars @@ -3,7 +3,7 @@ # pkg_perl_fetch_extract_post() { - local _fname_src _fname_dst _cflag; + local _fname_src="" _fname_dst="" _cflag=""; (ex_rtl_fileop cd "${PKG_BASE_DIR}"; for _fname_src in $(find perl-cross -type f \ -not -path perl-cross/.git/\* -not -name .gitignore); do |