Skip to content

Commit 5010fee

Browse files
authored
Merge pull request #2235 from tweag/renovate/com_google_protobuf-28.x
chore(deps): update dependency com_google_protobuf to v28
2 parents 0a2dc13 + 9e411b2 commit 5010fee

File tree

16 files changed

+59
-5
lines changed

16 files changed

+59
-5
lines changed

examples/WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ load("@rules_nixpkgs_python//:python.bzl", "nixpkgs_python_configure")
3939
nixpkgs_cc_configure(
4040
# Don't override the default cc toolchain needed for bindist mode.
4141
name = "nixpkgs_config_cc",
42+
cc_std = "c++14",
4243
repository = "@rules_haskell//nixpkgs:default.nix",
4344
)
4445

examples/arm/WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ nixpkgs_cc_configure(
5757
nixpkgs_cc_configure(
5858
name = "nixpkgs_config_cc_arm",
5959
attribute_path = "cc-aarch64",
60+
cc_std = "c++14",
6061
exec_constraints = [
6162
"@platforms//cpu:x86_64",
6263
"@platforms//os:linux",
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
diff --git a/build_defs/cpp_opts.bzl b/build_defs/cpp_opts.bzl
2+
index f667a4088..da463ca45 100644
3+
--- a/build_defs/cpp_opts.bzl
4+
+++ b/build_defs/cpp_opts.bzl
5+
@@ -44,6 +44,11 @@ LINK_OPTS = select({
6+
"-lm",
7+
"-framework CoreFoundation",
8+
],
9+
+ "@platforms//os:windows": [
10+
+ "-ldbghelp",
11+
+ "-lpthread",
12+
+ "-lm",
13+
+ ],
14+
"//conditions:default": [
15+
"-lpthread",
16+
"-lm",
17+
diff --git a/src/google/protobuf/port_def.inc b/src/google/protobuf/port_def.inc
18+
index 60900d215..10c41b441 100644
19+
--- a/src/google/protobuf/port_def.inc
20+
+++ b/src/google/protobuf/port_def.inc
21+
@@ -673,7 +673,7 @@ static_assert(PROTOBUF_ABSL_MIN(20230125, 3),
22+
#error PROTOBUF_DESCRIPTOR_WEAK_MESSAGES_ALLOWED was previously defined
23+
#endif
24+
#if defined(__GNUC__) && defined(__clang__) && !defined(__APPLE__) && \
25+
- !defined(_MSC_VER)
26+
+ !defined(_MSC_VER) && !defined(_WIN32)
27+
#define PROTOBUF_DESCRIPTOR_WEAK_MESSAGES_ALLOWED
28+
#endif
29+

haskell/private/versions.bzl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# because every bazel version tested requires a lot of space on CI
1515
# See https://github.com/tweag/rules_haskell/pull/1781#issuecomment-1187640454
1616
SUPPORTED_BAZEL_VERSIONS = [
17-
"6.0.0",
1817
"6.3.2",
1918
"6.5.0",
2019
"7.1.0",

haskell/repositories.bzl

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,26 @@ def rules_haskell_dependencies():
129129
maybe(
130130
http_archive,
131131
name = "com_google_protobuf",
132-
sha256 = "22fdaf641b31655d4b2297f9981fa5203b2866f8332d3c6333f6b0107bb320de",
133-
strip_prefix = "protobuf-21.12",
132+
sha256 = "13e7749c30bc24af6ee93e092422f9dc08491c7097efa69461f88eb5f61805ce",
133+
strip_prefix = "protobuf-28.0",
134134
urls = [
135-
"https://github.com/protocolbuffers/protobuf/archive/refs/tags/v21.12.tar.gz",
135+
"https://github.com/protocolbuffers/protobuf/archive/refs/tags/v28.0.tar.gz",
136136
],
137+
patches = [
138+
# see https://github.com/protocolbuffers/protobuf/issues/16844
139+
# TODO: remove for protobuf version >= 32.0
140+
"@rules_haskell//haskell:private/com_google_protobuf-protoc-dbghlp.diff",
141+
],
142+
patch_args = ["-p1"],
143+
)
144+
maybe(
145+
http_archive,
146+
name = "com_google_absl",
147+
urls = [
148+
"https://github.com/abseil/abseil-cpp/releases/download/20240116.0/abseil-cpp-20240116.0.tar.gz",
149+
],
150+
sha256 = "338420448b140f0dfd1a1ea3c3ce71b3bc172071f24f4d9a57d59b45037da440",
151+
strip_prefix = "abseil-cpp-20240116.0",
137152
)
138153

139154
maybe(

non_module_dev_deps.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def repositories(*, bzlmod):
103103
name = "nixpkgs_config_cc",
104104
repository = "@nixpkgs_default",
105105
register = not bzlmod,
106+
cc_std = "c++14",
106107
)
107108

108109
nixpkgs_package(

rules_haskell_tests/MODULE.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ use_repo(
119119
"asterius_bundle_linux_amd64",
120120
"bazel_6",
121121
"bazel_7",
122-
"build_bazel_bazel_6_0_0",
123122
"build_bazel_bazel_6_3_2",
124123
"build_bazel_bazel_6_5_0",
125124
"build_bazel_bazel_7_1_0",

rules_haskell_tests/non_module_deps_1.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ filegroup(
8989
name = "nixpkgs_config_cc",
9090
repository = "@nixpkgs_default",
9191
register = not bzlmod,
92+
cc_std = "c++14",
9293
)
9394

9495
rules_haskell_asterius_toolchains(

rules_haskell_tests/tests/ghcWithPackages_2097/test/WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ load(
2424

2525
nixpkgs_cc_configure(
2626
name = "nixpkgs_config_cc",
27+
cc_std = "c++14",
2728
repository = "@rules_haskell//nixpkgs:default.nix",
2829
)
2930

rules_haskell_tests/tests/haskell_module/repl/haskell_module_repl_cross_library_deps_test/WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ load("@rules_nixpkgs_python//:python.bzl", "nixpkgs_python_configure")
4040

4141
nixpkgs_cc_configure(
4242
name = "nixpkgs_config_cc",
43+
cc_std = "c++14",
4344
repository = "@rules_haskell//nixpkgs:default.nix",
4445
)
4546

0 commit comments

Comments
 (0)