commit: e9b99e43843a56b446dacfb90c9881e743ac7249 Author: wangjiezhe <wangjiezhe <AT> gmail <DOT> com> AuthorDate: Sat Jan 20 03:18:22 2024 +0000 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> CommitDate: Sat Feb 3 19:32:52 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9b99e43
dev-build/bazel: add notation for gcc-13 compilation issue Bug: https://bugs.gentoo.org/906914 Bug: https://bugs.gentoo.org/917689 Bug: https://bugs.gentoo.org/918703 Signed-off-by: wangjiezhe <wangjiezhe <AT> gmail.com> Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> dev-build/bazel/bazel-5.3.0.ebuild | 8 +++++++- dev-build/bazel/bazel-6.2.0.ebuild | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/dev-build/bazel/bazel-5.3.0.ebuild b/dev-build/bazel/bazel-5.3.0.ebuild index 1afd007db9d4..f756db0dbc6a 100644 --- a/dev-build/bazel/bazel-5.3.0.ebuild +++ b/dev-build/bazel/bazel-5.3.0.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit bash-completion-r1 bazel java-pkg-2 multiprocessing +inherit bash-completion-r1 bazel java-pkg-2 multiprocessing toolchain-funcs DESCRIPTION="Fast and correct automated build system" HOMEPAGE="https://bazel.build/" @@ -30,6 +30,12 @@ pkg_setup() { ewarn "${PN} usually fails to compile with ccache, you have been warned" fi java-pkg-2_pkg_setup + + if [[ ${MERGE_TYPE} != binary ]] && tc-is-gcc && ver_test $(gcc-version) -ge 13 ; then + eerror "Bazel 6 needs <=gcc-12 to compile." + eerror "Please run 'eselect gcc' and set correct gcc version." + die "GCC version is too new to compile Bazel!" + fi } src_unpack() { diff --git a/dev-build/bazel/bazel-6.2.0.ebuild b/dev-build/bazel/bazel-6.2.0.ebuild index 1afd007db9d4..f756db0dbc6a 100644 --- a/dev-build/bazel/bazel-6.2.0.ebuild +++ b/dev-build/bazel/bazel-6.2.0.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit bash-completion-r1 bazel java-pkg-2 multiprocessing +inherit bash-completion-r1 bazel java-pkg-2 multiprocessing toolchain-funcs DESCRIPTION="Fast and correct automated build system" HOMEPAGE="https://bazel.build/" @@ -30,6 +30,12 @@ pkg_setup() { ewarn "${PN} usually fails to compile with ccache, you have been warned" fi java-pkg-2_pkg_setup + + if [[ ${MERGE_TYPE} != binary ]] && tc-is-gcc && ver_test $(gcc-version) -ge 13 ; then + eerror "Bazel 6 needs <=gcc-12 to compile." + eerror "Please run 'eselect gcc' and set correct gcc version." + die "GCC version is too new to compile Bazel!" + fi } src_unpack() {