summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/bazel/gcc11_4.patch
blob: 972c9035d648f9df6c6da75dd41c96318d95e3f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
--- a/third_party/grpc/grpc_1.33.1.patch
+++ b/third_party/grpc/grpc_1.33.1.patch
@@ -58,6 +58,14 @@ index 09fcad95a2..9b737e5deb 100644
      )
  
      native.bind(
+@@ -245,6 +245,7 @@ def grpc_deps():
+                 "https://storage.googleapis.com/grpc-bazel-mirror/github.com/abseil/abseil-cpp/archive/df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz",
+                 "https://github.com/abseil/abseil-cpp/archive/df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz",
+             ],
++            patches = ["@com_github_grpc_grpc//:third_party/abseil-cpp/absl.patch"],
+         )
+
+     if "bazel_toolchains" not in native.existing_rules():
 diff --git a/bazel/grpc_extra_deps.bzl b/bazel/grpc_extra_deps.bzl
 index 4c1dfad2e8..f63c54ddef 100644
 --- a/bazel/grpc_extra_deps.bzl
@@ -120,3 +128,25 @@ index c047f0c515..7c24fbc617 100644
          ":windows": "@com_github_grpc_grpc//third_party/cares:config_windows/ares_config.h",
          ":android": "@com_github_grpc_grpc//third_party/cares:config_android/ares_config.h",
          "//conditions:default": "@com_github_grpc_grpc//third_party/cares:config_linux/ares_config.h",
+
+--- /dev/null
++++ b/third_party/abseil-cpp/absl.patch
+@@ -0,0 +1,18 @@
++0e2c62da1dcaf6529abab952bdcc96c6de2d9506 by Abseil Team <absl-team@google.com>:
++
++Add missing <limits> include
++
++PiperOrigin-RevId: 339054753
++
++--
++
++--- absl/synchronization/internal/graphcycles.cc
+++++ absl/synchronization/internal/graphcycles.cc
++@@ -37,6 +37,7 @@
++ 
++ #include <algorithm>
++ #include <array>
+++#include <limits>
++ #include "absl/base/internal/hide_ptr.h"
++ #include "absl/base/internal/raw_logging.h"
++ #include "absl/base/internal/spinlock.h"