Gentoo Archives: gentoo-dev

From: Matija Skala <mskala@×××.com>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH] vala.eclass: Check for vala compiler in the right location
Date: Sat, 30 Sep 2017 09:24:34
Message-Id: 3905868.WzOxTZikq3@novprenosnik
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)"