git: e0d8e10d0ce3 - main - devel/bazel: update to 5.1.0

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Thu, 31 Mar 2022 13:08:05 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e0d8e10d0ce38463ffc6f792fa3bd4afe1d17165

commit e0d8e10d0ce38463ffc6f792fa3bd4afe1d17165
Author:     Klaus Aehlig <aehlig@linta.de>
AuthorDate: 2022-03-30 13:36:13 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-03-31 13:06:06 +0000

    devel/bazel: update to 5.1.0
    
    ChangeLog: https://blog.bazel.build/2022/03/24/bazel-5.1.html
    
    Mark BROKEN in i386: ./src/tools/singlejar/mapped_file_posix.inc:31:2: error: This code for 64 bit Unix.
    
    PR:     262835
    Reported by:    aehlig@linta.de (maintainer)
---
 devel/bazel/Makefile                     | 5 +++--
 devel/bazel/distinfo                     | 6 +++---
 devel/bazel/files/patch-distdir_deps.bzl | 6 +++---
 3 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/devel/bazel/Makefile b/devel/bazel/Makefile
index 0e405b26d3ee..2507fa810637 100644
--- a/devel/bazel/Makefile
+++ b/devel/bazel/Makefile
@@ -1,7 +1,7 @@
 # Created by: Klaus Aehlig <aehlig@linta.de>
 
 PORTNAME=	bazel
-DISTVERSION=	5.0.0
+DISTVERSION=	5.1.0
 CATEGORIES=	devel java
 MASTER_SITES=	https://storage.googleapis.com/bazel/${PORTVERSION}/rc${FINALRC}/
 DISTNAME=	bazel-${PORTVERSION}rc${FINALRC}-dist
@@ -14,6 +14,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BROKEN_armv6=		fails to package: cp: bazel: No such file or directory
 BROKEN_armv7=		fails to package: cp: bazel: No such file or directory
+BROKEN_i386=		fails to build: ./src/tools/singlejar/mapped_file_posix.inc:31:2: error: This code for 64 bit Unix.
 BROKEN_FreeBSD_12_powerpc64=	fails to compile: Action failed to execute: java.io.IOException: Cannot run program /usr/bin/clang
 
 BUILD_DEPENDS=	bash:shells/bash \
@@ -40,7 +41,7 @@ NO_WRKSUBDIR=	YES
 # In bazel, a release is always code-wise identical to the final release candidate.
 # Hence we can also download that one and so have a simple way to also test earlier release
 # candidates.
-FINALRC=	4
+FINALRC=	3
 
 .include <bsd.port.pre.mk>
 
diff --git a/devel/bazel/distinfo b/devel/bazel/distinfo
index 68b431ac3f58..9aea37bf6ffc 100644
--- a/devel/bazel/distinfo
+++ b/devel/bazel/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1642256198
-SHA256 (bazel-5.0.0rc4-dist.zip) = c077713b8ee63691b0d5a658ddb6daf879f6082d3cbdd6d610d79f250675350b
-SIZE (bazel-5.0.0rc4-dist.zip) = 235869975
+TIMESTAMP = 1648308688
+SHA256 (bazel-5.1.0rc3-dist.zip) = e37fd2ef5a1fc1091bb6046500e9ebf82e1cd4c469b60e577ecb4bf1196dcebf
+SIZE (bazel-5.1.0rc3-dist.zip) = 235978946
diff --git a/devel/bazel/files/patch-distdir_deps.bzl b/devel/bazel/files/patch-distdir_deps.bzl
index 5abae024a874..1a91f6c030a7 100644
--- a/devel/bazel/files/patch-distdir_deps.bzl
+++ b/devel/bazel/files/patch-distdir_deps.bzl
@@ -1,10 +1,10 @@
---- distdir_deps.bzl.orig	1979-12-31 23:00:00 UTC
+--- distdir_deps.bzl.orig	1980-01-01 00:00:00 UTC
 +++ distdir_deps.bzl
 @@ -130,6 +130,7 @@ DIST_DEPS = {
          "patch_args": ["-p1"],
          "patches": [
              "//third_party/grpc:grpc_1.41.0.patch",
-+            "//third_party/grpc:extra-patch-bazel_grpc__deps.bzl",
++             "//third_party/grpc:extra-patch-bazel_grpc__deps.bzl",
+             "//third_party/grpc:grpc_1.41.0.win_arm64.patch",
          ],
          "used_in": [
-             "additional_distfiles",