[PATCH] vala.eclass: Check for vala compiler in the right location

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] vala.eclass: Check for vala compiler in the right location

Matija Skala
it should be installed into /, not into ${ROOT}

---
 eclass/vala.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/vala.eclass b/eclass/vala.eclass
index f8a45cdebed6..4227a64c394b 100644
--- a/eclass/vala.eclass
+++ b/eclass/vala.eclass
@@ -81,7 +81,7 @@ vala_best_api_version() {
  local u v
  [[ ${VALA_USE_DEPEND} ]] && u="[${VALA_USE_DEPEND}(+)]"
  for v in $(vala_api_versions); do
- has_version "dev-lang/vala:${v}${u}" && echo "${v}" && return
+ ROOT=/ has_version "dev-lang/vala:${v}${u}" && echo "${v}" && return
  done
 }
 
@@ -115,7 +115,7 @@ vala_src_prepare() {
  fi
 
  if [[ ${version} ]]; then
- has_version "dev-lang/vala:${version}" || die "No installed vala:$
{version}"
+ ROOT=/ has_version "dev-lang/vala:${version}" || die "No installed vala:
${version}"
  else
  version=$(vala_best_api_version)
  [[ ${version} ]] || die "No installed vala in $(vala_depend)"