From 99895b841c30e90f75325bda3652b9a01073e458 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 31 Jan 2024 10:59:07 +0000 Subject: [PATCH 1/2] Update dependency com_github_brpc_brpc to v1.8.0 --- bazel/repositories.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index d8afaa09..bf4dcfac 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -83,8 +83,8 @@ def _com_github_brpc_brpc(): maybe( http_archive, name = "com_github_brpc_brpc", - sha256 = "48668cbc943edd1b72551e99c58516249d15767b46ea13a843eb8df1d3d1bc42", - strip_prefix = "brpc-1.7.0", + sha256 = "13ffb2f1f57c679379a20367c744b3e597614a793ec036cd7580aae90798019d", + strip_prefix = "brpc-1.8.0", type = "tar.gz", patch_args = ["-p1"], patches = [ @@ -92,7 +92,7 @@ def _com_github_brpc_brpc(): "@yacl//bazel:patches/brpc_m1.patch", ], urls = [ - "https://github.com/apache/brpc/archive/refs/tags/1.7.0.tar.gz", + "https://github.com/apache/brpc/archive/refs/tags/1.8.0.tar.gz", ], ) From facdbbf55db58cdd056729afa89dfedf0b185aa0 Mon Sep 17 00:00:00 2001 From: anakinxc Date: Sun, 18 Feb 2024 10:35:47 +0800 Subject: [PATCH 2/2] Update brpc patch --- bazel/patches/brpc.patch | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/bazel/patches/brpc.patch b/bazel/patches/brpc.patch index 877069c7..494b2c43 100644 --- a/bazel/patches/brpc.patch +++ b/bazel/patches/brpc.patch @@ -75,20 +75,10 @@ index be02c50a..186abe54 100644 } return true; diff --git a/BUILD.bazel b/BUILD.bazel -index 5d317c90..5bb62a6e 100644 +index 0bdaa4d3..b23881b3 100644 --- a/BUILD.bazel +++ b/BUILD.bazel -@@ -45,13 +45,17 @@ COPTS = [ - }) + select({ - "//bazel/config:brpc_with_rdma": ["-DBRPC_WITH_RDMA=1"], - "//conditions:default": [""], -+}) + select({ -+ # Force linux aarch to use O1 build -+ "@bazel_tools//src/conditions:linux_aarch64": ["-O1"], -+ "//conditions:default": [""], - }) - - LINKOPTS = [ +@@ -51,7 +51,7 @@ LINKOPTS = [ "-pthread", "-ldl", ] + select({ @@ -97,7 +87,7 @@ index 5d317c90..5bb62a6e 100644 "-framework CoreFoundation", "-framework CoreGraphics", "-framework CoreData", -@@ -215,7 +219,7 @@ BUTIL_SRCS = [ +@@ -217,7 +217,7 @@ BUTIL_SRCS = [ "src/butil/recordio.cc", "src/butil/popen.cpp", ] + select({ @@ -106,16 +96,13 @@ index 5d317c90..5bb62a6e 100644 "src/butil/time/time_mac.cc", "src/butil/mac/scoped_mach_port.cc", ], -@@ -324,15 +328,14 @@ cc_library( +@@ -326,17 +326,17 @@ cc_library( visibility = ["//visibility:public"], deps = [ "@com_github_gflags_gflags//:gflags", - "@com_github_madler_zlib//:zlib", + "@zlib//:zlib", "@com_google_protobuf//:protobuf", -- "@openssl//:crypto", -- "@openssl//:ssl", -+ "@com_github_openssl_openssl//:openssl", ] + select({ "//bazel/config:brpc_with_glog": ["@com_github_google_glog//:glog"], "//conditions:default": [], @@ -123,6 +110,10 @@ index 5d317c90..5bb62a6e 100644 - "@bazel_tools//tools/osx:darwin": [":macos_lib"], + "@bazel_tools//src/conditions:darwin": [":macos_lib"], "//conditions:default": [], + }) + select({ + "//bazel/config:brpc_with_boringssl": ["@boringssl//:ssl", "@boringssl//:crypto"], +- "//conditions:default": ["@openssl//:ssl", "@openssl//:crypto"], ++ "//conditions:default": ["@com_github_openssl_openssl//:openssl"], }), )