summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
Diffstat (limited to 'ci')
-rwxr-xr-xci/ciimage/gentoo/install.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/ci/ciimage/gentoo/install.sh b/ci/ciimage/gentoo/install.sh
index 68bcac11a..a48456df7 100755
--- a/ci/ciimage/gentoo/install.sh
+++ b/ci/ciimage/gentoo/install.sh
@@ -165,6 +165,15 @@ python3 -m pip install "${base_python_pkgs[@]}"
echo "source /etc/profile" >> /ci/env_vars.sh
+# For inexplicable reasons, Gentoo only packages valac as valac-$(version) so
+# no software can locate it. Parse the installed version out of portage and
+# export it to meson.
+VALA_VER=$(portageq best_version / dev-lang/vala)
+VALA_VER=${VALA_VER#dev-lang/vala-}
+VALA_VER=${VALA_VER%.*}
+echo "export VALAC=/usr/bin/valac-${VALA_VER}" >> /ci/env_vars.sh
+echo "export VAPIGEN=/usr/bin/vapigen-${VALA_VER}" >> /ci/env_vars.sh
+
# Cleanup to avoid including large contents in the docker image.
# We don't need cache files that are side artifacts of installing packages.
# We also don't need the gentoo tree -- the official docker image doesn't