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 /vars | |
parent | e7f40a6a3266a5072c7a2a9a75722b7743ca3b02 (diff) | |
download | midipix_build-907bd31236a1b9ce11702cbd1ec792a07d74ab60.tar.bz2 midipix_build-907bd31236a1b9ce11702cbd1ec792a07d74ab60.tar.xz |
Correctly (zero-)initialise all locals.
Diffstat (limited to 'vars')
-rw-r--r-- | vars/dist_minipix_dist.vars | 4 | ||||
-rw-r--r-- | vars/gcc.vars | 6 | ||||
-rw-r--r-- | vars/gdk.vars | 2 | ||||
-rw-r--r-- | vars/git.vars | 2 | ||||
-rw-r--r-- | vars/glib.vars | 2 | ||||
-rw-r--r-- | vars/invariants_digest.vars | 2 | ||||
-rw-r--r-- | vars/musl.vars | 6 | ||||
-rw-r--r-- | vars/perl.vars | 2 |
8 files changed, 13 insertions, 13 deletions
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 |