Frogging-Family / wine-tkg-git

The wine-tkg build systems, to create custom Wine and Proton builds
840 stars 148 forks source link

Latest dependency resolver commit results in an error due to missing function from deps script. #1156

Closed s0mebodyhelpme closed 2 months ago

s0mebodyhelpme commented 3 months ago

Did some prodding after getting the following error:

/home/al/rep/wine-tkg-git/wine-tkg-git/wine-tkg-scripts/build.sh: line 133: install_deps: command not found
==> ERROR: 64-bit deps installation failed, aborting.
==> ERROR: A failure occurred in build().

Turns out the following function from the deps script within wine-tkg-scripts are referenced but not present in the build.sh script:

install_deps() {
  local _arch
  if [ -z "${1}" ]; then
    _arch="64"
  else
    _arch="${1}"
    shift 1
  fi
  if [[ "${_arch}" != "32" ]] && [[ "${_arch}" != "64" ]]; then
    _arch="64" # default to 64-bit if invalid arch is passed
  fi
  local _confirm
  if [ -z "${1}" ]; then
    _confirm="false"
  else
    _confirm="${1}"
  fi
  local _as_root
  _as_root=$(_auto_su)
  local _os
  _os=$(_os_name)
  msg2 ""
  msg2 "Installing ${_arch}-bit dependencies for ${_os}"
  local _var="${_os}_pkgs_${_arch}[@]"
  _install_pkgs "${_confirm}" "${!_var}" || return 1
  _install_post_${_os} "${_arch}" || return 1
  return 0
}

And I assume the other functions could be missing from the build.sh script too.