From 4be6deadf3e814bc37585cde9dc08faad2561453 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 18 Sep 2023 17:06:27 +0100 Subject: gentoo auto-resync : 18:09:2023 - 17:06:27 --- eclass/Manifest.gz | Bin 39161 -> 39146 bytes eclass/bazel.eclass | 11 +++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'eclass') diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz index 74587d0ff2b4..3306f9d6fd7e 100644 Binary files a/eclass/Manifest.gz and b/eclass/Manifest.gz differ diff --git a/eclass/bazel.eclass b/eclass/bazel.eclass index 8897ea175a84..9d4dfd881d2b 100644 --- a/eclass/bazel.eclass +++ b/eclass/bazel.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: bazel.eclass @@ -27,6 +27,13 @@ if [[ ${CATEGORY}/${PN} != "dev-util/bazel" ]]; then BDEPEND=">=dev-util/bazel-0.20" fi +# @ECLASS_VARIABLE: BAZEL_BINARY +# @DESCRIPTION: +# The program to invoke for bazel. Defaults to `bazel`. Useful if you have +# multiple bazel installations on your machine that differ in verson suffix, +# e.g., `bazel-5`, `bazel-6`. +BAZEL_BINARY="${BAZEL_BINARY:-bazel}" + # @FUNCTION: bazel_get_flags # @DESCRIPTION: # Obtain and print the bazel flags for target and host *FLAGS. @@ -138,7 +145,7 @@ ebazel() { output_base="${output_base%/}-bazel-base" mkdir -p "${output_base}" || die - set -- bazel --bazelrc="${T}/bazelrc" --output_base="${output_base}" ${@} + set -- "${BAZEL_BINARY}" --bazelrc="${T}/bazelrc" --output_base="${output_base}" ${@} echo "${*}" >&2 "${@}" || die "ebazel failed" } -- cgit v1.2.3